diff --git a/MedPred/MedPred.csproj b/MedPred/MedPred.csproj index c9ac4cd..506a104 100644 --- a/MedPred/MedPred.csproj +++ b/MedPred/MedPred.csproj @@ -329,7 +329,6 @@ - @@ -435,13 +434,6 @@ VEco.aspx - - VGen.aspx - ASPXCodeBehind - - - VGen.aspx - Visite.aspx ASPXCodeBehind diff --git a/MedPred/VAC.aspx b/MedPred/VAC.aspx index 560ef32..7c0dc56 100644 --- a/MedPred/VAC.aspx +++ b/MedPred/VAC.aspx @@ -1,26 +1,158 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="VAC.aspx.cs" Inherits="MedPred.VAC" %> +<%-- --%>
- ITEM - EMPTY - - -
+
+
+
    +
  • Data:
  • +
  • + <%----%> + <%: Request.QueryString["DataVisita"] %> +
  • +
  • Fam MCCV:
  • +
  • + +
  • + + <%--
+
    --%> +
  • Adesione Terapie:
  • +
  • + +
  • + <%--
+
    --%> +
  • Sedentariertà:
  • +
  • + +
  • +
+
+
+
    +
  • Ipertensione:
  • +
  • + +
  • +
  • + + +
  • +
+
    +
  • Diabete:
  • +
  • + +
  • +
  • + + +
  • +
+
+
+
    +
  • Ipercolesterolemia:
  • +
  • + +
  • +
  • + + +
  • +
+
    +
  • Fumo:
  • +
  • + +
  • +
  • + + +
  • +
+
+
+
    +
  • Alcool:
  • +
  • + +
  • +
  • + + +
  • +
+
    +
  • Sovrappeso:
  • +
  • + +
  • +
  • + + +
  • +
+
+
+
    +
  • +
    +
    + +
    +
    + +
    +
    +
  • +
+
+
+ + +
+
+
    +
  • Data:
  • +
  • + <%: Request.QueryString["DataVisita"] %> +
  • +
  • Fam MCCV:
  • -
  • -
-
    + <%--
+
    --%> +
  • Adesione Terapie:
  • +
  • + +
  • + <%--
+
    --%> +
  • Sedentariertà:
  • +
  • + +
  • +
+
+
+
    +
  • Ipertensione:
  • -
  • @@ -28,9 +160,9 @@
-
    +
      +
    • Diabete:
    • -
    • @@ -39,16 +171,10 @@
-
+
    +
  • Ipercolesterolemia:
  • - - -
  • -
-
    -
  • -
  • @@ -57,8 +183,8 @@
    +
  • Fumo:
  • -
  • @@ -67,16 +193,10 @@
-
+
    +
  • Alcool:
  • - - -
  • -
-
    -
  • -
  • @@ -85,8 +205,8 @@
    +
  • Sovrappeso:
  • -
  • @@ -114,44 +234,96 @@
- <%--
-
+
+
    +
  • Data:
  • - - + <%: Request.QueryString["DataVisita"] %> + <%----%>
  • +
  • Fam MCCV:
  • - - +
  • + + <%--
+
    --%> +
  • Adesione Terapie:
  • - - - - - +
  • + <%--
+
    --%> +
  • Sedentariertà:
  • - - +
-
+
    +
  • Ipertensione:
  • - - - +
  • - - + + +
  • +
+
    +
  • Diabete:
  • +
  • +
  • - - + + +
  • +
+
+
+
    +
  • Ipercolesterolemia:
  • +
  • + +
  • +
  • + + +
  • +
+
    +
  • Fumo:
  • +
  • + +
  • +
  • + + +
  • +
+
+
+
    +
  • Alcool:
  • +
  • + +
  • +
  • + + +
  • +
+
    +
  • Sovrappeso:
  • +
  • + +
  • +
  • + +
@@ -162,7 +334,7 @@
  • - +
    @@ -171,34 +343,58 @@
  • -
    --%> +
    - + - + + + <%-- + --%> - - - - - - - + + + + + + + + + + + + + + + + + - + + - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/MedPred/VAC.aspx.cs b/MedPred/VAC.aspx.cs index a4b7128..ab0e006 100644 --- a/MedPred/VAC.aspx.cs +++ b/MedPred/VAC.aspx.cs @@ -14,15 +14,19 @@ namespace MedPred if (!Page.IsPostBack) { // verifico se sia con parametro paziente o NEW... - string IdxPaziente = Request.QueryString["IdxPaziente"]; - if (IdxPaziente == "" || IdxPaziente == null) + string cmd = Request.QueryString["cmd"]; + if (cmd == "" || cmd == null) + { + frmView.ChangeMode(FormViewMode.ReadOnly); + } + else if (cmd == "sel") + { + frmView.ChangeMode(FormViewMode.ReadOnly); + } + else if (cmd == "new") { frmView.ChangeMode(FormViewMode.Insert); } - else - { - frmView.ChangeMode(FormViewMode.Edit); - } } } @@ -33,5 +37,10 @@ namespace MedPred //Response.Redirect("Accettazione"); } } + + protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e) + { + Response.Redirect("Accettazione"); + } } } \ No newline at end of file diff --git a/MedPred/VCiclo.aspx.cs b/MedPred/VCiclo.aspx.cs index c74e033..4b571fd 100644 --- a/MedPred/VCiclo.aspx.cs +++ b/MedPred/VCiclo.aspx.cs @@ -161,7 +161,7 @@ namespace MedPred try { - if (((DS_Applicazione.VisGenRow)((DataRowView)e.Row.DataItem).Row).DataVisita == Convert.ToDateTime(memLayer.ML.StringSessionObj("DataVisita"))) + if (((DS_Applicazione.VisAnamCliRow)((DataRowView)e.Row.DataItem).Row).DataVisita == Convert.ToDateTime(memLayer.ML.StringSessionObj("DataVisita"))) { memLayer.ML.setSessionVal("IdxRowVGen", e.Row.DataItemIndex); Response.Redirect("VCiclo"); diff --git a/MedPred/VEco.aspx.cs b/MedPred/VEco.aspx.cs index 2f71923..aa79b8f 100644 --- a/MedPred/VEco.aspx.cs +++ b/MedPred/VEco.aspx.cs @@ -147,7 +147,7 @@ namespace MedPred try { - if (((DS_Applicazione.VisGenRow)((DataRowView)e.Row.DataItem).Row).DataVisita == Convert.ToDateTime(memLayer.ML.StringSessionObj("DataVisita"))) + if (((DS_Applicazione.VisAnamCliRow)((DataRowView)e.Row.DataItem).Row).DataVisita == Convert.ToDateTime(memLayer.ML.StringSessionObj("DataVisita"))) { memLayer.ML.setSessionVal("IdxRowVGen", e.Row.DataItemIndex); Response.Redirect("VEco"); diff --git a/MedPred/VGen.aspx.cs b/MedPred/VGen.aspx.cs index d32ee02..058c7c6 100644 --- a/MedPred/VGen.aspx.cs +++ b/MedPred/VGen.aspx.cs @@ -31,12 +31,12 @@ namespace MedPred { dataVisita = DateTime.Now; } - DtProxy.man.taVGen.InsertQuery(IdxPaziente, dataVisita, 0, 0, 0, 0, 0, 0); + DtProxy.man.taVAC.InsertQuery(IdxPaziente, dataVisita, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Redirect senza creazione nuovo! Response.Redirect("VGen?cmd=sel"); } // se ho idxRow selezionata imposto - if(memLayer.ML.isInSessionObject("IdxRowVGen")) + if (memLayer.ML.isInSessionObject("IdxRowVGen")) { grView.SelectedIndex = memLayer.ML.IntSessionObj("IdxRowVGen"); memLayer.ML.emptySessionVal("IdxRowVGen"); diff --git a/MedPred/VLab.aspx.cs b/MedPred/VLab.aspx.cs index e1a5ada..7db7681 100644 --- a/MedPred/VLab.aspx.cs +++ b/MedPred/VLab.aspx.cs @@ -156,7 +156,7 @@ namespace MedPred try { - if (((DS_Applicazione.VisGenRow)((DataRowView)e.Row.DataItem).Row).DataVisita == Convert.ToDateTime(memLayer.ML.StringSessionObj("DataVisita"))) + if (((DS_Applicazione.VisAnamCliRow)((DataRowView)e.Row.DataItem).Row).DataVisita == Convert.ToDateTime(memLayer.ML.StringSessionObj("DataVisita"))) { memLayer.ML.setSessionVal("IdxRowVGen", e.Row.DataItemIndex); Response.Redirect("VLab"); diff --git a/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx.cs b/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx.cs index cd8066f..5be56cd 100644 --- a/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx.cs +++ b/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx.cs @@ -45,7 +45,7 @@ namespace MedPred.WebUserControls dataVisita = Convert.ToDateTime(grView.SelectedDataKey["DataVisita"]); memLayer.ML.setSessionVal("DataVisita", dataVisita); //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)); + //memLayer.ML.setSessionVal("Paziente", string.Format("{0} {1} ({2:yyyy-MM-dd})", riga.Cognome, riga.Nome, riga.DataNasc)); } catch { } @@ -53,46 +53,46 @@ namespace MedPred.WebUserControls switch (lastCmd) { case "SelVAC": - Response.Redirect("VAC?cmd=sel"); + Response.Redirect(String.Format("VAC?cmd=sel&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "NewVAC": - Response.Redirect("VAC?cmd=new"); + Response.Redirect(String.Format("VAC?cmd=new&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "SelVBMA": - Response.Redirect("VBMA?cmd=sel"); + Response.Redirect(String.Format("VBMA?cmd=sel&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "NewVBMA": - Response.Redirect("VBMA?cmd=new"); + Response.Redirect(String.Format("VBMA?cmd=new&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "SelVCP": - Response.Redirect("VCP?cmd=sel"); + Response.Redirect(String.Format("VCP?cmd=sel&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "NewVCP": - Response.Redirect("VCP?cmd=new"); + Response.Redirect(String.Format("VCP?cmd=new&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "SelVL": - Response.Redirect("VL?cmd=sel"); + Response.Redirect(String.Format("VL?cmd=sel&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "NewVL": - Response.Redirect("VL?cmd=new"); + Response.Redirect(String.Format("VL?cmd=new&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "SelVP": - Response.Redirect("VP?cmd=sel"); + Response.Redirect(String.Format("VP?cmd=sel&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "NewVP": - Response.Redirect("VP?cmd=new"); + Response.Redirect(String.Format("VP?cmd=new&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "SelVSV": - Response.Redirect("VSV?cmd=sel"); + Response.Redirect(String.Format("VSV?cmd=sel&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "NewVSV": - Response.Redirect("VSV?cmd=new"); + Response.Redirect(String.Format("VSV?cmd=new&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "SelVRF": - Response.Redirect("VRF?cmd=sel"); + Response.Redirect(String.Format("VRF?cmd=sel&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; case "NewVRF": - Response.Redirect("VRF?cmd=new"); + Response.Redirect(String.Format("VRF?cmd=new&DataVisita={0:yyyy-MM-dd}", dataVisita)); break; default: break; diff --git a/MedPred/bin/SteamWare.xml b/MedPred/bin/SteamWare.xml index 72e921e..f991ef6 100644 --- a/MedPred/bin/SteamWare.xml +++ b/MedPred/bin/SteamWare.xml @@ -3203,6 +3203,11 @@ + + + indica se i caratteri vadano forzati a maiuscoli + + classe gestione utente: auth e permission/ruoli - versione GENERICA diff --git a/MedPred20140805.txt b/MedPred20140805.txt new file mode 100644 index 0000000..52a69d3 --- /dev/null +++ b/MedPred20140805.txt @@ -0,0 +1,3 @@ +18:11:04 7246 [LEMMA] - confermaDel +18:11:08 1688 [LEMMA] - confermaDel +18:11:14 4674 [LEMMA] - confermaDel diff --git a/MedPred_Data/DS_Applicazione.Designer.cs b/MedPred_Data/DS_Applicazione.Designer.cs index 639603c..81d0056 100644 --- a/MedPred_Data/DS_Applicazione.Designer.cs +++ b/MedPred_Data/DS_Applicazione.Designer.cs @@ -26,8 +26,6 @@ namespace MedPred_Data { private AnagPazientiDataTable tableAnagPazienti; - private VisGenDataTable tableVisGen; - private ElencoVisiteDataTable tableElencoVisite; private VisCardioDataTable tableVisCardio; @@ -38,8 +36,6 @@ namespace MedPred_Data { private VisAnamCliDataTable tableVisAnamCli; - private global::System.Data.DataRelation relationFK_VisGen_AnagPazienti; - private global::System.Data.DataRelation relationFK_VisCardio_AnagPazienti; private global::System.Data.DataRelation relationFK_VisClinGen_AnagPazienti; @@ -79,9 +75,6 @@ namespace MedPred_Data { if ((ds.Tables["AnagPazienti"] != null)) { base.Tables.Add(new AnagPazientiDataTable(ds.Tables["AnagPazienti"])); } - if ((ds.Tables["VisGen"] != null)) { - base.Tables.Add(new VisGenDataTable(ds.Tables["VisGen"])); - } if ((ds.Tables["ElencoVisite"] != null)) { base.Tables.Add(new ElencoVisiteDataTable(ds.Tables["ElencoVisite"])); } @@ -125,16 +118,6 @@ 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 VisGenDataTable VisGen { - get { - return this.tableVisGen; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -255,9 +238,6 @@ namespace MedPred_Data { if ((ds.Tables["AnagPazienti"] != null)) { base.Tables.Add(new AnagPazientiDataTable(ds.Tables["AnagPazienti"])); } - if ((ds.Tables["VisGen"] != null)) { - base.Tables.Add(new VisGenDataTable(ds.Tables["VisGen"])); - } if ((ds.Tables["ElencoVisite"] != null)) { base.Tables.Add(new ElencoVisiteDataTable(ds.Tables["ElencoVisite"])); } @@ -312,12 +292,6 @@ namespace MedPred_Data { this.tableAnagPazienti.InitVars(); } } - this.tableVisGen = ((VisGenDataTable)(base.Tables["VisGen"])); - if ((initTable == true)) { - if ((this.tableVisGen != null)) { - this.tableVisGen.InitVars(); - } - } this.tableElencoVisite = ((ElencoVisiteDataTable)(base.Tables["ElencoVisite"])); if ((initTable == true)) { if ((this.tableElencoVisite != null)) { @@ -348,7 +322,6 @@ namespace MedPred_Data { this.tableVisAnamCli.InitVars(); } } - this.relationFK_VisGen_AnagPazienti = this.Relations["FK_VisGen_AnagPazienti"]; this.relationFK_VisCardio_AnagPazienti = this.Relations["FK_VisCardio_AnagPazienti"]; this.relationFK_VisClinGen_AnagPazienti = this.Relations["FK_VisClinGen_AnagPazienti"]; this.relationFK_VisCiclo_AnagPazienti = this.Relations["FK_VisCiclo_AnagPazienti"]; @@ -365,8 +338,6 @@ namespace MedPred_Data { this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableAnagPazienti = new AnagPazientiDataTable(); base.Tables.Add(this.tableAnagPazienti); - this.tableVisGen = new VisGenDataTable(); - base.Tables.Add(this.tableVisGen); this.tableElencoVisite = new ElencoVisiteDataTable(); base.Tables.Add(this.tableElencoVisite); this.tableVisCardio = new VisCardioDataTable(); @@ -377,10 +348,6 @@ namespace MedPred_Data { base.Tables.Add(this.tableVisCiclo); this.tableVisAnamCli = new VisAnamCliDataTable(); base.Tables.Add(this.tableVisAnamCli); - this.relationFK_VisGen_AnagPazienti = new global::System.Data.DataRelation("FK_VisGen_AnagPazienti", new global::System.Data.DataColumn[] { - this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { - this.tableVisGen.IdxPazienteColumn}, false); - this.Relations.Add(this.relationFK_VisGen_AnagPazienti); this.relationFK_VisCardio_AnagPazienti = new global::System.Data.DataRelation("FK_VisCardio_AnagPazienti", new global::System.Data.DataColumn[] { this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { this.tableVisCardio.IdxPazienteColumn}, false); @@ -405,12 +372,6 @@ namespace MedPred_Data { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeVisGen() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializeElencoVisite() { @@ -499,9 +460,6 @@ namespace MedPred_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void AnagPazientiRowChangeEventHandler(object sender, AnagPazientiRowChangeEvent e); - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public delegate void VisGenRowChangeEventHandler(object sender, VisGenRowChangeEvent e); - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void ElencoVisiteRowChangeEventHandler(object sender, ElencoVisiteRowChangeEvent e); @@ -905,448 +863,6 @@ namespace MedPred_Data { } } - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class VisGenDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnIdxPaziente; - - private global::System.Data.DataColumn columnDataVisita; - - private global::System.Data.DataColumn columnPeso; - - private global::System.Data.DataColumn columnAltezza; - - private global::System.Data.DataColumn columnBMI; - - private global::System.Data.DataColumn columnCirconfVita; - - private global::System.Data.DataColumn columnGrassoTotPerc; - - private global::System.Data.DataColumn columnGrassoTot; - - private global::System.Data.DataColumn columnGrassoViscPerc; - - private global::System.Data.DataColumn columnGrassoVisc; - - private global::System.Data.DataColumn columnGrassoViscTot; - - private global::System.Data.DataColumn columnMassaMagraTotPerc; - - private global::System.Data.DataColumn columnMassaMagraTot; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public VisGenDataTable() { - this.TableName = "VisGen"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal VisGenDataTable(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 VisGenDataTable(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 PesoColumn { - get { - return this.columnPeso; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn AltezzaColumn { - get { - return this.columnAltezza; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn BMIColumn { - get { - return this.columnBMI; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn CirconfVitaColumn { - get { - return this.columnCirconfVita; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn GrassoTotPercColumn { - get { - return this.columnGrassoTotPerc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn GrassoTotColumn { - get { - return this.columnGrassoTot; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn GrassoViscPercColumn { - get { - return this.columnGrassoViscPerc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn GrassoViscColumn { - get { - return this.columnGrassoVisc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn GrassoViscTotColumn { - get { - return this.columnGrassoViscTot; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn MassaMagraTotPercColumn { - get { - return this.columnMassaMagraTotPerc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn MassaMagraTotColumn { - get { - return this.columnMassaMagraTot; - } - } - - [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 VisGenRow this[int index] { - get { - return ((VisGenRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event VisGenRowChangeEventHandler VisGenRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event VisGenRowChangeEventHandler VisGenRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event VisGenRowChangeEventHandler VisGenRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event VisGenRowChangeEventHandler VisGenRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void AddVisGenRow(VisGenRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public VisGenRow AddVisGenRow(AnagPazientiRow parentAnagPazientiRowByFK_VisGen_AnagPazienti, System.DateTime DataVisita, double Peso, double Altezza, double BMI, double CirconfVita, double GrassoTotPerc, double GrassoTot, double GrassoViscPerc, double GrassoVisc, double GrassoViscTot, double MassaMagraTotPerc, double MassaMagraTot) { - VisGenRow rowVisGenRow = ((VisGenRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - DataVisita, - Peso, - Altezza, - BMI, - CirconfVita, - GrassoTotPerc, - GrassoTot, - GrassoViscPerc, - GrassoVisc, - GrassoViscTot, - MassaMagraTotPerc, - MassaMagraTot}; - if ((parentAnagPazientiRowByFK_VisGen_AnagPazienti != null)) { - columnValuesArray[0] = parentAnagPazientiRowByFK_VisGen_AnagPazienti[0]; - } - rowVisGenRow.ItemArray = columnValuesArray; - this.Rows.Add(rowVisGenRow); - return rowVisGenRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public VisGenRow FindByIdxPazienteDataVisita(int IdxPaziente, System.DateTime DataVisita) { - return ((VisGenRow)(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() { - VisGenDataTable cln = ((VisGenDataTable)(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 VisGenDataTable(); - } - - [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.columnPeso = base.Columns["Peso"]; - this.columnAltezza = base.Columns["Altezza"]; - this.columnBMI = base.Columns["BMI"]; - this.columnCirconfVita = base.Columns["CirconfVita"]; - this.columnGrassoTotPerc = base.Columns["GrassoTotPerc"]; - this.columnGrassoTot = base.Columns["GrassoTot"]; - this.columnGrassoViscPerc = base.Columns["GrassoViscPerc"]; - this.columnGrassoVisc = base.Columns["GrassoVisc"]; - this.columnGrassoViscTot = base.Columns["GrassoViscTot"]; - this.columnMassaMagraTotPerc = base.Columns["MassaMagraTotPerc"]; - this.columnMassaMagraTot = base.Columns["MassaMagraTot"]; - } - - [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.columnPeso = new global::System.Data.DataColumn("Peso", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnPeso); - this.columnAltezza = new global::System.Data.DataColumn("Altezza", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnAltezza); - this.columnBMI = new global::System.Data.DataColumn("BMI", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnBMI); - this.columnCirconfVita = new global::System.Data.DataColumn("CirconfVita", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCirconfVita); - this.columnGrassoTotPerc = new global::System.Data.DataColumn("GrassoTotPerc", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnGrassoTotPerc); - this.columnGrassoTot = new global::System.Data.DataColumn("GrassoTot", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnGrassoTot); - this.columnGrassoViscPerc = new global::System.Data.DataColumn("GrassoViscPerc", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnGrassoViscPerc); - this.columnGrassoVisc = new global::System.Data.DataColumn("GrassoVisc", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnGrassoVisc); - this.columnGrassoViscTot = new global::System.Data.DataColumn("GrassoViscTot", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnGrassoViscTot); - this.columnMassaMagraTotPerc = new global::System.Data.DataColumn("MassaMagraTotPerc", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMassaMagraTotPerc); - this.columnMassaMagraTot = new global::System.Data.DataColumn("MassaMagraTot", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMassaMagraTot); - 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.columnPeso.AllowDBNull = false; - this.columnAltezza.AllowDBNull = false; - this.columnBMI.ReadOnly = true; - this.columnCirconfVita.AllowDBNull = false; - this.columnGrassoTotPerc.AllowDBNull = false; - this.columnGrassoTot.ReadOnly = true; - this.columnGrassoViscPerc.AllowDBNull = false; - this.columnGrassoVisc.ReadOnly = true; - this.columnGrassoViscTot.ReadOnly = true; - this.columnMassaMagraTotPerc.AllowDBNull = false; - this.columnMassaMagraTot.ReadOnly = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public VisGenRow NewVisGenRow() { - return ((VisGenRow)(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 VisGenRow(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(VisGenRow); - } - - [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.VisGenRowChanged != null)) { - this.VisGenRowChanged(this, new VisGenRowChangeEvent(((VisGenRow)(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.VisGenRowChanging != null)) { - this.VisGenRowChanging(this, new VisGenRowChangeEvent(((VisGenRow)(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.VisGenRowDeleted != null)) { - this.VisGenRowDeleted(this, new VisGenRowChangeEvent(((VisGenRow)(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.VisGenRowDeleting != null)) { - this.VisGenRowDeleting(this, new VisGenRowChangeEvent(((VisGenRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void RemoveVisGenRow(VisGenRow 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 = "VisGenDataTable"; - 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 the strongly named DataTable class. /// @@ -3658,17 +3174,6 @@ namespace MedPred_Data { this[this.tableAnagPazienti.EtaColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public VisGenRow[] GetVisGenRows() { - if ((this.Table.ChildRelations["FK_VisGen_AnagPazienti"] == null)) { - return new VisGenRow[0]; - } - else { - return ((VisGenRow[])(base.GetChildRows(this.Table.ChildRelations["FK_VisGen_AnagPazienti"]))); - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public VisCardioRow[] GetVisCardioRows() { @@ -3714,260 +3219,6 @@ namespace MedPred_Data { } } - /// - ///Represents strongly named DataRow class. - /// - public partial class VisGenRow : global::System.Data.DataRow { - - private VisGenDataTable tableVisGen; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal VisGenRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableVisGen = ((VisGenDataTable)(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.tableVisGen.IdxPazienteColumn])); - } - set { - this[this.tableVisGen.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.tableVisGen.DataVisitaColumn])); - } - set { - this[this.tableVisGen.DataVisitaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double Peso { - get { - return ((double)(this[this.tableVisGen.PesoColumn])); - } - set { - this[this.tableVisGen.PesoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double Altezza { - get { - return ((double)(this[this.tableVisGen.AltezzaColumn])); - } - set { - this[this.tableVisGen.AltezzaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double BMI { - get { - try { - return ((double)(this[this.tableVisGen.BMIColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BMI\' in table \'VisGen\' is DBNull.", e); - } - } - set { - this[this.tableVisGen.BMIColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double CirconfVita { - get { - return ((double)(this[this.tableVisGen.CirconfVitaColumn])); - } - set { - this[this.tableVisGen.CirconfVitaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double GrassoTotPerc { - get { - return ((double)(this[this.tableVisGen.GrassoTotPercColumn])); - } - set { - this[this.tableVisGen.GrassoTotPercColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double GrassoTot { - get { - try { - return ((double)(this[this.tableVisGen.GrassoTotColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'GrassoTot\' in table \'VisGen\' is DBNull.", e); - } - } - set { - this[this.tableVisGen.GrassoTotColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double GrassoViscPerc { - get { - return ((double)(this[this.tableVisGen.GrassoViscPercColumn])); - } - set { - this[this.tableVisGen.GrassoViscPercColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double GrassoVisc { - get { - try { - return ((double)(this[this.tableVisGen.GrassoViscColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'GrassoVisc\' in table \'VisGen\' is DBNull.", e); - } - } - set { - this[this.tableVisGen.GrassoViscColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double GrassoViscTot { - get { - try { - return ((double)(this[this.tableVisGen.GrassoViscTotColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'GrassoViscTot\' in table \'VisGen\' is DBNull.", e); - } - } - set { - this[this.tableVisGen.GrassoViscTotColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double MassaMagraTotPerc { - get { - return ((double)(this[this.tableVisGen.MassaMagraTotPercColumn])); - } - set { - this[this.tableVisGen.MassaMagraTotPercColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public double MassaMagraTot { - get { - try { - return ((double)(this[this.tableVisGen.MassaMagraTotColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MassaMagraTot\' in table \'VisGen\' is DBNull.", e); - } - } - set { - this[this.tableVisGen.MassaMagraTotColumn] = 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_VisGen_AnagPazienti"]))); - } - set { - this.SetParentRow(value, this.Table.ParentRelations["FK_VisGen_AnagPazienti"]); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsBMINull() { - return this.IsNull(this.tableVisGen.BMIColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetBMINull() { - this[this.tableVisGen.BMIColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsGrassoTotNull() { - return this.IsNull(this.tableVisGen.GrassoTotColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetGrassoTotNull() { - this[this.tableVisGen.GrassoTotColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsGrassoViscNull() { - return this.IsNull(this.tableVisGen.GrassoViscColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetGrassoViscNull() { - this[this.tableVisGen.GrassoViscColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsGrassoViscTotNull() { - return this.IsNull(this.tableVisGen.GrassoViscTotColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetGrassoViscTotNull() { - this[this.tableVisGen.GrassoViscTotColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsMassaMagraTotNull() { - return this.IsNull(this.tableVisGen.MassaMagraTotColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetMassaMagraTotNull() { - this[this.tableVisGen.MassaMagraTotColumn] = global::System.Convert.DBNull; - } - } - /// ///Represents strongly named DataRow class. /// @@ -4979,40 +4230,6 @@ namespace MedPred_Data { } } - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public class VisGenRowChangeEvent : global::System.EventArgs { - - private VisGenRow 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 VisGenRowChangeEvent(VisGenRow 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 VisGenRow 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; - } - } - } - /// ///Row event argument class /// @@ -5931,665 +5148,6 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz } } - /// - ///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 VisGenTableAdapter : 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 VisGenTableAdapter() { - 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 = "VisGen"; - tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente"); - tableMapping.ColumnMappings.Add("DataVisita", "DataVisita"); - tableMapping.ColumnMappings.Add("Peso", "Peso"); - tableMapping.ColumnMappings.Add("Altezza", "Altezza"); - tableMapping.ColumnMappings.Add("BMI", "BMI"); - tableMapping.ColumnMappings.Add("CirconfVita", "CirconfVita"); - tableMapping.ColumnMappings.Add("GrassoTotPerc", "GrassoTotPerc"); - tableMapping.ColumnMappings.Add("GrassoTot", "GrassoTot"); - tableMapping.ColumnMappings.Add("GrassoViscPerc", "GrassoViscPerc"); - tableMapping.ColumnMappings.Add("GrassoVisc", "GrassoVisc"); - tableMapping.ColumnMappings.Add("GrassoViscTot", "GrassoViscTot"); - tableMapping.ColumnMappings.Add("MassaMagraTotPerc", "MassaMagraTotPerc"); - tableMapping.ColumnMappings.Add("MassaMagraTot", "MassaMagraTot"); - 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].[VisGen] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Peso] = @Original_Peso) AND ([Altezza] = @Original_Altezza) AND ([BMI] = @Original_BMI) AND ([CirconfVita] = @Original_CirconfVita) AND ([GrassoTotPerc] = @Original_GrassoTotPerc) AND ([GrassoTot] = @Original_GrassoTot) AND ([GrassoViscPerc] = @Original_GrassoViscPerc) AND ([GrassoVisc] = @Original_GrassoVisc) AND ([GrassoViscTot] = @Original_GrassoViscTot) AND ([MassaMagraTotPerc] = @Original_MassaMagraTotPerc) AND ([MassaMagraTot] = @Original_MassaMagraTot))"; - 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_Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Altezza", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Altezza", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BMI", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BMI", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CirconfVita", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CirconfVita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoTotPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoTotPerc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoViscPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoViscPerc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoVisc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoVisc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoViscTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoViscTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MassaMagraTotPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MassaMagraTotPerc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MassaMagraTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MassaMagraTot", 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].[VisGen] ([IdxPaziente], [DataVisita], [Peso], [Altezza], [CirconfVita], [GrassoTotPerc], [GrassoViscPerc], [MassaMagraTotPerc]) VALUES (@IdxPaziente, @DataVisita, @Peso, @Altezza, @CirconfVita, @GrassoTotPerc, @GrassoViscPerc, @MassaMagraTotPerc); -SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, GrassoTot, GrassoViscPerc, GrassoVisc, GrassoViscTot, MassaMagraTotPerc, MassaMagraTot FROM VisGen 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("@Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Altezza", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Altezza", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CirconfVita", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CirconfVita", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoTotPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoTotPerc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoViscPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoViscPerc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MassaMagraTotPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MassaMagraTotPerc", 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].[VisGen] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [Peso] = @Peso, [Altezza] = @Altezza, [CirconfVita] = @CirconfVita, [GrassoTotPerc] = @GrassoTotPerc, [GrassoViscPerc] = @GrassoViscPerc, [MassaMagraTotPerc] = @MassaMagraTotPerc WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Peso] = @Original_Peso) AND ([Altezza] = @Original_Altezza) AND ([BMI] = @Original_BMI) AND ([CirconfVita] = @Original_CirconfVita) AND ([GrassoTotPerc] = @Original_GrassoTotPerc) AND ([GrassoTot] = @Original_GrassoTot) AND ([GrassoViscPerc] = @Original_GrassoViscPerc) AND ([GrassoVisc] = @Original_GrassoVisc) AND ([GrassoViscTot] = @Original_GrassoViscTot) AND ([MassaMagraTotPerc] = @Original_MassaMagraTotPerc) AND ([MassaMagraTot] = @Original_MassaMagraTot)); -SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, GrassoTot, GrassoViscPerc, GrassoVisc, GrassoViscTot, MassaMagraTotPerc, MassaMagraTot FROM VisGen 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("@Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Altezza", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Altezza", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CirconfVita", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CirconfVita", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoTotPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoTotPerc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoViscPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoViscPerc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MassaMagraTotPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MassaMagraTotPerc", 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_Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Altezza", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Altezza", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BMI", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BMI", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CirconfVita", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CirconfVita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoTotPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoTotPerc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoViscPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoViscPerc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoVisc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoVisc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrassoViscTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrassoViscTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MassaMagraTotPerc", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MassaMagraTotPerc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MassaMagraTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MassaMagraTot", 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[5]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, G" + - "rassoTot, GrassoViscPerc, GrassoVisc, GrassoViscTot, MassaMagraTotPerc, MassaMag" + - "raTot FROM dbo.VisGen"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = "dbo.stp_VGen_DeteleQuery"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_VGen_getByPaziente"; - this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_VGen_InsertQuery"; - this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Altezza", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CirconfVita", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoTotPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoViscPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MassaMagraTotPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_VGen_UpdateQuery"; - this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Altezza", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CirconfVita", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoTotPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoViscPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MassaMagraTotPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [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.VisGenDataTable 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.VisGenDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DS_Applicazione.VisGenDataTable dataTable = new DS_Applicazione.VisGenDataTable(); - 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")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_Applicazione.VisGenDataTable getByPaziente(global::System.Nullable IdxPaziente) { - this.Adapter.SelectCommand = this.CommandCollection[2]; - if ((IdxPaziente.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - DS_Applicazione.VisGenDataTable dataTable = new DS_Applicazione.VisGenDataTable(); - 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.VisGenDataTable 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, "VisGen"); - } - - [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_Peso, double Original_Altezza, double Original_BMI, double Original_CirconfVita, double Original_GrassoTotPerc, double Original_GrassoTot, double Original_GrassoViscPerc, double Original_GrassoVisc, double Original_GrassoViscTot, double Original_MassaMagraTotPerc, double Original_MassaMagraTot) { - 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_Peso)); - this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_Altezza)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_BMI)); - this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_CirconfVita)); - this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_GrassoTotPerc)); - this.Adapter.DeleteCommand.Parameters[7].Value = ((double)(Original_GrassoTot)); - this.Adapter.DeleteCommand.Parameters[8].Value = ((double)(Original_GrassoViscPerc)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((double)(Original_GrassoVisc)); - this.Adapter.DeleteCommand.Parameters[10].Value = ((double)(Original_GrassoViscTot)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((double)(Original_MassaMagraTotPerc)); - this.Adapter.DeleteCommand.Parameters[12].Value = ((double)(Original_MassaMagraTot)); - 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, double Peso, double Altezza, double CirconfVita, double GrassoTotPerc, double GrassoViscPerc, double MassaMagraTotPerc) { - this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxPaziente)); - this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); - this.Adapter.InsertCommand.Parameters[2].Value = ((double)(Peso)); - this.Adapter.InsertCommand.Parameters[3].Value = ((double)(Altezza)); - this.Adapter.InsertCommand.Parameters[4].Value = ((double)(CirconfVita)); - this.Adapter.InsertCommand.Parameters[5].Value = ((double)(GrassoTotPerc)); - this.Adapter.InsertCommand.Parameters[6].Value = ((double)(GrassoViscPerc)); - this.Adapter.InsertCommand.Parameters[7].Value = ((double)(MassaMagraTotPerc)); - 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, - double Peso, - double Altezza, - double CirconfVita, - double GrassoTotPerc, - double GrassoViscPerc, - double MassaMagraTotPerc, - int Original_IdxPaziente, - System.DateTime Original_DataVisita, - double Original_Peso, - double Original_Altezza, - double Original_BMI, - double Original_CirconfVita, - double Original_GrassoTotPerc, - double Original_GrassoTot, - double Original_GrassoViscPerc, - double Original_GrassoVisc, - double Original_GrassoViscTot, - double Original_MassaMagraTotPerc, - double Original_MassaMagraTot) { - this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxPaziente)); - this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); - this.Adapter.UpdateCommand.Parameters[2].Value = ((double)(Peso)); - this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(Altezza)); - this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(CirconfVita)); - this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(GrassoTotPerc)); - this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(GrassoViscPerc)); - this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(MassaMagraTotPerc)); - this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IdxPaziente)); - this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_DataVisita)); - this.Adapter.UpdateCommand.Parameters[10].Value = ((double)(Original_Peso)); - this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(Original_Altezza)); - this.Adapter.UpdateCommand.Parameters[12].Value = ((double)(Original_BMI)); - this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(Original_CirconfVita)); - this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(Original_GrassoTotPerc)); - this.Adapter.UpdateCommand.Parameters[15].Value = ((double)(Original_GrassoTot)); - this.Adapter.UpdateCommand.Parameters[16].Value = ((double)(Original_GrassoViscPerc)); - this.Adapter.UpdateCommand.Parameters[17].Value = ((double)(Original_GrassoVisc)); - this.Adapter.UpdateCommand.Parameters[18].Value = ((double)(Original_GrassoViscTot)); - this.Adapter.UpdateCommand.Parameters[19].Value = ((double)(Original_MassaMagraTotPerc)); - this.Adapter.UpdateCommand.Parameters[20].Value = ((double)(Original_MassaMagraTot)); - 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( - double Peso, - double Altezza, - double CirconfVita, - double GrassoTotPerc, - double GrassoViscPerc, - double MassaMagraTotPerc, - int Original_IdxPaziente, - System.DateTime Original_DataVisita, - double Original_Peso, - double Original_Altezza, - double Original_BMI, - double Original_CirconfVita, - double Original_GrassoTotPerc, - double Original_GrassoTot, - double Original_GrassoViscPerc, - double Original_GrassoVisc, - double Original_GrassoViscTot, - double Original_MassaMagraTotPerc, - double Original_MassaMagraTot) { - return this.Update(Original_IdxPaziente, Original_DataVisita, Peso, Altezza, CirconfVita, GrassoTotPerc, GrassoViscPerc, MassaMagraTotPerc, Original_IdxPaziente, Original_DataVisita, Original_Peso, Original_Altezza, Original_BMI, Original_CirconfVita, Original_GrassoTotPerc, Original_GrassoTot, Original_GrassoViscPerc, Original_GrassoVisc, Original_GrassoViscTot, Original_MassaMagraTotPerc, Original_MassaMagraTot); - } - - [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, false)] - public virtual int DeteleQuery(global::System.Nullable Original_IdxPaziente, global::System.Nullable Original_DataVisita) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; - if ((Original_IdxPaziente.HasValue == true)) { - command.Parameters[1].Value = ((int)(Original_IdxPaziente.Value)); - } - else { - command.Parameters[1].Value = global::System.DBNull.Value; - } - if ((Original_DataVisita.HasValue == true)) { - command.Parameters[2].Value = ((System.DateTime)(Original_DataVisita.Value)); - } - else { - command.Parameters[2].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = command.Connection.State; - if (((command.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - command.Connection.Open(); - } - int returnValue; - try { - returnValue = command.ExecuteNonQuery(); - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - command.Connection.Close(); - } - } - 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.Insert, false)] - public virtual int InsertQuery(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable Peso, global::System.Nullable Altezza, global::System.Nullable CirconfVita, global::System.Nullable GrassoTotPerc, global::System.Nullable GrassoViscPerc, global::System.Nullable MassaMagraTotPerc) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; - if ((IdxPaziente.HasValue == true)) { - command.Parameters[1].Value = ((int)(IdxPaziente.Value)); - } - else { - command.Parameters[1].Value = global::System.DBNull.Value; - } - if ((DataVisita.HasValue == true)) { - command.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); - } - else { - command.Parameters[2].Value = global::System.DBNull.Value; - } - if ((Peso.HasValue == true)) { - command.Parameters[3].Value = ((double)(Peso.Value)); - } - else { - command.Parameters[3].Value = global::System.DBNull.Value; - } - if ((Altezza.HasValue == true)) { - command.Parameters[4].Value = ((double)(Altezza.Value)); - } - else { - command.Parameters[4].Value = global::System.DBNull.Value; - } - if ((CirconfVita.HasValue == true)) { - command.Parameters[5].Value = ((double)(CirconfVita.Value)); - } - else { - command.Parameters[5].Value = global::System.DBNull.Value; - } - if ((GrassoTotPerc.HasValue == true)) { - command.Parameters[6].Value = ((double)(GrassoTotPerc.Value)); - } - else { - command.Parameters[6].Value = global::System.DBNull.Value; - } - if ((GrassoViscPerc.HasValue == true)) { - command.Parameters[7].Value = ((double)(GrassoViscPerc.Value)); - } - else { - command.Parameters[7].Value = global::System.DBNull.Value; - } - if ((MassaMagraTotPerc.HasValue == true)) { - command.Parameters[8].Value = ((double)(MassaMagraTotPerc.Value)); - } - else { - command.Parameters[8].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = command.Connection.State; - if (((command.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - command.Connection.Open(); - } - int returnValue; - try { - returnValue = command.ExecuteNonQuery(); - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - command.Connection.Close(); - } - } - 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.Update, false)] - public virtual int UpdateQuery(global::System.Nullable DataVisita, global::System.Nullable Peso, global::System.Nullable Altezza, global::System.Nullable CirconfVita, global::System.Nullable GrassoTotPerc, global::System.Nullable GrassoViscPerc, global::System.Nullable MassaMagraTotPerc, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; - if ((DataVisita.HasValue == true)) { - command.Parameters[1].Value = ((System.DateTime)(DataVisita.Value)); - } - else { - command.Parameters[1].Value = global::System.DBNull.Value; - } - if ((Peso.HasValue == true)) { - command.Parameters[2].Value = ((double)(Peso.Value)); - } - else { - command.Parameters[2].Value = global::System.DBNull.Value; - } - if ((Altezza.HasValue == true)) { - command.Parameters[3].Value = ((double)(Altezza.Value)); - } - else { - command.Parameters[3].Value = global::System.DBNull.Value; - } - if ((CirconfVita.HasValue == true)) { - command.Parameters[4].Value = ((double)(CirconfVita.Value)); - } - else { - command.Parameters[4].Value = global::System.DBNull.Value; - } - if ((GrassoTotPerc.HasValue == true)) { - command.Parameters[5].Value = ((double)(GrassoTotPerc.Value)); - } - else { - command.Parameters[5].Value = global::System.DBNull.Value; - } - if ((GrassoViscPerc.HasValue == true)) { - command.Parameters[6].Value = ((double)(GrassoViscPerc.Value)); - } - else { - command.Parameters[6].Value = global::System.DBNull.Value; - } - if ((MassaMagraTotPerc.HasValue == true)) { - command.Parameters[7].Value = ((double)(MassaMagraTotPerc.Value)); - } - else { - command.Parameters[7].Value = global::System.DBNull.Value; - } - if ((Original_DataVisita.HasValue == true)) { - command.Parameters[8].Value = ((System.DateTime)(Original_DataVisita.Value)); - } - else { - command.Parameters[8].Value = global::System.DBNull.Value; - } - if ((Original_IdxPaziente.HasValue == true)) { - command.Parameters[9].Value = ((int)(Original_IdxPaziente.Value)); - } - else { - command.Parameters[9].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = command.Connection.State; - if (((command.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - command.Connection.Open(); - } - int returnValue; - try { - returnValue = command.ExecuteNonQuery(); - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - command.Connection.Close(); - } - } - return returnValue; - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -9132,13 +7690,72 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete [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 = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, DiabeteY" + "td, Ipercolest, IpercolestYtd, Fumo, FumoYtd, Alcool, AlcoolYtd, Sovrapp, Sovrap" + "pYtd, Sedent, AdesTerap FROM dbo.VisAnamCli"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_VAC_DeteleQuery"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_VAC_getByPaziente"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_VAC_InsertQuery"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FamMCCV", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ipertens", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IpertensYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Diabete", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiabeteYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ipercolest", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IpercolestYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fumo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FumoYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Alcool", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AlcoolYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sovrapp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SovrappYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sedent", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AdesTerap", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_VAC_UpdateQuery"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FamMCCV", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ipertens", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IpertensYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Diabete", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiabeteYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ipercolest", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IpercolestYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fumo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FumoYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Alcool", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AlcoolYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sovrapp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SovrappYtd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sedent", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AdesTerap", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -9165,6 +7782,296 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.VisAnamCliDataTable getByPaziente(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxPaziente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataVisita.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_Applicazione.VisAnamCliDataTable dataTable = new DS_Applicazione.VisAnamCliDataTable(); + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.VisAnamCliDataTable InsertQuery( + global::System.Nullable IdxPaziente, + global::System.Nullable DataVisita, + global::System.Nullable FamMCCV, + global::System.Nullable Ipertens, + global::System.Nullable IpertensYtd, + global::System.Nullable Diabete, + global::System.Nullable DiabeteYtd, + global::System.Nullable Ipercolest, + global::System.Nullable IpercolestYtd, + global::System.Nullable Fumo, + global::System.Nullable FumoYtd, + global::System.Nullable Alcool, + global::System.Nullable AlcoolYtd, + global::System.Nullable Sovrapp, + global::System.Nullable SovrappYtd, + global::System.Nullable Sedent, + global::System.Nullable AdesTerap) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((IdxPaziente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataVisita.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((FamMCCV.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(FamMCCV.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Ipertens.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((int)(Ipertens.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((IpertensYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((int)(IpertensYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Diabete.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((int)(Diabete.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((DiabeteYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[7].Value = ((int)(DiabeteYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((Ipercolest.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[8].Value = ((int)(Ipercolest.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((IpercolestYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[9].Value = ((int)(IpercolestYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Fumo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[10].Value = ((int)(Fumo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((FumoYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[11].Value = ((int)(FumoYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Alcool.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[12].Value = ((int)(Alcool.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((AlcoolYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[13].Value = ((int)(AlcoolYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Sovrapp.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[14].Value = ((int)(Sovrapp.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((SovrappYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[15].Value = ((int)(SovrappYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Sedent.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[16].Value = ((int)(Sedent.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((AdesTerap.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[17].Value = ((int)(AdesTerap.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[17].Value = global::System.DBNull.Value; + } + DS_Applicazione.VisAnamCliDataTable dataTable = new DS_Applicazione.VisAnamCliDataTable(); + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.VisAnamCliDataTable UpdateQuery( + global::System.Nullable DataVisita, + global::System.Nullable FamMCCV, + global::System.Nullable Ipertens, + global::System.Nullable IpertensYtd, + global::System.Nullable Diabete, + global::System.Nullable DiabeteYtd, + global::System.Nullable Ipercolest, + global::System.Nullable IpercolestYtd, + global::System.Nullable Fumo, + global::System.Nullable FumoYtd, + global::System.Nullable Alcool, + global::System.Nullable AlcoolYtd, + global::System.Nullable Sovrapp, + global::System.Nullable SovrappYtd, + global::System.Nullable Sedent, + global::System.Nullable AdesTerap, + global::System.Nullable Original_DataVisita, + global::System.Nullable Original_IdxPaziente) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((DataVisita.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(DataVisita.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((FamMCCV.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(FamMCCV.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Ipertens.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(Ipertens.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((IpertensYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((int)(IpertensYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Diabete.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((int)(Diabete.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((DiabeteYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((int)(DiabeteYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Ipercolest.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[7].Value = ((int)(Ipercolest.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((IpercolestYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[8].Value = ((int)(IpercolestYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Fumo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[9].Value = ((int)(Fumo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((FumoYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[10].Value = ((int)(FumoYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((Alcool.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[11].Value = ((int)(Alcool.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((AlcoolYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[12].Value = ((int)(AlcoolYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((Sovrapp.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[13].Value = ((int)(Sovrapp.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((SovrappYtd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[14].Value = ((int)(SovrappYtd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((Sedent.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[15].Value = ((int)(Sedent.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((AdesTerap.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[16].Value = ((int)(AdesTerap.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((Original_DataVisita.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[17].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((Original_IdxPaziente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[18].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[18].Value = global::System.DBNull.Value; + } + DS_Applicazione.VisAnamCliDataTable dataTable = new DS_Applicazione.VisAnamCliDataTable(); + 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")] @@ -9432,6 +8339,40 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete int Original_AdesTerap) { return this.Update(Original_IdxPaziente, Original_DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, DiabeteYtd, Ipercolest, IpercolestYtd, Fumo, FumoYtd, Alcool, AlcoolYtd, Sovrapp, SovrappYtd, Sedent, AdesTerap, Original_IdxPaziente, Original_DataVisita, Original_FamMCCV, Original_Ipertens, Original_IpertensYtd, Original_Diabete, Original_DiabeteYtd, Original_Ipercolest, Original_IpercolestYtd, Original_Fumo, Original_FumoYtd, Original_Alcool, Original_AlcoolYtd, Original_Sovrapp, Original_SovrappYtd, Original_Sedent, Original_AdesTerap); } + + [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 DeteleQuery(global::System.Nullable Original_IdxPaziente, global::System.Nullable Original_DataVisita) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[1].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Original_DataVisita.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } } /// @@ -9448,8 +8389,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete private AnagPazientiTableAdapter _anagPazientiTableAdapter; - private VisGenTableAdapter _visGenTableAdapter; - private VisCardioTableAdapter _visCardioTableAdapter; private VisLabTableAdapter _visLabTableAdapter; @@ -9487,20 +8426,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete } } - [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 VisGenTableAdapter VisGenTableAdapter { - get { - return this._visGenTableAdapter; - } - set { - this._visGenTableAdapter = value; - } - } - [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" + @@ -9580,10 +8505,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete && (this._anagPazientiTableAdapter.Connection != null))) { return this._anagPazientiTableAdapter.Connection; } - if (((this._visGenTableAdapter != null) - && (this._visGenTableAdapter.Connection != null))) { - return this._visGenTableAdapter.Connection; - } if (((this._visCardioTableAdapter != null) && (this._visCardioTableAdapter.Connection != null))) { return this._visCardioTableAdapter.Connection; @@ -9616,9 +8537,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete if ((this._anagPazientiTableAdapter != null)) { count = (count + 1); } - if ((this._visGenTableAdapter != null)) { - count = (count + 1); - } if ((this._visCardioTableAdapter != null)) { count = (count + 1); } @@ -9651,15 +8569,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete allChangedRows.AddRange(updatedRows); } } - if ((this._visGenTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.VisGen.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._visGenTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._visCardioTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.VisCardio.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -9714,14 +8623,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete allAddedRows.AddRange(addedRows); } } - if ((this._visGenTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.VisGen.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._visGenTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._visCardioTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.VisCardio.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -9796,14 +8697,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete allChangedRows.AddRange(deletedRows); } } - if ((this._visGenTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.VisGen.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._visGenTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._anagPazientiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagPazienti.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -9856,11 +8749,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._visGenTableAdapter != null) - && (this.MatchTableAdapterConnection(this._visGenTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + - "tring."); - } if (((this._visCardioTableAdapter != null) && (this.MatchTableAdapterConnection(this._visCardioTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + @@ -9922,15 +8810,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete adaptersWithAcceptChangesDuringUpdate.Add(this._anagPazientiTableAdapter.Adapter); } } - if ((this._visGenTableAdapter != null)) { - revertConnections.Add(this._visGenTableAdapter, this._visGenTableAdapter.Connection); - this._visGenTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._visGenTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._visGenTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._visGenTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._visGenTableAdapter.Adapter); - } - } if ((this._visCardioTableAdapter != null)) { revertConnections.Add(this._visCardioTableAdapter, this._visCardioTableAdapter.Connection); this._visCardioTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -10029,10 +8908,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete this._anagPazientiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagPazientiTableAdapter])); this._anagPazientiTableAdapter.Transaction = null; } - if ((this._visGenTableAdapter != null)) { - this._visGenTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visGenTableAdapter])); - this._visGenTableAdapter.Transaction = null; - } if ((this._visCardioTableAdapter != null)) { this._visCardioTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visCardioTableAdapter])); this._visCardioTableAdapter.Transaction = null; diff --git a/MedPred_Data/DS_Applicazione.xsd b/MedPred_Data/DS_Applicazione.xsd index 6c7b7f4..bd1a85b 100644 --- a/MedPred_Data/DS_Applicazione.xsd +++ b/MedPred_Data/DS_Applicazione.xsd @@ -148,160 +148,6 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz - - - - - - DELETE FROM [dbo].[VisGen] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Peso] = @Original_Peso) AND ([Altezza] = @Original_Altezza) AND ([BMI] = @Original_BMI) AND ([CirconfVita] = @Original_CirconfVita) AND ([GrassoTotPerc] = @Original_GrassoTotPerc) AND ([GrassoTot] = @Original_GrassoTot) AND ([GrassoViscPerc] = @Original_GrassoViscPerc) AND ([GrassoVisc] = @Original_GrassoVisc) AND ([GrassoViscTot] = @Original_GrassoViscTot) AND ([MassaMagraTotPerc] = @Original_MassaMagraTotPerc) AND ([MassaMagraTot] = @Original_MassaMagraTot)) - - - - - - - - - - - - - - - - - - - - INSERT INTO [dbo].[VisGen] ([IdxPaziente], [DataVisita], [Peso], [Altezza], [CirconfVita], [GrassoTotPerc], [GrassoViscPerc], [MassaMagraTotPerc]) VALUES (@IdxPaziente, @DataVisita, @Peso, @Altezza, @CirconfVita, @GrassoTotPerc, @GrassoViscPerc, @MassaMagraTotPerc); -SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, GrassoTot, GrassoViscPerc, GrassoVisc, GrassoViscTot, MassaMagraTotPerc, MassaMagraTot FROM VisGen WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) - - - - - - - - - - - - - - - SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, GrassoTot, GrassoViscPerc, GrassoVisc, GrassoViscTot, MassaMagraTotPerc, MassaMagraTot FROM dbo.VisGen - - - - - - UPDATE [dbo].[VisGen] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [Peso] = @Peso, [Altezza] = @Altezza, [CirconfVita] = @CirconfVita, [GrassoTotPerc] = @GrassoTotPerc, [GrassoViscPerc] = @GrassoViscPerc, [MassaMagraTotPerc] = @MassaMagraTotPerc WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Peso] = @Original_Peso) AND ([Altezza] = @Original_Altezza) AND ([BMI] = @Original_BMI) AND ([CirconfVita] = @Original_CirconfVita) AND ([GrassoTotPerc] = @Original_GrassoTotPerc) AND ([GrassoTot] = @Original_GrassoTot) AND ([GrassoViscPerc] = @Original_GrassoViscPerc) AND ([GrassoVisc] = @Original_GrassoVisc) AND ([GrassoViscTot] = @Original_GrassoViscTot) AND ([MassaMagraTotPerc] = @Original_MassaMagraTotPerc) AND ([MassaMagraTot] = @Original_MassaMagraTot)); -SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, GrassoTot, GrassoViscPerc, GrassoVisc, GrassoViscTot, MassaMagraTotPerc, MassaMagraTot FROM VisGen WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dbo.stp_VGen_DeteleQuery - - - - - - - - - - - - dbo.stp_VGen_getByPaziente - - - - - - - - - - - dbo.stp_VGen_InsertQuery - - - - - - - - - - - - - - - - - - dbo.stp_VGen_UpdateQuery - - - - - - - - - - - - - - - - - @@ -946,7 +792,87 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - + + + + + dbo.stp_VAC_DeteleQuery + + + + + + + + + + + + dbo.stp_VAC_getByPaziente + + + + + + + + + + + + dbo.stp_VAC_InsertQuery + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VAC_UpdateQuery + + + + + + + + + + + + + + + + + + + + + + + + + @@ -956,7 +882,7 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - + @@ -1007,29 +933,10 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - + - - - - - - - - - - - - - - - - - - - @@ -1040,7 +947,7 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - + @@ -1051,7 +958,7 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - + @@ -1070,7 +977,7 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - + @@ -1123,11 +1030,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - - - - - @@ -1155,10 +1057,9 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - - - - + + + diff --git a/MedPred_Data/DS_Applicazione.xss b/MedPred_Data/DS_Applicazione.xss index b9f345f..46dd6d1 100644 --- a/MedPred_Data/DS_Applicazione.xss +++ b/MedPred_Data/DS_Applicazione.xss @@ -4,29 +4,17 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - + + + + + + - - - - 974 - 176 - - - 1060 - 176 - - - - + 824 @@ -38,7 +26,7 @@ - + 691 @@ -54,7 +42,7 @@ - + 957 @@ -70,5 +58,17 @@ + + + + 974 + 226 + + + 1100 + 226 + + + \ No newline at end of file diff --git a/MedPred_Data/DtProxy.cs b/MedPred_Data/DtProxy.cs index 5dfdc5e..68b480c 100644 --- a/MedPred_Data/DtProxy.cs +++ b/MedPred_Data/DtProxy.cs @@ -23,7 +23,7 @@ namespace MedPred_Data protected virtual void avvioTableAdapters() { taAP = new DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter(); - taVGen = new DS_ApplicazioneTableAdapters.VisGenTableAdapter(); + taVAC = new DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter(); taVCardio = new DS_ApplicazioneTableAdapters.VisCardioTableAdapter(); taVLab = new DS_ApplicazioneTableAdapters.VisLabTableAdapter(); taVCiclo = new DS_ApplicazioneTableAdapters.VisCicloTableAdapter(); @@ -36,7 +36,7 @@ namespace MedPred_Data string connStr = memLayer.ML.confReadString("MedPredConnectionString"); // connections del db vocabolario taAP.Connection.ConnectionString = connStr; - taVGen.Connection.ConnectionString = connStr; + taVAC.Connection.ConnectionString = connStr; taVCardio.Connection.ConnectionString = connStr; taVLab.Connection.ConnectionString = connStr; taVCiclo.Connection.ConnectionString = connStr; @@ -47,7 +47,7 @@ namespace MedPred_Data #region area public public DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter taAP; - public DS_ApplicazioneTableAdapters.VisGenTableAdapter taVGen; + public DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter taVAC; public DS_ApplicazioneTableAdapters.VisCardioTableAdapter taVCardio; public DS_ApplicazioneTableAdapters.VisLabTableAdapter taVLab; public DS_ApplicazioneTableAdapters.VisCicloTableAdapter taVCiclo; diff --git a/MedPred_Data/bin/Release/MedPred_Data.dll b/MedPred_Data/bin/Release/MedPred_Data.dll index 36cf909..9821638 100644 Binary files a/MedPred_Data/bin/Release/MedPred_Data.dll and b/MedPred_Data/bin/Release/MedPred_Data.dll differ