diff --git a/MedPred/Accettazione.aspx b/MedPred/Accettazione.aspx index 90857e0..b97e836 100644 --- a/MedPred/Accettazione.aspx +++ b/MedPred/Accettazione.aspx @@ -11,17 +11,18 @@ -
- - -
+
+ + +
-   - - - + +   + , +
diff --git a/MedPred/Accettazione.aspx.cs b/MedPred/Accettazione.aspx.cs index da25231..ee97091 100644 --- a/MedPred/Accettazione.aspx.cs +++ b/MedPred/Accettazione.aspx.cs @@ -5,6 +5,7 @@ using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using SteamWare; +using MedPred_Data; namespace MedPred { @@ -31,7 +32,17 @@ namespace MedPred protected void grView_SelectedIndexChanged(object sender, EventArgs e) { - memLayer.ML.setSessionVal("Paziente", string.Format("Paziente {0}", grView.SelectedDataKey["IdxPaziente"])); + // recupero dati paziente... + int IdxPaziente=0; + try + { + IdxPaziente = Convert.ToInt32(grView.SelectedDataKey["IdxPaziente"]); + memLayer.ML.setSessionVal("IdxPaziente", IdxPaziente); + DS_Applicazione.AnagPazientiRow riga = DtProxy.man.taAP.getByKey(IdxPaziente)[0]; + memLayer.ML.setSessionVal("Paziente", string.Format("{0} {1} ({2:dd/MM/yyyy})", riga.Cognome, riga.Nome,riga.DataNasc)); + } + catch + { } if (lastCmd == "edit") { // richiamo pagina con edit del record richiesto diff --git a/MedPred/JQMob.Master b/MedPred/JQMob.Master index d18aac4..abbbc32 100644 --- a/MedPred/JQMob.Master +++ b/MedPred/JQMob.Master @@ -55,7 +55,9 @@ --%>
-

MedPred

+

+ MedPred +

Options <%--
    diff --git a/MedPred/MedPred.csproj b/MedPred/MedPred.csproj index 47828cf..e2c3257 100644 --- a/MedPred/MedPred.csproj +++ b/MedPred/MedPred.csproj @@ -324,6 +324,10 @@ Designer + + SettingsSingleFileGenerator + Settings.Designer.cs + @@ -377,6 +381,11 @@ JQMob.Master + + True + True + Settings.settings + Visite.aspx ASPXCodeBehind diff --git a/MedPred/Properties/Settings.Designer.cs b/MedPred/Properties/Settings.Designer.cs new file mode 100644 index 0000000..68a636b --- /dev/null +++ b/MedPred/Properties/Settings.Designer.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34011 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MedPred.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("1234")] + public string MedPredConnectionString { + get { + return ((string)(this["MedPredConnectionString"])); + } + } + } +} diff --git a/MedPred/Properties/Settings.settings b/MedPred/Properties/Settings.settings new file mode 100644 index 0000000..1946f19 --- /dev/null +++ b/MedPred/Properties/Settings.settings @@ -0,0 +1,9 @@ + + + + + + 1234 + + + \ No newline at end of file diff --git a/MedPred/Web.config b/MedPred/Web.config index ec7ebde..d6c7720 100644 --- a/MedPred/Web.config +++ b/MedPred/Web.config @@ -13,7 +13,16 @@
    + +
    + + + + + + + diff --git a/MedPred_Data/DtProxy.cs b/MedPred_Data/DtProxy.cs new file mode 100644 index 0000000..2c5cb7c --- /dev/null +++ b/MedPred_Data/DtProxy.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using SteamWare; + +namespace MedPred_Data +{ + public class DtProxy + { + #region area protected + + protected DtProxy() + { + // inizializzo i table adapters + avvioTableAdapters(); + setupConnectionString(); + } + + /// + /// procedura di avvio dei tableAdapter + /// + protected virtual void avvioTableAdapters() + { + taAP = new DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter(); + } + /// + /// effettua setup dei connection strings da web.config della singola applicazione + /// + protected virtual void setupConnectionString() + { + string connStr = memLayer.ML.confReadString("MedPredConnectionString"); + // connections del db vocabolario + taAP.Connection.ConnectionString = connStr; + } + + #endregion + + #region area public + + public DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter taAP; + + public static DtProxy man = new DtProxy(); + + #endregion + } +} diff --git a/MedPred_Data/MedPred_Data.csproj b/MedPred_Data/MedPred_Data.csproj index 31a0cf8..109be95 100644 --- a/MedPred_Data/MedPred_Data.csproj +++ b/MedPred_Data/MedPred_Data.csproj @@ -49,7 +49,7 @@ True DS_Applicazione.xsd - + True @@ -75,6 +75,12 @@ Settings.Designer.cs + + + {2872dcfe-8b46-43b2-baa0-842a816a2dd5} + SteamWare + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MedPred_Data/bin/Release/SteamWare.dll b/MedPred_Data/bin/Release/SteamWare.dll new file mode 100644 index 0000000..3235201 Binary files /dev/null and b/MedPred_Data/bin/Release/SteamWare.dll differ