diff --git a/MedPred.sln b/MedPred.sln index a9d7e48..ab349d9 100644 --- a/MedPred.sln +++ b/MedPred.sln @@ -7,6 +7,28 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamWare", "..\SteamWareLi EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MedPred_Data", "MedPred_Data\MedPred_Data.csproj", "{E1579F2C-67E1-441E-9F71-BF6BAAC04F61}" EndProject +Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "MedPredPhoto", "http://localhost:55783", "{635804B2-4A98-4E0B-85D0-F3D6E7CA9A4E}" + ProjectSection(WebsiteProperties) = preProject + UseIISExpress = "true" + TargetFrameworkMoniker = ".NETFramework,Version%3Dv3.5" + Debug.AspNetCompiler.VirtualPath = "/localhost_55783" + Debug.AspNetCompiler.PhysicalPath = "..\..\WebSites\MedPredPhoto\" + Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_55783\" + Debug.AspNetCompiler.Updateable = "true" + Debug.AspNetCompiler.ForceOverwrite = "true" + Debug.AspNetCompiler.FixedNames = "false" + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.VirtualPath = "/localhost_55783" + Release.AspNetCompiler.PhysicalPath = "..\..\WebSites\MedPredPhoto\" + Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_55783\" + Release.AspNetCompiler.Updateable = "true" + Release.AspNetCompiler.ForceOverwrite = "true" + Release.AspNetCompiler.FixedNames = "false" + Release.AspNetCompiler.Debug = "False" + SlnRelativePath = "..\..\WebSites\MedPredPhoto\" + DefaultWebSiteLanguage = "Visual Basic" + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -32,6 +54,12 @@ Global {E1579F2C-67E1-441E-9F71-BF6BAAC04F61}.Release|Any CPU.Build.0 = Release|Any CPU {E1579F2C-67E1-441E-9F71-BF6BAAC04F61}.WinLab|Any CPU.ActiveCfg = Release|Any CPU {E1579F2C-67E1-441E-9F71-BF6BAAC04F61}.WinLab|Any CPU.Build.0 = Release|Any CPU + {635804B2-4A98-4E0B-85D0-F3D6E7CA9A4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {635804B2-4A98-4E0B-85D0-F3D6E7CA9A4E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {635804B2-4A98-4E0B-85D0-F3D6E7CA9A4E}.Release|Any CPU.ActiveCfg = Debug|Any CPU + {635804B2-4A98-4E0B-85D0-F3D6E7CA9A4E}.Release|Any CPU.Build.0 = Debug|Any CPU + {635804B2-4A98-4E0B-85D0-F3D6E7CA9A4E}.WinLab|Any CPU.ActiveCfg = Debug|Any CPU + {635804B2-4A98-4E0B-85D0-F3D6E7CA9A4E}.WinLab|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/MedPred/MedPred.csproj b/MedPred/MedPred.csproj index 5e65e3f..b2130c0 100644 --- a/MedPred/MedPred.csproj +++ b/MedPred/MedPred.csproj @@ -333,6 +333,7 @@ + @@ -460,6 +461,13 @@ VP.aspx + + VRF.aspx + ASPXCodeBehind + + + VRF.aspx + VSV.aspx ASPXCodeBehind diff --git a/MedPred/Properties/AssemblyInfo.cs b/MedPred/Properties/AssemblyInfo.cs index e412367..b0f17e9 100644 --- a/MedPred/Properties/AssemblyInfo.cs +++ b/MedPred/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.2.*")] -[assembly: AssemblyFileVersion("1.2.*")] +[assembly: AssemblyVersion("1.3.*")] +[assembly: AssemblyFileVersion("1.3.*")] diff --git a/MedPred/Properties/PublishProfiles/218.pubxml b/MedPred/Properties/PublishProfiles/218.pubxml index 7751084..c6aa22a 100644 --- a/MedPred/Properties/PublishProfiles/218.pubxml +++ b/MedPred/Properties/PublishProfiles/218.pubxml @@ -19,10 +19,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt True administrator <_SavePWD>True - True - True - False - DonotMerge @@ -35,7 +31,21 @@ by editing this MSBuild file. In order to learn more about this please visit htt + + + + + + + + + + + True + True + False + DonotMerge \ No newline at end of file diff --git a/MedPred/VRF.aspx b/MedPred/VRF.aspx new file mode 100644 index 0000000..0588fcd --- /dev/null +++ b/MedPred/VRF.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="VRF.aspx.cs" Inherits="MedPred.VRF" %> + + + + diff --git a/MedPred/VRF.aspx.cs b/MedPred/VRF.aspx.cs new file mode 100644 index 0000000..39be2e9 --- /dev/null +++ b/MedPred/VRF.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MedPred +{ + public partial class VRF : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/MedPred/VRF.aspx.designer.cs b/MedPred/VRF.aspx.designer.cs new file mode 100644 index 0000000..fc1dece --- /dev/null +++ b/MedPred/VRF.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MedPred +{ + + + public partial class VRF + { + } +} diff --git a/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx b/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx index 7fc6108..29d8e17 100644 --- a/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx +++ b/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx @@ -64,12 +64,12 @@ - <%-- + - --%> + diff --git a/MedPred_Data/DS_Applicazione.Designer.cs b/MedPred_Data/DS_Applicazione.Designer.cs index a3227c1..b9fdfe6 100644 --- a/MedPred_Data/DS_Applicazione.Designer.cs +++ b/MedPred_Data/DS_Applicazione.Designer.cs @@ -40,6 +40,8 @@ namespace MedPred_Data { private VisStileVitaDataTable tableVisStileVita; + private VisRelazFinDataTable tableVisRelazFin; + private global::System.Data.DataRelation relationFK_VisClinGen_AnagPazienti; private global::System.Data.DataRelation relationFK_VisAnamCli_AnagPazienti; @@ -52,6 +54,8 @@ namespace MedPred_Data { private global::System.Data.DataRelation relationFK_VisStileVita_AnagPazienti; + private global::System.Data.DataRelation relationFK_VisRelazFin_AnagPazienti; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -104,6 +108,9 @@ namespace MedPred_Data { if ((ds.Tables["VisStileVita"] != null)) { base.Tables.Add(new VisStileVitaDataTable(ds.Tables["VisStileVita"])); } + if ((ds.Tables["VisRelazFin"] != null)) { + base.Tables.Add(new VisRelazFinDataTable(ds.Tables["VisRelazFin"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -202,6 +209,16 @@ namespace MedPred_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public VisRelazFinDataTable VisRelazFin { + get { + return this.tableVisRelazFin; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -293,6 +310,9 @@ namespace MedPred_Data { if ((ds.Tables["VisStileVita"] != null)) { base.Tables.Add(new VisStileVitaDataTable(ds.Tables["VisStileVita"])); } + if ((ds.Tables["VisRelazFin"] != null)) { + base.Tables.Add(new VisRelazFinDataTable(ds.Tables["VisRelazFin"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -374,12 +394,19 @@ namespace MedPred_Data { this.tableVisStileVita.InitVars(); } } + this.tableVisRelazFin = ((VisRelazFinDataTable)(base.Tables["VisRelazFin"])); + if ((initTable == true)) { + if ((this.tableVisRelazFin != null)) { + this.tableVisRelazFin.InitVars(); + } + } this.relationFK_VisClinGen_AnagPazienti = this.Relations["FK_VisClinGen_AnagPazienti"]; this.relationFK_VisAnamCli_AnagPazienti = this.Relations["FK_VisAnamCli_AnagPazienti"]; this.relationFK_VisCardioPol_AnagPazienti = this.Relations["FK_VisCardioPol_AnagPazienti"]; this.relationVisBioMecAnt_AnagPazienti = this.Relations["VisBioMecAnt_AnagPazienti"]; this.relationFK_VisPsico_AnagPazienti = this.Relations["FK_VisPsico_AnagPazienti"]; this.relationFK_VisStileVita_AnagPazienti = this.Relations["FK_VisStileVita_AnagPazienti"]; + this.relationFK_VisRelazFin_AnagPazienti = this.Relations["FK_VisRelazFin_AnagPazienti"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -406,6 +433,8 @@ namespace MedPred_Data { base.Tables.Add(this.tableVisPsico); this.tableVisStileVita = new VisStileVitaDataTable(); base.Tables.Add(this.tableVisStileVita); + this.tableVisRelazFin = new VisRelazFinDataTable(); + base.Tables.Add(this.tableVisRelazFin); this.relationFK_VisClinGen_AnagPazienti = new global::System.Data.DataRelation("FK_VisClinGen_AnagPazienti", new global::System.Data.DataColumn[] { this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { this.tableVisLab.IdxPazienteColumn}, false); @@ -430,6 +459,10 @@ namespace MedPred_Data { this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { this.tableVisStileVita.IdxPazienteColumn}, false); this.Relations.Add(this.relationFK_VisStileVita_AnagPazienti); + this.relationFK_VisRelazFin_AnagPazienti = new global::System.Data.DataRelation("FK_VisRelazFin_AnagPazienti", new global::System.Data.DataColumn[] { + this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { + this.tableVisRelazFin.IdxPazienteColumn}, false); + this.Relations.Add(this.relationFK_VisRelazFin_AnagPazienti); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -480,6 +513,12 @@ namespace MedPred_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeVisRelazFin() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -559,6 +598,9 @@ namespace MedPred_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void VisStileVitaRowChangeEventHandler(object sender, VisStileVitaRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void VisRelazFinRowChangeEventHandler(object sender, VisRelazFinRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -4843,6 +4885,329 @@ namespace MedPred_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class VisRelazFinDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxPaziente; + + private global::System.Data.DataColumn columnDataVisita; + + private global::System.Data.DataColumn columnNote; + + private global::System.Data.DataColumn columnScore1; + + private global::System.Data.DataColumn columnScore2; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinDataTable() { + this.TableName = "VisRelazFin"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisRelazFinDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected VisRelazFinDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxPazienteColumn { + get { + return this.columnIdxPaziente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataVisitaColumn { + get { + return this.columnDataVisita; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NoteColumn { + get { + return this.columnNote; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn Score1Column { + get { + return this.columnScore1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn Score2Column { + get { + return this.columnScore2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinRow this[int index] { + get { + return ((VisRelazFinRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisRelazFinRowChangeEventHandler VisRelazFinRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisRelazFinRowChangeEventHandler VisRelazFinRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisRelazFinRowChangeEventHandler VisRelazFinRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisRelazFinRowChangeEventHandler VisRelazFinRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddVisRelazFinRow(VisRelazFinRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinRow AddVisRelazFinRow(AnagPazientiRow parentAnagPazientiRowByFK_VisRelazFin_AnagPazienti, System.DateTime DataVisita, string Note, double Score1, double Score2) { + VisRelazFinRow rowVisRelazFinRow = ((VisRelazFinRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + DataVisita, + Note, + Score1, + Score2}; + if ((parentAnagPazientiRowByFK_VisRelazFin_AnagPazienti != null)) { + columnValuesArray[0] = parentAnagPazientiRowByFK_VisRelazFin_AnagPazienti[0]; + } + rowVisRelazFinRow.ItemArray = columnValuesArray; + this.Rows.Add(rowVisRelazFinRow); + return rowVisRelazFinRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinRow FindByIdxPazienteDataVisita(int IdxPaziente, System.DateTime DataVisita) { + return ((VisRelazFinRow)(this.Rows.Find(new object[] { + IdxPaziente, + DataVisita}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + VisRelazFinDataTable cln = ((VisRelazFinDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new VisRelazFinDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxPaziente = base.Columns["IdxPaziente"]; + this.columnDataVisita = base.Columns["DataVisita"]; + this.columnNote = base.Columns["Note"]; + this.columnScore1 = base.Columns["Score1"]; + this.columnScore2 = base.Columns["Score2"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxPaziente = new global::System.Data.DataColumn("IdxPaziente", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxPaziente); + this.columnDataVisita = new global::System.Data.DataColumn("DataVisita", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataVisita); + this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNote); + this.columnScore1 = new global::System.Data.DataColumn("Score1", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnScore1); + this.columnScore2 = new global::System.Data.DataColumn("Score2", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnScore2); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxPaziente, + this.columnDataVisita}, true)); + this.columnIdxPaziente.AllowDBNull = false; + this.columnDataVisita.AllowDBNull = false; + this.columnNote.AllowDBNull = false; + this.columnNote.MaxLength = 2147483647; + this.columnScore1.AllowDBNull = false; + this.columnScore2.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinRow NewVisRelazFinRow() { + return ((VisRelazFinRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new VisRelazFinRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(VisRelazFinRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.VisRelazFinRowChanged != null)) { + this.VisRelazFinRowChanged(this, new VisRelazFinRowChangeEvent(((VisRelazFinRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.VisRelazFinRowChanging != null)) { + this.VisRelazFinRowChanging(this, new VisRelazFinRowChangeEvent(((VisRelazFinRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.VisRelazFinRowDeleted != null)) { + this.VisRelazFinRowDeleted(this, new VisRelazFinRowChangeEvent(((VisRelazFinRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.VisRelazFinRowDeleting != null)) { + this.VisRelazFinRowDeleting(this, new VisRelazFinRowChangeEvent(((VisRelazFinRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveVisRelazFinRow(VisRelazFinRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Applicazione ds = new DS_Applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "VisRelazFinDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -5082,6 +5447,17 @@ namespace MedPred_Data { return ((VisStileVitaRow[])(base.GetChildRows(this.Table.ChildRelations["FK_VisStileVita_AnagPazienti"]))); } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinRow[] GetVisRelazFinRows() { + if ((this.Table.ChildRelations["FK_VisRelazFin_AnagPazienti"] == null)) { + return new VisRelazFinRow[0]; + } + else { + return ((VisRelazFinRow[])(base.GetChildRows(this.Table.ChildRelations["FK_VisRelazFin_AnagPazienti"]))); + } + } } /// @@ -7109,6 +7485,87 @@ namespace MedPred_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class VisRelazFinRow : global::System.Data.DataRow { + + private VisRelazFinDataTable tableVisRelazFin; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisRelazFinRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableVisRelazFin = ((VisRelazFinDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxPaziente { + get { + return ((int)(this[this.tableVisRelazFin.IdxPazienteColumn])); + } + set { + this[this.tableVisRelazFin.IdxPazienteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataVisita { + get { + return ((global::System.DateTime)(this[this.tableVisRelazFin.DataVisitaColumn])); + } + set { + this[this.tableVisRelazFin.DataVisitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Note { + get { + return ((string)(this[this.tableVisRelazFin.NoteColumn])); + } + set { + this[this.tableVisRelazFin.NoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Score1 { + get { + return ((double)(this[this.tableVisRelazFin.Score1Column])); + } + set { + this[this.tableVisRelazFin.Score1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Score2 { + get { + return ((double)(this[this.tableVisRelazFin.Score2Column])); + } + set { + this[this.tableVisRelazFin.Score2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagPazientiRow AnagPazientiRow { + get { + return ((AnagPazientiRow)(this.GetParentRow(this.Table.ParentRelations["FK_VisRelazFin_AnagPazienti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_VisRelazFin_AnagPazienti"]); + } + } + } + /// ///Row event argument class /// @@ -7380,6 +7837,40 @@ namespace MedPred_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class VisRelazFinRowChangeEvent : global::System.EventArgs { + + private VisRelazFinRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinRowChangeEvent(VisRelazFinRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace MedPred_Data.DS_ApplicazioneTableAdapters { @@ -13254,6 +13745,339 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class VisRelazFinTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisRelazFinTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "VisRelazFin"; + tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente"); + tableMapping.ColumnMappings.Add("DataVisita", "DataVisita"); + tableMapping.ColumnMappings.Add("Note", "Note"); + tableMapping.ColumnMappings.Add("Score1", "Score1"); + tableMapping.ColumnMappings.Add("Score2", "Score2"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[VisRelazFin] WHERE (([IdxPaziente] = @Original_IdxPaziente) AN" + + "D ([DataVisita] = @Original_DataVisita) AND ([Score1] = @Original_Score1) AND ([" + + "Score2] = @Original_Score2))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataVisita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Score1", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Score1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Score2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Score2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[VisRelazFin] ([IdxPaziente], [DataVisita], [Note], [Score1], [Score2]) VALUES (@IdxPaziente, @DataVisita, @Note, @Score1, @Score2); +SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataVisita", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Score1", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Score1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Score2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Score2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[VisRelazFin] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [Note] = @Note, [Score1] = @Score1, [Score2] = @Score2 WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Score1] = @Original_Score1) AND ([Score2] = @Original_Score2)); +SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataVisita", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Score1", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Score1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Score2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Score2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataVisita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Score1", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Score1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Score2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Score2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MedPred_Data.Properties.Settings.Default.MedPredConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM dbo.VisRelazFin"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Applicazione.VisRelazFinDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Applicazione.VisRelazFinDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.VisRelazFinDataTable dataTable = new DS_Applicazione.VisRelazFinDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione.VisRelazFinDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione dataSet) { + return this.Adapter.Update(dataSet, "VisRelazFin"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxPaziente, System.DateTime Original_DataVisita, double Original_Score1, double Original_Score2) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxPaziente)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_DataVisita)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((double)(Original_Score1)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_Score2)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxPaziente, System.DateTime DataVisita, string Note, double Score1, double Score2) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxPaziente)); + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); + if ((Note == null)) { + throw new global::System.ArgumentNullException("Note"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Note)); + } + this.Adapter.InsertCommand.Parameters[3].Value = ((double)(Score1)); + this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Score2)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxPaziente, System.DateTime DataVisita, string Note, double Score1, double Score2, int Original_IdxPaziente, System.DateTime Original_DataVisita, double Original_Score1, double Original_Score2) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); + if ((Note == null)) { + throw new global::System.ArgumentNullException("Note"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Note)); + } + this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(Score1)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Score2)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_DataVisita)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(Original_Score1)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(Original_Score2)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Note, double Score1, double Score2, int Original_IdxPaziente, System.DateTime Original_DataVisita, double Original_Score1, double Original_Score2) { + return this.Update(Original_IdxPaziente, Original_DataVisita, Note, Score1, Score2, Original_IdxPaziente, Original_DataVisita, Original_Score1, Original_Score2); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -13276,6 +14100,8 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm private VisPsicoTableAdapter _visPsicoTableAdapter; + private VisRelazFinTableAdapter _visRelazFinTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -13361,6 +14187,20 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public VisRelazFinTableAdapter VisRelazFinTableAdapter { + get { + return this._visRelazFinTableAdapter; + } + set { + this._visRelazFinTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -13400,6 +14240,10 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm && (this._visPsicoTableAdapter.Connection != null))) { return this._visPsicoTableAdapter.Connection; } + if (((this._visRelazFinTableAdapter != null) + && (this._visRelazFinTableAdapter.Connection != null))) { + return this._visRelazFinTableAdapter.Connection; + } return null; } set { @@ -13428,6 +14272,9 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm if ((this._visPsicoTableAdapter != null)) { count = (count + 1); } + if ((this._visRelazFinTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -13484,6 +14331,15 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm allChangedRows.AddRange(updatedRows); } } + if ((this._visRelazFinTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.VisRelazFin.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._visRelazFinTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -13534,6 +14390,14 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm allAddedRows.AddRange(addedRows); } } + if ((this._visRelazFinTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.VisRelazFin.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._visRelazFinTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -13544,6 +14408,14 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; + if ((this._visRelazFinTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.VisRelazFin.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._visRelazFinTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._visPsicoTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.VisPsico.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -13648,6 +14520,11 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._visRelazFinTableAdapter != null) + && (this.MatchTableAdapterConnection(this._visRelazFinTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -13725,6 +14602,15 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm adaptersWithAcceptChangesDuringUpdate.Add(this._visPsicoTableAdapter.Adapter); } } + if ((this._visRelazFinTableAdapter != null)) { + revertConnections.Add(this._visRelazFinTableAdapter, this._visRelazFinTableAdapter.Connection); + this._visRelazFinTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._visRelazFinTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._visRelazFinTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._visRelazFinTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._visRelazFinTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -13803,6 +14689,10 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm this._visPsicoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visPsicoTableAdapter])); this._visPsicoTableAdapter.Transaction = null; } + if ((this._visRelazFinTableAdapter != null)) { + this._visRelazFinTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visRelazFinTableAdapter])); + this._visRelazFinTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/MedPred_Data/DS_Applicazione.xsd b/MedPred_Data/DS_Applicazione.xsd index b41d2da..ce485c0 100644 --- a/MedPred_Data/DS_Applicazione.xsd +++ b/MedPred_Data/DS_Applicazione.xsd @@ -1252,6 +1252,67 @@ FROM v_VisStileVita + + + + + + DELETE FROM [dbo].[VisRelazFin] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Score1] = @Original_Score1) AND ([Score2] = @Original_Score2)) + + + + + + + + + + + INSERT INTO [dbo].[VisRelazFin] ([IdxPaziente], [DataVisita], [Note], [Score1], [Score2]) VALUES (@IdxPaziente, @DataVisita, @Note, @Score1, @Score2); +SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM dbo.VisRelazFin + + + + + + UPDATE [dbo].[VisRelazFin] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [Note] = @Note, [Score1] = @Score1, [Score2] = @Score2 WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Score1] = @Original_Score1) AND ([Score2] = @Original_Score2)); +SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + + + + + + + + + + + + + @@ -1260,7 +1321,7 @@ FROM v_VisStileVita - + @@ -1339,7 +1400,7 @@ FROM v_VisStileVita - + @@ -1353,7 +1414,7 @@ FROM v_VisStileVita - + @@ -1375,7 +1436,7 @@ FROM v_VisStileVita - + @@ -1398,7 +1459,7 @@ FROM v_VisStileVita - + @@ -1426,7 +1487,7 @@ FROM v_VisStileVita - + @@ -1468,7 +1529,7 @@ FROM v_VisStileVita - + @@ -1486,7 +1547,7 @@ FROM v_VisStileVita - + @@ -1538,6 +1599,23 @@ FROM v_VisStileVita + + + + + + + + + + + + + + + + + @@ -1578,15 +1656,21 @@ FROM v_VisStileVita + + + + + - - - - - - + + + + + + + \ No newline at end of file diff --git a/MedPred_Data/bin/Release/MedPred_Data.dll b/MedPred_Data/bin/Release/MedPred_Data.dll index f67de7b..4882d3e 100644 Binary files a/MedPred_Data/bin/Release/MedPred_Data.dll and b/MedPred_Data/bin/Release/MedPred_Data.dll differ diff --git a/MedPred_Data/bin/Release/SteamWare.dll b/MedPred_Data/bin/Release/SteamWare.dll index 9a59248..c4c94f6 100644 Binary files a/MedPred_Data/bin/Release/SteamWare.dll and b/MedPred_Data/bin/Release/SteamWare.dll differ