diff --git a/MedPred/MedPred.csproj b/MedPred/MedPred.csproj index f52fccc..5bbe2fb 100644 --- a/MedPred/MedPred.csproj +++ b/MedPred/MedPred.csproj @@ -323,6 +323,7 @@ + @@ -431,6 +432,13 @@ Visite.aspx + + VLab.aspx + ASPXCodeBehind + + + VLab.aspx + mod_ElencoVisitePaziente.ascx ASPXCodeBehind diff --git a/MedPred/VCiclo.aspx b/MedPred/VCiclo.aspx index 372d003..8d2c23c 100644 --- a/MedPred/VCiclo.aspx +++ b/MedPred/VCiclo.aspx @@ -2,5 +2,5 @@ - Cicloergometro +

Cicloergometro

diff --git a/MedPred/VEco.aspx b/MedPred/VEco.aspx index ffb2aa1..57152ec 100644 --- a/MedPred/VEco.aspx +++ b/MedPred/VEco.aspx @@ -2,5 +2,44 @@ -EcoCardio +

Visita Ecocardiovascolare / Doppler

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
diff --git a/MedPred/VEco.aspx.designer.cs b/MedPred/VEco.aspx.designer.cs index 8d3538a..0e9c213 100644 --- a/MedPred/VEco.aspx.designer.cs +++ b/MedPred/VEco.aspx.designer.cs @@ -3,15 +3,31 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ -namespace MedPred -{ - - - public partial class VEco - { +namespace MedPred { + + + public partial class VEco { + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; } } diff --git a/MedPred/VLab.aspx b/MedPred/VLab.aspx new file mode 100644 index 0000000..99fff3e --- /dev/null +++ b/MedPred/VLab.aspx @@ -0,0 +1,80 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="VLab.aspx.cs" Inherits="MedPred.VLab" %> + + + +

Esami di laboratorio

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/MedPred/VLab.aspx.cs b/MedPred/VLab.aspx.cs new file mode 100644 index 0000000..acf15f8 --- /dev/null +++ b/MedPred/VLab.aspx.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; +using MedPred_Data; +using System.Data; + +namespace MedPred +{ + public partial class VLab : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + protected void grView_RowDataBound(object sender, GridViewRowEventArgs e) + { + string cmd = Request.QueryString["cmd"]; + if (cmd == "sel") + { + try + { + + if (((DS_Applicazione.VisGenRow)((DataRowView)e.Row.DataItem).Row).DataVisita == Convert.ToDateTime(memLayer.ML.StringSessionObj("DataVisita"))) + { + memLayer.ML.setSessionVal("IdxRowVGen", e.Row.DataItemIndex); + Response.Redirect("VLab"); + } + } + catch + { } + } + } + } +} \ No newline at end of file diff --git a/MedPred/VLab.aspx.designer.cs b/MedPred/VLab.aspx.designer.cs new file mode 100644 index 0000000..6004ed5 --- /dev/null +++ b/MedPred/VLab.aspx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MedPred { + + + public partial class VLab { + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx.cs b/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx.cs index 9e49f3e..7f6817c 100644 --- a/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx.cs +++ b/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx.cs @@ -64,6 +64,30 @@ namespace MedPred.WebUserControls case "NewVCiclo": Response.Redirect("VCiclo?cmd=new"); break; + case "SelVEco": + Response.Redirect("VEco?cmd=sel"); + break; + case "NewVEco": + Response.Redirect("VEco?cmd=new"); + break; + case "SelVBMec": + Response.Redirect("VBMec?cmd=sel"); + break; + case "NewVBMec": + Response.Redirect("VBMec?cmd=new"); + break; + case "SelVLab": + Response.Redirect("VLab?cmd=sel"); + break; + case "NewVLab": + Response.Redirect("VLab?cmd=new"); + break; + case "SelVPsi": + Response.Redirect("VPsi?cmd=sel"); + break; + case "NewVPsi": + Response.Redirect("VPsi?cmd=new"); + break; default: break; } diff --git a/MedPred_Data/DS_Applicazione.Designer.cs b/MedPred_Data/DS_Applicazione.Designer.cs index 16df16a..9519909 100644 --- a/MedPred_Data/DS_Applicazione.Designer.cs +++ b/MedPred_Data/DS_Applicazione.Designer.cs @@ -30,8 +30,20 @@ namespace MedPred_Data { private ElencoVisiteDataTable tableElencoVisite; + private VisCardioDataTable tableVisCardio; + + private VisLabDataTable tableVisLab; + + private VisCicloDataTable tableVisCiclo; + private global::System.Data.DataRelation relationFK_VisGen_AnagPazienti; + private global::System.Data.DataRelation relationFK_VisCardio_AnagPazienti; + + private global::System.Data.DataRelation relationFK_VisClinGen_AnagPazienti; + + private global::System.Data.DataRelation relationFK_VisCiclo_AnagPazienti; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -69,6 +81,15 @@ namespace MedPred_Data { if ((ds.Tables["ElencoVisite"] != null)) { base.Tables.Add(new ElencoVisiteDataTable(ds.Tables["ElencoVisite"])); } + if ((ds.Tables["VisCardio"] != null)) { + base.Tables.Add(new VisCardioDataTable(ds.Tables["VisCardio"])); + } + if ((ds.Tables["VisLab"] != null)) { + base.Tables.Add(new VisLabDataTable(ds.Tables["VisLab"])); + } + if ((ds.Tables["VisCiclo"] != null)) { + base.Tables.Add(new VisCicloDataTable(ds.Tables["VisCiclo"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -117,6 +138,36 @@ 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 VisCardioDataTable VisCardio { + get { + return this.tableVisCardio; + } + } + + [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 VisLabDataTable VisLab { + get { + return this.tableVisLab; + } + } + + [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 VisCicloDataTable VisCiclo { + get { + return this.tableVisCiclo; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -193,6 +244,15 @@ namespace MedPred_Data { if ((ds.Tables["ElencoVisite"] != null)) { base.Tables.Add(new ElencoVisiteDataTable(ds.Tables["ElencoVisite"])); } + if ((ds.Tables["VisCardio"] != null)) { + base.Tables.Add(new VisCardioDataTable(ds.Tables["VisCardio"])); + } + if ((ds.Tables["VisLab"] != null)) { + base.Tables.Add(new VisLabDataTable(ds.Tables["VisLab"])); + } + if ((ds.Tables["VisCiclo"] != null)) { + base.Tables.Add(new VisCicloDataTable(ds.Tables["VisCiclo"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -244,7 +304,28 @@ namespace MedPred_Data { this.tableElencoVisite.InitVars(); } } + this.tableVisCardio = ((VisCardioDataTable)(base.Tables["VisCardio"])); + if ((initTable == true)) { + if ((this.tableVisCardio != null)) { + this.tableVisCardio.InitVars(); + } + } + this.tableVisLab = ((VisLabDataTable)(base.Tables["VisLab"])); + if ((initTable == true)) { + if ((this.tableVisLab != null)) { + this.tableVisLab.InitVars(); + } + } + this.tableVisCiclo = ((VisCicloDataTable)(base.Tables["VisCiclo"])); + if ((initTable == true)) { + if ((this.tableVisCiclo != null)) { + this.tableVisCiclo.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"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -261,10 +342,28 @@ namespace MedPred_Data { base.Tables.Add(this.tableVisGen); this.tableElencoVisite = new ElencoVisiteDataTable(); base.Tables.Add(this.tableElencoVisite); + this.tableVisCardio = new VisCardioDataTable(); + base.Tables.Add(this.tableVisCardio); + this.tableVisLab = new VisLabDataTable(); + base.Tables.Add(this.tableVisLab); + this.tableVisCiclo = new VisCicloDataTable(); + base.Tables.Add(this.tableVisCiclo); 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); + this.Relations.Add(this.relationFK_VisCardio_AnagPazienti); + this.relationFK_VisClinGen_AnagPazienti = new global::System.Data.DataRelation("FK_VisClinGen_AnagPazienti", new global::System.Data.DataColumn[] { + this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { + this.tableVisLab.IdxPazienteColumn}, false); + this.Relations.Add(this.relationFK_VisClinGen_AnagPazienti); + this.relationFK_VisCiclo_AnagPazienti = new global::System.Data.DataRelation("FK_VisCiclo_AnagPazienti", new global::System.Data.DataColumn[] { + this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { + this.tableVisCiclo.IdxPazienteColumn}, false); + this.Relations.Add(this.relationFK_VisCiclo_AnagPazienti); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -285,6 +384,24 @@ namespace MedPred_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeVisCardio() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeVisLab() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeVisCiclo() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -349,6 +466,15 @@ namespace MedPred_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void ElencoVisiteRowChangeEventHandler(object sender, ElencoVisiteRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void VisCardioRowChangeEventHandler(object sender, VisCardioRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void VisLabRowChangeEventHandler(object sender, VisLabRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void VisCicloRowChangeEventHandler(object sender, VisCicloRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -1464,6 +1590,1305 @@ namespace MedPred_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class VisCardioDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxPaziente; + + private global::System.Data.DataColumn columnDataVisita; + + private global::System.Data.DataColumn columnFrazEiez; + + private global::System.Data.DataColumn columnTDI; + + private global::System.Data.DataColumn columnPlaccheVas; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCardioDataTable() { + this.TableName = "VisCardio"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisCardioDataTable(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 VisCardioDataTable(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 FrazEiezColumn { + get { + return this.columnFrazEiez; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TDIColumn { + get { + return this.columnTDI; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PlaccheVasColumn { + get { + return this.columnPlaccheVas; + } + } + + [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 VisCardioRow this[int index] { + get { + return ((VisCardioRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCardioRowChangeEventHandler VisCardioRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCardioRowChangeEventHandler VisCardioRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCardioRowChangeEventHandler VisCardioRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCardioRowChangeEventHandler VisCardioRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddVisCardioRow(VisCardioRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCardioRow AddVisCardioRow(AnagPazientiRow parentAnagPazientiRowByFK_VisCardio_AnagPazienti, System.DateTime DataVisita, double FrazEiez, double TDI, double PlaccheVas) { + VisCardioRow rowVisCardioRow = ((VisCardioRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + DataVisita, + FrazEiez, + TDI, + PlaccheVas}; + if ((parentAnagPazientiRowByFK_VisCardio_AnagPazienti != null)) { + columnValuesArray[0] = parentAnagPazientiRowByFK_VisCardio_AnagPazienti[0]; + } + rowVisCardioRow.ItemArray = columnValuesArray; + this.Rows.Add(rowVisCardioRow); + return rowVisCardioRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCardioRow FindByIdxPazienteDataVisita(int IdxPaziente, System.DateTime DataVisita) { + return ((VisCardioRow)(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() { + VisCardioDataTable cln = ((VisCardioDataTable)(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 VisCardioDataTable(); + } + + [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.columnFrazEiez = base.Columns["FrazEiez"]; + this.columnTDI = base.Columns["TDI"]; + this.columnPlaccheVas = base.Columns["PlaccheVas"]; + } + + [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.columnFrazEiez = new global::System.Data.DataColumn("FrazEiez", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFrazEiez); + this.columnTDI = new global::System.Data.DataColumn("TDI", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTDI); + this.columnPlaccheVas = new global::System.Data.DataColumn("PlaccheVas", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPlaccheVas); + 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.columnFrazEiez.AllowDBNull = false; + this.columnTDI.AllowDBNull = false; + this.columnPlaccheVas.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCardioRow NewVisCardioRow() { + return ((VisCardioRow)(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 VisCardioRow(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(VisCardioRow); + } + + [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.VisCardioRowChanged != null)) { + this.VisCardioRowChanged(this, new VisCardioRowChangeEvent(((VisCardioRow)(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.VisCardioRowChanging != null)) { + this.VisCardioRowChanging(this, new VisCardioRowChangeEvent(((VisCardioRow)(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.VisCardioRowDeleted != null)) { + this.VisCardioRowDeleted(this, new VisCardioRowChangeEvent(((VisCardioRow)(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.VisCardioRowDeleting != null)) { + this.VisCardioRowDeleting(this, new VisCardioRowChangeEvent(((VisCardioRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveVisCardioRow(VisCardioRow 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 = "VisCardioDataTable"; + 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. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class VisLabDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxPaziente; + + private global::System.Data.DataColumn columnDataVisita; + + private global::System.Data.DataColumn columnGlicemia; + + private global::System.Data.DataColumn columnColesTot; + + private global::System.Data.DataColumn columnLDL; + + private global::System.Data.DataColumn columnHDL; + + private global::System.Data.DataColumn columnTrigliceridi; + + private global::System.Data.DataColumn columnColRapLDLHDL; + + private global::System.Data.DataColumn columnCreatinina; + + private global::System.Data.DataColumn columnOmocisteina; + + private global::System.Data.DataColumn columnMHTFR; + + private global::System.Data.DataColumn columnFattII; + + private global::System.Data.DataColumn columnFattV; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisLabDataTable() { + this.TableName = "VisLab"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisLabDataTable(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 VisLabDataTable(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 GlicemiaColumn { + get { + return this.columnGlicemia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ColesTotColumn { + get { + return this.columnColesTot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn LDLColumn { + get { + return this.columnLDL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn HDLColumn { + get { + return this.columnHDL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TrigliceridiColumn { + get { + return this.columnTrigliceridi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ColRapLDLHDLColumn { + get { + return this.columnColRapLDLHDL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CreatininaColumn { + get { + return this.columnCreatinina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn OmocisteinaColumn { + get { + return this.columnOmocisteina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MHTFRColumn { + get { + return this.columnMHTFR; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FattIIColumn { + get { + return this.columnFattII; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FattVColumn { + get { + return this.columnFattV; + } + } + + [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 VisLabRow this[int index] { + get { + return ((VisLabRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisLabRowChangeEventHandler VisLabRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisLabRowChangeEventHandler VisLabRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisLabRowChangeEventHandler VisLabRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisLabRowChangeEventHandler VisLabRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddVisLabRow(VisLabRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisLabRow AddVisLabRow(AnagPazientiRow parentAnagPazientiRowByFK_VisClinGen_AnagPazienti, System.DateTime DataVisita, double Glicemia, double ColesTot, double LDL, double HDL, double Trigliceridi, double ColRapLDLHDL, double Creatinina, double Omocisteina, double MHTFR, double FattII, double FattV) { + VisLabRow rowVisLabRow = ((VisLabRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + DataVisita, + Glicemia, + ColesTot, + LDL, + HDL, + Trigliceridi, + ColRapLDLHDL, + Creatinina, + Omocisteina, + MHTFR, + FattII, + FattV}; + if ((parentAnagPazientiRowByFK_VisClinGen_AnagPazienti != null)) { + columnValuesArray[0] = parentAnagPazientiRowByFK_VisClinGen_AnagPazienti[0]; + } + rowVisLabRow.ItemArray = columnValuesArray; + this.Rows.Add(rowVisLabRow); + return rowVisLabRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisLabRow FindByIdxPazienteDataVisita(int IdxPaziente, System.DateTime DataVisita) { + return ((VisLabRow)(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() { + VisLabDataTable cln = ((VisLabDataTable)(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 VisLabDataTable(); + } + + [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.columnGlicemia = base.Columns["Glicemia"]; + this.columnColesTot = base.Columns["ColesTot"]; + this.columnLDL = base.Columns["LDL"]; + this.columnHDL = base.Columns["HDL"]; + this.columnTrigliceridi = base.Columns["Trigliceridi"]; + this.columnColRapLDLHDL = base.Columns["ColRapLDLHDL"]; + this.columnCreatinina = base.Columns["Creatinina"]; + this.columnOmocisteina = base.Columns["Omocisteina"]; + this.columnMHTFR = base.Columns["MHTFR"]; + this.columnFattII = base.Columns["FattII"]; + this.columnFattV = base.Columns["FattV"]; + } + + [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.columnGlicemia = new global::System.Data.DataColumn("Glicemia", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnGlicemia); + this.columnColesTot = new global::System.Data.DataColumn("ColesTot", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnColesTot); + this.columnLDL = new global::System.Data.DataColumn("LDL", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnLDL); + this.columnHDL = new global::System.Data.DataColumn("HDL", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnHDL); + this.columnTrigliceridi = new global::System.Data.DataColumn("Trigliceridi", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTrigliceridi); + this.columnColRapLDLHDL = new global::System.Data.DataColumn("ColRapLDLHDL", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnColRapLDLHDL); + this.columnCreatinina = new global::System.Data.DataColumn("Creatinina", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCreatinina); + this.columnOmocisteina = new global::System.Data.DataColumn("Omocisteina", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOmocisteina); + this.columnMHTFR = new global::System.Data.DataColumn("MHTFR", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMHTFR); + this.columnFattII = new global::System.Data.DataColumn("FattII", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFattII); + this.columnFattV = new global::System.Data.DataColumn("FattV", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFattV); + 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.columnGlicemia.AllowDBNull = false; + this.columnColesTot.AllowDBNull = false; + this.columnLDL.AllowDBNull = false; + this.columnHDL.AllowDBNull = false; + this.columnTrigliceridi.AllowDBNull = false; + this.columnColRapLDLHDL.ReadOnly = true; + this.columnCreatinina.AllowDBNull = false; + this.columnOmocisteina.AllowDBNull = false; + this.columnMHTFR.AllowDBNull = false; + this.columnFattII.AllowDBNull = false; + this.columnFattV.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisLabRow NewVisLabRow() { + return ((VisLabRow)(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 VisLabRow(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(VisLabRow); + } + + [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.VisLabRowChanged != null)) { + this.VisLabRowChanged(this, new VisLabRowChangeEvent(((VisLabRow)(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.VisLabRowChanging != null)) { + this.VisLabRowChanging(this, new VisLabRowChangeEvent(((VisLabRow)(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.VisLabRowDeleted != null)) { + this.VisLabRowDeleted(this, new VisLabRowChangeEvent(((VisLabRow)(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.VisLabRowDeleting != null)) { + this.VisLabRowDeleting(this, new VisLabRowChangeEvent(((VisLabRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveVisLabRow(VisLabRow 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 = "VisLabDataTable"; + 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. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class VisCicloDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxPaziente; + + private global::System.Data.DataColumn columnDataVisita; + + private global::System.Data.DataColumn columnPaSis; + + private global::System.Data.DataColumn columnPaDia; + + private global::System.Data.DataColumn columnQR1; + + private global::System.Data.DataColumn columnQR1_Mas; + + private global::System.Data.DataColumn columnVO2; + + private global::System.Data.DataColumn columnVO2_a; + + private global::System.Data.DataColumn columnFC_QR1; + + private global::System.Data.DataColumn columnPolsoO2; + + private global::System.Data.DataColumn columnPaSisMax; + + private global::System.Data.DataColumn columnPaDiaMax; + + private global::System.Data.DataColumn columnVO2_rip; + + private global::System.Data.DataColumn columnKCal_gg; + + private global::System.Data.DataColumn columnKCal_cam; + + private global::System.Data.DataColumn columnKCal_peso; + + private global::System.Data.DataColumn columnKCal_MM; + + private global::System.Data.DataColumn columnRischioCuore; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCicloDataTable() { + this.TableName = "VisCiclo"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisCicloDataTable(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 VisCicloDataTable(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 PaSisColumn { + get { + return this.columnPaSis; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PaDiaColumn { + get { + return this.columnPaDia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn QR1Column { + get { + return this.columnQR1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn QR1_MasColumn { + get { + return this.columnQR1_Mas; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn VO2Column { + get { + return this.columnVO2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn VO2_aColumn { + get { + return this.columnVO2_a; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FC_QR1Column { + get { + return this.columnFC_QR1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PolsoO2Column { + get { + return this.columnPolsoO2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PaSisMaxColumn { + get { + return this.columnPaSisMax; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PaDiaMaxColumn { + get { + return this.columnPaDiaMax; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn VO2_ripColumn { + get { + return this.columnVO2_rip; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KCal_ggColumn { + get { + return this.columnKCal_gg; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KCal_camColumn { + get { + return this.columnKCal_cam; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KCal_pesoColumn { + get { + return this.columnKCal_peso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KCal_MMColumn { + get { + return this.columnKCal_MM; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RischioCuoreColumn { + get { + return this.columnRischioCuore; + } + } + + [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 VisCicloRow this[int index] { + get { + return ((VisCicloRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCicloRowChangeEventHandler VisCicloRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCicloRowChangeEventHandler VisCicloRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCicloRowChangeEventHandler VisCicloRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCicloRowChangeEventHandler VisCicloRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddVisCicloRow(VisCicloRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCicloRow AddVisCicloRow( + AnagPazientiRow parentAnagPazientiRowByFK_VisCiclo_AnagPazienti, + System.DateTime DataVisita, + int PaSis, + int PaDia, + double QR1, + double QR1_Mas, + double VO2, + double VO2_a, + int FC_QR1, + double PolsoO2, + int PaSisMax, + int PaDiaMax, + double VO2_rip, + double KCal_gg, + double KCal_cam, + double KCal_peso, + double KCal_MM, + double RischioCuore) { + VisCicloRow rowVisCicloRow = ((VisCicloRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + DataVisita, + PaSis, + PaDia, + QR1, + QR1_Mas, + VO2, + VO2_a, + FC_QR1, + PolsoO2, + PaSisMax, + PaDiaMax, + VO2_rip, + KCal_gg, + KCal_cam, + KCal_peso, + KCal_MM, + RischioCuore}; + if ((parentAnagPazientiRowByFK_VisCiclo_AnagPazienti != null)) { + columnValuesArray[0] = parentAnagPazientiRowByFK_VisCiclo_AnagPazienti[0]; + } + rowVisCicloRow.ItemArray = columnValuesArray; + this.Rows.Add(rowVisCicloRow); + return rowVisCicloRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCicloRow FindByIdxPazienteDataVisita(int IdxPaziente, System.DateTime DataVisita) { + return ((VisCicloRow)(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() { + VisCicloDataTable cln = ((VisCicloDataTable)(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 VisCicloDataTable(); + } + + [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.columnPaSis = base.Columns["PaSis"]; + this.columnPaDia = base.Columns["PaDia"]; + this.columnQR1 = base.Columns["QR1"]; + this.columnQR1_Mas = base.Columns["QR1_Mas"]; + this.columnVO2 = base.Columns["VO2"]; + this.columnVO2_a = base.Columns["VO2_a"]; + this.columnFC_QR1 = base.Columns["FC_QR1"]; + this.columnPolsoO2 = base.Columns["PolsoO2"]; + this.columnPaSisMax = base.Columns["PaSisMax"]; + this.columnPaDiaMax = base.Columns["PaDiaMax"]; + this.columnVO2_rip = base.Columns["VO2_rip"]; + this.columnKCal_gg = base.Columns["KCal_gg"]; + this.columnKCal_cam = base.Columns["KCal_cam"]; + this.columnKCal_peso = base.Columns["KCal_peso"]; + this.columnKCal_MM = base.Columns["KCal_MM"]; + this.columnRischioCuore = base.Columns["RischioCuore"]; + } + + [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.columnPaSis = new global::System.Data.DataColumn("PaSis", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPaSis); + this.columnPaDia = new global::System.Data.DataColumn("PaDia", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPaDia); + this.columnQR1 = new global::System.Data.DataColumn("QR1", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQR1); + this.columnQR1_Mas = new global::System.Data.DataColumn("QR1_Mas", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQR1_Mas); + this.columnVO2 = new global::System.Data.DataColumn("VO2", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVO2); + this.columnVO2_a = new global::System.Data.DataColumn("VO2_a", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVO2_a); + this.columnFC_QR1 = new global::System.Data.DataColumn("FC_QR1", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFC_QR1); + this.columnPolsoO2 = new global::System.Data.DataColumn("PolsoO2", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPolsoO2); + this.columnPaSisMax = new global::System.Data.DataColumn("PaSisMax", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPaSisMax); + this.columnPaDiaMax = new global::System.Data.DataColumn("PaDiaMax", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPaDiaMax); + this.columnVO2_rip = new global::System.Data.DataColumn("VO2_rip", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVO2_rip); + this.columnKCal_gg = new global::System.Data.DataColumn("KCal_gg", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKCal_gg); + this.columnKCal_cam = new global::System.Data.DataColumn("KCal_cam", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKCal_cam); + this.columnKCal_peso = new global::System.Data.DataColumn("KCal_peso", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKCal_peso); + this.columnKCal_MM = new global::System.Data.DataColumn("KCal_MM", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKCal_MM); + this.columnRischioCuore = new global::System.Data.DataColumn("RischioCuore", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRischioCuore); + 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.columnPaSis.AllowDBNull = false; + this.columnPaDia.AllowDBNull = false; + this.columnQR1.AllowDBNull = false; + this.columnQR1_Mas.ReadOnly = true; + this.columnVO2.AllowDBNull = false; + this.columnVO2_a.AllowDBNull = false; + this.columnFC_QR1.AllowDBNull = false; + this.columnPolsoO2.AllowDBNull = false; + this.columnPaSisMax.AllowDBNull = false; + this.columnPaDiaMax.AllowDBNull = false; + this.columnVO2_rip.AllowDBNull = false; + this.columnKCal_gg.AllowDBNull = false; + this.columnKCal_cam.AllowDBNull = false; + this.columnKCal_peso.ReadOnly = true; + this.columnKCal_MM.ReadOnly = true; + this.columnRischioCuore.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCicloRow NewVisCicloRow() { + return ((VisCicloRow)(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 VisCicloRow(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(VisCicloRow); + } + + [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.VisCicloRowChanged != null)) { + this.VisCicloRowChanged(this, new VisCicloRowChangeEvent(((VisCicloRow)(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.VisCicloRowChanging != null)) { + this.VisCicloRowChanging(this, new VisCicloRowChangeEvent(((VisCicloRow)(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.VisCicloRowDeleted != null)) { + this.VisCicloRowDeleted(this, new VisCicloRowChangeEvent(((VisCicloRow)(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.VisCicloRowDeleting != null)) { + this.VisCicloRowDeleting(this, new VisCicloRowChangeEvent(((VisCicloRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveVisCicloRow(VisCicloRow 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 = "VisCicloDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -1543,6 +2968,39 @@ namespace MedPred_Data { 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() { + if ((this.Table.ChildRelations["FK_VisCardio_AnagPazienti"] == null)) { + return new VisCardioRow[0]; + } + else { + return ((VisCardioRow[])(base.GetChildRows(this.Table.ChildRelations["FK_VisCardio_AnagPazienti"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisLabRow[] GetVisLabRows() { + if ((this.Table.ChildRelations["FK_VisClinGen_AnagPazienti"] == null)) { + return new VisLabRow[0]; + } + else { + return ((VisLabRow[])(base.GetChildRows(this.Table.ChildRelations["FK_VisClinGen_AnagPazienti"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCicloRow[] GetVisCicloRows() { + if ((this.Table.ChildRelations["FK_VisCiclo_AnagPazienti"] == null)) { + return new VisCicloRow[0]; + } + else { + return ((VisCicloRow[])(base.GetChildRows(this.Table.ChildRelations["FK_VisCiclo_AnagPazienti"]))); + } + } } /// @@ -1993,6 +3451,548 @@ namespace MedPred_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class VisCardioRow : global::System.Data.DataRow { + + private VisCardioDataTable tableVisCardio; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisCardioRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableVisCardio = ((VisCardioDataTable)(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.tableVisCardio.IdxPazienteColumn])); + } + set { + this[this.tableVisCardio.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.tableVisCardio.DataVisitaColumn])); + } + set { + this[this.tableVisCardio.DataVisitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double FrazEiez { + get { + return ((double)(this[this.tableVisCardio.FrazEiezColumn])); + } + set { + this[this.tableVisCardio.FrazEiezColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double TDI { + get { + return ((double)(this[this.tableVisCardio.TDIColumn])); + } + set { + this[this.tableVisCardio.TDIColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double PlaccheVas { + get { + return ((double)(this[this.tableVisCardio.PlaccheVasColumn])); + } + set { + this[this.tableVisCardio.PlaccheVasColumn] = 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_VisCardio_AnagPazienti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_VisCardio_AnagPazienti"]); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class VisLabRow : global::System.Data.DataRow { + + private VisLabDataTable tableVisLab; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisLabRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableVisLab = ((VisLabDataTable)(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.tableVisLab.IdxPazienteColumn])); + } + set { + this[this.tableVisLab.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.tableVisLab.DataVisitaColumn])); + } + set { + this[this.tableVisLab.DataVisitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Glicemia { + get { + return ((double)(this[this.tableVisLab.GlicemiaColumn])); + } + set { + this[this.tableVisLab.GlicemiaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double ColesTot { + get { + return ((double)(this[this.tableVisLab.ColesTotColumn])); + } + set { + this[this.tableVisLab.ColesTotColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double LDL { + get { + return ((double)(this[this.tableVisLab.LDLColumn])); + } + set { + this[this.tableVisLab.LDLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double HDL { + get { + return ((double)(this[this.tableVisLab.HDLColumn])); + } + set { + this[this.tableVisLab.HDLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Trigliceridi { + get { + return ((double)(this[this.tableVisLab.TrigliceridiColumn])); + } + set { + this[this.tableVisLab.TrigliceridiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double ColRapLDLHDL { + get { + try { + return ((double)(this[this.tableVisLab.ColRapLDLHDLColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ColRapLDLHDL\' in table \'VisLab\' is DBNull.", e); + } + } + set { + this[this.tableVisLab.ColRapLDLHDLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Creatinina { + get { + return ((double)(this[this.tableVisLab.CreatininaColumn])); + } + set { + this[this.tableVisLab.CreatininaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Omocisteina { + get { + return ((double)(this[this.tableVisLab.OmocisteinaColumn])); + } + set { + this[this.tableVisLab.OmocisteinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double MHTFR { + get { + return ((double)(this[this.tableVisLab.MHTFRColumn])); + } + set { + this[this.tableVisLab.MHTFRColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double FattII { + get { + return ((double)(this[this.tableVisLab.FattIIColumn])); + } + set { + this[this.tableVisLab.FattIIColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double FattV { + get { + return ((double)(this[this.tableVisLab.FattVColumn])); + } + set { + this[this.tableVisLab.FattVColumn] = 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_VisClinGen_AnagPazienti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_VisClinGen_AnagPazienti"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsColRapLDLHDLNull() { + return this.IsNull(this.tableVisLab.ColRapLDLHDLColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetColRapLDLHDLNull() { + this[this.tableVisLab.ColRapLDLHDLColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class VisCicloRow : global::System.Data.DataRow { + + private VisCicloDataTable tableVisCiclo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisCicloRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableVisCiclo = ((VisCicloDataTable)(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.tableVisCiclo.IdxPazienteColumn])); + } + set { + this[this.tableVisCiclo.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.tableVisCiclo.DataVisitaColumn])); + } + set { + this[this.tableVisCiclo.DataVisitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PaSis { + get { + return ((int)(this[this.tableVisCiclo.PaSisColumn])); + } + set { + this[this.tableVisCiclo.PaSisColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PaDia { + get { + return ((int)(this[this.tableVisCiclo.PaDiaColumn])); + } + set { + this[this.tableVisCiclo.PaDiaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double QR1 { + get { + return ((double)(this[this.tableVisCiclo.QR1Column])); + } + set { + this[this.tableVisCiclo.QR1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double QR1_Mas { + get { + try { + return ((double)(this[this.tableVisCiclo.QR1_MasColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'QR1_Mas\' in table \'VisCiclo\' is DBNull.", e); + } + } + set { + this[this.tableVisCiclo.QR1_MasColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double VO2 { + get { + return ((double)(this[this.tableVisCiclo.VO2Column])); + } + set { + this[this.tableVisCiclo.VO2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double VO2_a { + get { + return ((double)(this[this.tableVisCiclo.VO2_aColumn])); + } + set { + this[this.tableVisCiclo.VO2_aColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int FC_QR1 { + get { + return ((int)(this[this.tableVisCiclo.FC_QR1Column])); + } + set { + this[this.tableVisCiclo.FC_QR1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double PolsoO2 { + get { + return ((double)(this[this.tableVisCiclo.PolsoO2Column])); + } + set { + this[this.tableVisCiclo.PolsoO2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PaSisMax { + get { + return ((int)(this[this.tableVisCiclo.PaSisMaxColumn])); + } + set { + this[this.tableVisCiclo.PaSisMaxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PaDiaMax { + get { + return ((int)(this[this.tableVisCiclo.PaDiaMaxColumn])); + } + set { + this[this.tableVisCiclo.PaDiaMaxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double VO2_rip { + get { + return ((double)(this[this.tableVisCiclo.VO2_ripColumn])); + } + set { + this[this.tableVisCiclo.VO2_ripColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double KCal_gg { + get { + return ((double)(this[this.tableVisCiclo.KCal_ggColumn])); + } + set { + this[this.tableVisCiclo.KCal_ggColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double KCal_cam { + get { + return ((double)(this[this.tableVisCiclo.KCal_camColumn])); + } + set { + this[this.tableVisCiclo.KCal_camColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double KCal_peso { + get { + try { + return ((double)(this[this.tableVisCiclo.KCal_pesoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'KCal_peso\' in table \'VisCiclo\' is DBNull.", e); + } + } + set { + this[this.tableVisCiclo.KCal_pesoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double KCal_MM { + get { + try { + return ((double)(this[this.tableVisCiclo.KCal_MMColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'KCal_MM\' in table \'VisCiclo\' is DBNull.", e); + } + } + set { + this[this.tableVisCiclo.KCal_MMColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double RischioCuore { + get { + return ((double)(this[this.tableVisCiclo.RischioCuoreColumn])); + } + set { + this[this.tableVisCiclo.RischioCuoreColumn] = 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_VisCiclo_AnagPazienti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_VisCiclo_AnagPazienti"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsQR1_MasNull() { + return this.IsNull(this.tableVisCiclo.QR1_MasColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetQR1_MasNull() { + this[this.tableVisCiclo.QR1_MasColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsKCal_pesoNull() { + return this.IsNull(this.tableVisCiclo.KCal_pesoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetKCal_pesoNull() { + this[this.tableVisCiclo.KCal_pesoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsKCal_MMNull() { + return this.IsNull(this.tableVisCiclo.KCal_MMColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetKCal_MMNull() { + this[this.tableVisCiclo.KCal_MMColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -2094,6 +4094,108 @@ namespace MedPred_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class VisCardioRowChangeEvent : global::System.EventArgs { + + private VisCardioRow 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 VisCardioRowChangeEvent(VisCardioRow 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 VisCardioRow 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 + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class VisLabRowChangeEvent : global::System.EventArgs { + + private VisLabRow 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 VisLabRowChangeEvent(VisLabRow 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 VisLabRow 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 + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class VisCicloRowChangeEvent : global::System.EventArgs { + + private VisCicloRow 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 VisCicloRowChangeEvent(VisCicloRow 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 VisCicloRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace MedPred_Data.DS_ApplicazioneTableAdapters { @@ -3508,6 +5610,1406 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, } } + /// + ///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 VisCardioTableAdapter : 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 VisCardioTableAdapter() { + 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 = "VisCardio"; + tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente"); + tableMapping.ColumnMappings.Add("DataVisita", "DataVisita"); + tableMapping.ColumnMappings.Add("FrazEiez", "FrazEiez"); + tableMapping.ColumnMappings.Add("TDI", "TDI"); + tableMapping.ColumnMappings.Add("PlaccheVas", "PlaccheVas"); + 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].[VisCardio] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND " + + "([DataVisita] = @Original_DataVisita) AND ([FrazEiez] = @Original_FrazEiez) AND " + + "([TDI] = @Original_TDI) AND ([PlaccheVas] = @Original_PlaccheVas))"; + 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_FrazEiez", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FrazEiez", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TDI", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TDI", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PlaccheVas", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PlaccheVas", 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].[VisCardio] ([IdxPaziente], [DataVisita], [FrazEiez], [TDI], [PlaccheVas]) VALUES (@IdxPaziente, @DataVisita, @FrazEiez, @TDI, @PlaccheVas); +SELECT IdxPaziente, DataVisita, FrazEiez, TDI, PlaccheVas FROM VisCardio 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("@FrazEiez", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FrazEiez", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TDI", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TDI", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaccheVas", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PlaccheVas", 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].[VisCardio] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [FrazEiez] = @FrazEiez, [TDI] = @TDI, [PlaccheVas] = @PlaccheVas WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([FrazEiez] = @Original_FrazEiez) AND ([TDI] = @Original_TDI) AND ([PlaccheVas] = @Original_PlaccheVas)); +SELECT IdxPaziente, DataVisita, FrazEiez, TDI, PlaccheVas FROM VisCardio 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("@FrazEiez", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FrazEiez", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TDI", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TDI", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaccheVas", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PlaccheVas", 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_FrazEiez", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FrazEiez", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TDI", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TDI", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PlaccheVas", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PlaccheVas", 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[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxPaziente, DataVisita, FrazEiez, TDI, PlaccheVas FROM dbo.VisCardio"; + 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_VCardio_getByPaziente"; + 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("@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.VisCardioDataTable 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.VisCardioDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.VisCardioDataTable dataTable = new DS_Applicazione.VisCardioDataTable(); + 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.VisCardioDataTable getByPaziente(global::System.Nullable IdxPaziente) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + 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.VisCardioDataTable dataTable = new DS_Applicazione.VisCardioDataTable(); + 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.VisCardioDataTable 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, "VisCardio"); + } + + [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_FrazEiez, double Original_TDI, double Original_PlaccheVas) { + 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_FrazEiez)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_TDI)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_PlaccheVas)); + 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 FrazEiez, double TDI, double PlaccheVas) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxPaziente)); + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); + this.Adapter.InsertCommand.Parameters[2].Value = ((double)(FrazEiez)); + this.Adapter.InsertCommand.Parameters[3].Value = ((double)(TDI)); + this.Adapter.InsertCommand.Parameters[4].Value = ((double)(PlaccheVas)); + 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 FrazEiez, double TDI, double PlaccheVas, int Original_IdxPaziente, System.DateTime Original_DataVisita, double Original_FrazEiez, double Original_TDI, double Original_PlaccheVas) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((double)(FrazEiez)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(TDI)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(PlaccheVas)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_DataVisita)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(Original_FrazEiez)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(Original_TDI)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((double)(Original_PlaccheVas)); + 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 FrazEiez, double TDI, double PlaccheVas, int Original_IdxPaziente, System.DateTime Original_DataVisita, double Original_FrazEiez, double Original_TDI, double Original_PlaccheVas) { + return this.Update(Original_IdxPaziente, Original_DataVisita, FrazEiez, TDI, PlaccheVas, Original_IdxPaziente, Original_DataVisita, Original_FrazEiez, Original_TDI, Original_PlaccheVas); + } + } + + /// + ///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 VisLabTableAdapter : 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 VisLabTableAdapter() { + 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 = "VisLab"; + tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente"); + tableMapping.ColumnMappings.Add("DataVisita", "DataVisita"); + tableMapping.ColumnMappings.Add("Glicemia", "Glicemia"); + tableMapping.ColumnMappings.Add("ColesTot", "ColesTot"); + tableMapping.ColumnMappings.Add("LDL", "LDL"); + tableMapping.ColumnMappings.Add("HDL", "HDL"); + tableMapping.ColumnMappings.Add("Trigliceridi", "Trigliceridi"); + tableMapping.ColumnMappings.Add("ColRapLDLHDL", "ColRapLDLHDL"); + tableMapping.ColumnMappings.Add("Creatinina", "Creatinina"); + tableMapping.ColumnMappings.Add("Omocisteina", "Omocisteina"); + tableMapping.ColumnMappings.Add("MHTFR", "MHTFR"); + tableMapping.ColumnMappings.Add("FattII", "FattII"); + tableMapping.ColumnMappings.Add("FattV", "FattV"); + 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].[VisLab] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Glicemia] = @Original_Glicemia) AND ([ColesTot] = @Original_ColesTot) AND ([LDL] = @Original_LDL) AND ([HDL] = @Original_HDL) AND ([Trigliceridi] = @Original_Trigliceridi) AND ([ColRapLDLHDL] = @Original_ColRapLDLHDL) AND ([Creatinina] = @Original_Creatinina) AND ([Omocisteina] = @Original_Omocisteina) AND ([MHTFR] = @Original_MHTFR) AND ([FattII] = @Original_FattII) AND ([FattV] = @Original_FattV))"; + 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_Glicemia", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Glicemia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ColesTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColesTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LDL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_HDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HDL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Trigliceridi", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Trigliceridi", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ColRapLDLHDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColRapLDLHDL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Creatinina", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Creatinina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Omocisteina", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Omocisteina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MHTFR", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MHTFR", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FattII", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FattII", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FattV", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FattV", 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].[VisLab] ([IdxPaziente], [DataVisita], [Glicemia], [ColesTot], [LDL], [HDL], [Trigliceridi], [Creatinina], [Omocisteina], [MHTFR], [FattII], [FattV]) VALUES (@IdxPaziente, @DataVisita, @Glicemia, @ColesTot, @LDL, @HDL, @Trigliceridi, @Creatinina, @Omocisteina, @MHTFR, @FattII, @FattV); +SELECT IdxPaziente, DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, ColRapLDLHDL, Creatinina, Omocisteina, MHTFR, FattII, FattV FROM VisLab 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("@Glicemia", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Glicemia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ColesTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColesTot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LDL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HDL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Trigliceridi", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Trigliceridi", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Creatinina", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Creatinina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Omocisteina", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Omocisteina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MHTFR", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MHTFR", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FattII", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FattII", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FattV", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FattV", 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].[VisLab] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [Glicemia] = @Glicemia, [ColesTot] = @ColesTot, [LDL] = @LDL, [HDL] = @HDL, [Trigliceridi] = @Trigliceridi, [Creatinina] = @Creatinina, [Omocisteina] = @Omocisteina, [MHTFR] = @MHTFR, [FattII] = @FattII, [FattV] = @FattV WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Glicemia] = @Original_Glicemia) AND ([ColesTot] = @Original_ColesTot) AND ([LDL] = @Original_LDL) AND ([HDL] = @Original_HDL) AND ([Trigliceridi] = @Original_Trigliceridi) AND ([ColRapLDLHDL] = @Original_ColRapLDLHDL) AND ([Creatinina] = @Original_Creatinina) AND ([Omocisteina] = @Original_Omocisteina) AND ([MHTFR] = @Original_MHTFR) AND ([FattII] = @Original_FattII) AND ([FattV] = @Original_FattV)); +SELECT IdxPaziente, DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, ColRapLDLHDL, Creatinina, Omocisteina, MHTFR, FattII, FattV FROM VisLab 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("@Glicemia", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Glicemia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ColesTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColesTot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LDL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HDL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Trigliceridi", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Trigliceridi", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Creatinina", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Creatinina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Omocisteina", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Omocisteina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MHTFR", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MHTFR", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FattII", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FattII", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FattV", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FattV", 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_Glicemia", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Glicemia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ColesTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColesTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LDL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_HDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HDL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Trigliceridi", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Trigliceridi", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ColRapLDLHDL", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ColRapLDLHDL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Creatinina", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Creatinina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Omocisteina", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Omocisteina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MHTFR", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MHTFR", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FattII", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FattII", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FattV", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FattV", 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[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxPaziente, DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, ColRa" + + "pLDLHDL, Creatinina, Omocisteina, MHTFR, FattII, FattV FROM dbo.VisLab"; + 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_VLab_getByPaziente"; + 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("@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.VisLabDataTable 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.VisLabDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.VisLabDataTable dataTable = new DS_Applicazione.VisLabDataTable(); + 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.VisLabDataTable getByPaziente(global::System.Nullable IdxPaziente) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + 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.VisLabDataTable dataTable = new DS_Applicazione.VisLabDataTable(); + 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.VisLabDataTable 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, "VisLab"); + } + + [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_Glicemia, double Original_ColesTot, double Original_LDL, double Original_HDL, double Original_Trigliceridi, double Original_ColRapLDLHDL, double Original_Creatinina, double Original_Omocisteina, double Original_MHTFR, double Original_FattII, double Original_FattV) { + 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_Glicemia)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_ColesTot)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_LDL)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_HDL)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_Trigliceridi)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((double)(Original_ColRapLDLHDL)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((double)(Original_Creatinina)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((double)(Original_Omocisteina)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((double)(Original_MHTFR)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((double)(Original_FattII)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((double)(Original_FattV)); + 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 Glicemia, double ColesTot, double LDL, double HDL, double Trigliceridi, double Creatinina, double Omocisteina, double MHTFR, double FattII, double FattV) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxPaziente)); + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); + this.Adapter.InsertCommand.Parameters[2].Value = ((double)(Glicemia)); + this.Adapter.InsertCommand.Parameters[3].Value = ((double)(ColesTot)); + this.Adapter.InsertCommand.Parameters[4].Value = ((double)(LDL)); + this.Adapter.InsertCommand.Parameters[5].Value = ((double)(HDL)); + this.Adapter.InsertCommand.Parameters[6].Value = ((double)(Trigliceridi)); + this.Adapter.InsertCommand.Parameters[7].Value = ((double)(Creatinina)); + this.Adapter.InsertCommand.Parameters[8].Value = ((double)(Omocisteina)); + this.Adapter.InsertCommand.Parameters[9].Value = ((double)(MHTFR)); + this.Adapter.InsertCommand.Parameters[10].Value = ((double)(FattII)); + this.Adapter.InsertCommand.Parameters[11].Value = ((double)(FattV)); + 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 Glicemia, + double ColesTot, + double LDL, + double HDL, + double Trigliceridi, + double Creatinina, + double Omocisteina, + double MHTFR, + double FattII, + double FattV, + int Original_IdxPaziente, + System.DateTime Original_DataVisita, + double Original_Glicemia, + double Original_ColesTot, + double Original_LDL, + double Original_HDL, + double Original_Trigliceridi, + double Original_ColRapLDLHDL, + double Original_Creatinina, + double Original_Omocisteina, + double Original_MHTFR, + double Original_FattII, + double Original_FattV) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((double)(Glicemia)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(ColesTot)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(LDL)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(HDL)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Trigliceridi)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(Creatinina)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(Omocisteina)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((double)(MHTFR)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((double)(FattII)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(FattV)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_DataVisita)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(Original_Glicemia)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((double)(Original_ColesTot)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((double)(Original_LDL)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((double)(Original_HDL)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((double)(Original_Trigliceridi)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((double)(Original_ColRapLDLHDL)); + this.Adapter.UpdateCommand.Parameters[20].Value = ((double)(Original_Creatinina)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_Omocisteina)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((double)(Original_MHTFR)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((double)(Original_FattII)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((double)(Original_FattV)); + 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 Glicemia, + double ColesTot, + double LDL, + double HDL, + double Trigliceridi, + double Creatinina, + double Omocisteina, + double MHTFR, + double FattII, + double FattV, + int Original_IdxPaziente, + System.DateTime Original_DataVisita, + double Original_Glicemia, + double Original_ColesTot, + double Original_LDL, + double Original_HDL, + double Original_Trigliceridi, + double Original_ColRapLDLHDL, + double Original_Creatinina, + double Original_Omocisteina, + double Original_MHTFR, + double Original_FattII, + double Original_FattV) { + return this.Update(Original_IdxPaziente, Original_DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, Creatinina, Omocisteina, MHTFR, FattII, FattV, Original_IdxPaziente, Original_DataVisita, Original_Glicemia, Original_ColesTot, Original_LDL, Original_HDL, Original_Trigliceridi, Original_ColRapLDLHDL, Original_Creatinina, Original_Omocisteina, Original_MHTFR, Original_FattII, Original_FattV); + } + } + + /// + ///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 VisCicloTableAdapter : 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 VisCicloTableAdapter() { + 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 = "VisCiclo"; + tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente"); + tableMapping.ColumnMappings.Add("DataVisita", "DataVisita"); + tableMapping.ColumnMappings.Add("PaSis", "PaSis"); + tableMapping.ColumnMappings.Add("PaDia", "PaDia"); + tableMapping.ColumnMappings.Add("QR1", "QR1"); + tableMapping.ColumnMappings.Add("QR1_Mas", "QR1_Mas"); + tableMapping.ColumnMappings.Add("VO2", "VO2"); + tableMapping.ColumnMappings.Add("VO2_a", "VO2_a"); + tableMapping.ColumnMappings.Add("FC_QR1", "FC_QR1"); + tableMapping.ColumnMappings.Add("PolsoO2", "PolsoO2"); + tableMapping.ColumnMappings.Add("PaSisMax", "PaSisMax"); + tableMapping.ColumnMappings.Add("PaDiaMax", "PaDiaMax"); + tableMapping.ColumnMappings.Add("VO2_rip", "VO2_rip"); + tableMapping.ColumnMappings.Add("KCal_gg", "KCal_gg"); + tableMapping.ColumnMappings.Add("KCal_cam", "KCal_cam"); + tableMapping.ColumnMappings.Add("KCal_peso", "KCal_peso"); + tableMapping.ColumnMappings.Add("KCal_MM", "KCal_MM"); + tableMapping.ColumnMappings.Add("RischioCuore", "RischioCuore"); + 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].[VisCiclo] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([PaSis] = @Original_PaSis) AND ([PaDia] = @Original_PaDia) AND ([QR1] = @Original_QR1) AND ((@IsNull_QR1_Mas = 1 AND [QR1_Mas] IS NULL) OR ([QR1_Mas] = @Original_QR1_Mas)) AND ([VO2] = @Original_VO2) AND ([VO2_a] = @Original_VO2_a) AND ([FC_QR1] = @Original_FC_QR1) AND ([PolsoO2] = @Original_PolsoO2) AND ([PaSisMax] = @Original_PaSisMax) AND ([PaDiaMax] = @Original_PaDiaMax) AND ([VO2_rip] = @Original_VO2_rip) AND ([KCal_gg] = @Original_KCal_gg) AND ([KCal_cam] = @Original_KCal_cam) AND ((@IsNull_KCal_peso = 1 AND [KCal_peso] IS NULL) OR ([KCal_peso] = @Original_KCal_peso)) AND ((@IsNull_KCal_MM = 1 AND [KCal_MM] IS NULL) OR ([KCal_MM] = @Original_KCal_MM)) AND ([RischioCuore] = @Original_RischioCuore))"; + 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_PaSis", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaSis", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaDia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaDia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QR1", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QR1_Mas", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1_Mas", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QR1_Mas", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1_Mas", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VO2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VO2_a", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_a", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FC_QR1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FC_QR1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PolsoO2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PolsoO2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaSisMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaSisMax", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaDiaMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaDiaMax", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VO2_rip", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_rip", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KCal_gg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_gg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KCal_cam", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_cam", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KCal_peso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_peso", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KCal_peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_peso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KCal_MM", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_MM", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KCal_MM", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_MM", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RischioCuore", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RischioCuore", 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].[VisCiclo] ([IdxPaziente], [DataVisita], [PaSis], [PaDia], [QR1], [VO2], [VO2_a], [FC_QR1], [PolsoO2], [PaSisMax], [PaDiaMax], [VO2_rip], [KCal_gg], [KCal_cam], [RischioCuore]) VALUES (@IdxPaziente, @DataVisita, @PaSis, @PaDia, @QR1, @VO2, @VO2_a, @FC_QR1, @PolsoO2, @PaSisMax, @PaDiaMax, @VO2_rip, @KCal_gg, @KCal_cam, @RischioCuore); +SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, VO2_rip, KCal_gg, KCal_cam, KCal_peso, KCal_MM, RischioCuore FROM VisCiclo 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("@PaSis", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaSis", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaDia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QR1", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_a", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_a", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC_QR1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FC_QR1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PolsoO2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PolsoO2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSisMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaSisMax", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDiaMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaDiaMax", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_rip", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_rip", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KCal_gg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_gg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KCal_cam", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_cam", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RischioCuore", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RischioCuore", 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].[VisCiclo] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [PaSis] = @PaSis, [PaDia] = @PaDia, [QR1] = @QR1, [VO2] = @VO2, [VO2_a] = @VO2_a, [FC_QR1] = @FC_QR1, [PolsoO2] = @PolsoO2, [PaSisMax] = @PaSisMax, [PaDiaMax] = @PaDiaMax, [VO2_rip] = @VO2_rip, [KCal_gg] = @KCal_gg, [KCal_cam] = @KCal_cam, [RischioCuore] = @RischioCuore WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([PaSis] = @Original_PaSis) AND ([PaDia] = @Original_PaDia) AND ([QR1] = @Original_QR1) AND ((@IsNull_QR1_Mas = 1 AND [QR1_Mas] IS NULL) OR ([QR1_Mas] = @Original_QR1_Mas)) AND ([VO2] = @Original_VO2) AND ([VO2_a] = @Original_VO2_a) AND ([FC_QR1] = @Original_FC_QR1) AND ([PolsoO2] = @Original_PolsoO2) AND ([PaSisMax] = @Original_PaSisMax) AND ([PaDiaMax] = @Original_PaDiaMax) AND ([VO2_rip] = @Original_VO2_rip) AND ([KCal_gg] = @Original_KCal_gg) AND ([KCal_cam] = @Original_KCal_cam) AND ((@IsNull_KCal_peso = 1 AND [KCal_peso] IS NULL) OR ([KCal_peso] = @Original_KCal_peso)) AND ((@IsNull_KCal_MM = 1 AND [KCal_MM] IS NULL) OR ([KCal_MM] = @Original_KCal_MM)) AND ([RischioCuore] = @Original_RischioCuore)); +SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, VO2_rip, KCal_gg, KCal_cam, KCal_peso, KCal_MM, RischioCuore FROM VisCiclo 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("@PaSis", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaSis", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaDia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QR1", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_a", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_a", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC_QR1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FC_QR1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PolsoO2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PolsoO2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSisMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaSisMax", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDiaMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaDiaMax", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_rip", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_rip", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KCal_gg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_gg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KCal_cam", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_cam", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RischioCuore", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RischioCuore", 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_PaSis", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaSis", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaDia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaDia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QR1", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QR1_Mas", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1_Mas", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QR1_Mas", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1_Mas", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VO2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VO2_a", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_a", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FC_QR1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FC_QR1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PolsoO2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PolsoO2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaSisMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaSisMax", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaDiaMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaDiaMax", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VO2_rip", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_rip", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KCal_gg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_gg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KCal_cam", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_cam", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KCal_peso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_peso", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KCal_peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_peso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KCal_MM", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_MM", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KCal_MM", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KCal_MM", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RischioCuore", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RischioCuore", 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[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, P" + + "olsoO2, PaSisMax, PaDiaMax, VO2_rip, KCal_gg, KCal_cam, KCal_peso, KCal_MM, Risc" + + "hioCuore FROM dbo.VisCiclo"; + 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_VCiclo_getByPaziente"; + 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("@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.VisCicloDataTable 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.VisCicloDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.VisCicloDataTable dataTable = new DS_Applicazione.VisCicloDataTable(); + 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.VisCicloDataTable getByPaziente(global::System.Nullable IdxPaziente) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + 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.VisCicloDataTable dataTable = new DS_Applicazione.VisCicloDataTable(); + 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.VisCicloDataTable 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, "VisCiclo"); + } + + [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, + int Original_PaSis, + int Original_PaDia, + double Original_QR1, + global::System.Nullable Original_QR1_Mas, + double Original_VO2, + double Original_VO2_a, + int Original_FC_QR1, + double Original_PolsoO2, + int Original_PaSisMax, + int Original_PaDiaMax, + double Original_VO2_rip, + double Original_KCal_gg, + double Original_KCal_cam, + global::System.Nullable Original_KCal_peso, + global::System.Nullable Original_KCal_MM, + double Original_RischioCuore) { + 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 = ((int)(Original_PaSis)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_PaDia)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_QR1)); + if ((Original_QR1_Mas.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_QR1_Mas.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + this.Adapter.DeleteCommand.Parameters[7].Value = ((double)(Original_VO2)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((double)(Original_VO2_a)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_FC_QR1)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((double)(Original_PolsoO2)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((int)(Original_PaSisMax)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_PaDiaMax)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((double)(Original_VO2_rip)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((double)(Original_KCal_gg)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((double)(Original_KCal_cam)); + if ((Original_KCal_peso.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[17].Value = ((double)(Original_KCal_peso.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((Original_KCal_MM.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[19].Value = ((double)(Original_KCal_MM.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value; + } + this.Adapter.DeleteCommand.Parameters[20].Value = ((double)(Original_RischioCuore)); + 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, int PaSis, int PaDia, double QR1, double VO2, double VO2_a, int FC_QR1, double PolsoO2, int PaSisMax, int PaDiaMax, double VO2_rip, double KCal_gg, double KCal_cam, double RischioCuore) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxPaziente)); + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(PaSis)); + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(PaDia)); + this.Adapter.InsertCommand.Parameters[4].Value = ((double)(QR1)); + this.Adapter.InsertCommand.Parameters[5].Value = ((double)(VO2)); + this.Adapter.InsertCommand.Parameters[6].Value = ((double)(VO2_a)); + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(FC_QR1)); + this.Adapter.InsertCommand.Parameters[8].Value = ((double)(PolsoO2)); + this.Adapter.InsertCommand.Parameters[9].Value = ((int)(PaSisMax)); + this.Adapter.InsertCommand.Parameters[10].Value = ((int)(PaDiaMax)); + this.Adapter.InsertCommand.Parameters[11].Value = ((double)(VO2_rip)); + this.Adapter.InsertCommand.Parameters[12].Value = ((double)(KCal_gg)); + this.Adapter.InsertCommand.Parameters[13].Value = ((double)(KCal_cam)); + this.Adapter.InsertCommand.Parameters[14].Value = ((double)(RischioCuore)); + 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, + int PaSis, + int PaDia, + double QR1, + double VO2, + double VO2_a, + int FC_QR1, + double PolsoO2, + int PaSisMax, + int PaDiaMax, + double VO2_rip, + double KCal_gg, + double KCal_cam, + double RischioCuore, + int Original_IdxPaziente, + System.DateTime Original_DataVisita, + int Original_PaSis, + int Original_PaDia, + double Original_QR1, + global::System.Nullable Original_QR1_Mas, + double Original_VO2, + double Original_VO2_a, + int Original_FC_QR1, + double Original_PolsoO2, + int Original_PaSisMax, + int Original_PaDiaMax, + double Original_VO2_rip, + double Original_KCal_gg, + double Original_KCal_cam, + global::System.Nullable Original_KCal_peso, + global::System.Nullable Original_KCal_MM, + double Original_RischioCuore) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataVisita)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(PaSis)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(PaDia)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(QR1)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(VO2)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(VO2_a)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(FC_QR1)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(PolsoO2)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(PaSisMax)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(PaDiaMax)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(VO2_rip)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((double)(KCal_gg)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(KCal_cam)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(RischioCuore)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_DataVisita)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_PaSis)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_PaDia)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((double)(Original_QR1)); + if ((Original_QR1_Mas.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_QR1_Mas.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[22].Value = ((double)(Original_VO2)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((double)(Original_VO2_a)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Original_FC_QR1)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((double)(Original_PolsoO2)); + this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_PaSisMax)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_PaDiaMax)); + this.Adapter.UpdateCommand.Parameters[28].Value = ((double)(Original_VO2_rip)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((double)(Original_KCal_gg)); + this.Adapter.UpdateCommand.Parameters[30].Value = ((double)(Original_KCal_cam)); + if ((Original_KCal_peso.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[32].Value = ((double)(Original_KCal_peso.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; + } + if ((Original_KCal_MM.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[34].Value = ((double)(Original_KCal_MM.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[35].Value = ((double)(Original_RischioCuore)); + 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( + int PaSis, + int PaDia, + double QR1, + double VO2, + double VO2_a, + int FC_QR1, + double PolsoO2, + int PaSisMax, + int PaDiaMax, + double VO2_rip, + double KCal_gg, + double KCal_cam, + double RischioCuore, + int Original_IdxPaziente, + System.DateTime Original_DataVisita, + int Original_PaSis, + int Original_PaDia, + double Original_QR1, + global::System.Nullable Original_QR1_Mas, + double Original_VO2, + double Original_VO2_a, + int Original_FC_QR1, + double Original_PolsoO2, + int Original_PaSisMax, + int Original_PaDiaMax, + double Original_VO2_rip, + double Original_KCal_gg, + double Original_KCal_cam, + global::System.Nullable Original_KCal_peso, + global::System.Nullable Original_KCal_MM, + double Original_RischioCuore) { + return this.Update(Original_IdxPaziente, Original_DataVisita, PaSis, PaDia, QR1, VO2, VO2_a, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, VO2_rip, KCal_gg, KCal_cam, RischioCuore, Original_IdxPaziente, Original_DataVisita, Original_PaSis, Original_PaDia, Original_QR1, Original_QR1_Mas, Original_VO2, Original_VO2_a, Original_FC_QR1, Original_PolsoO2, Original_PaSisMax, Original_PaDiaMax, Original_VO2_rip, Original_KCal_gg, Original_KCal_cam, Original_KCal_peso, Original_KCal_MM, Original_RischioCuore); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -3524,6 +7026,12 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, private VisGenTableAdapter _visGenTableAdapter; + private VisCardioTableAdapter _visCardioTableAdapter; + + private VisLabTableAdapter _visLabTableAdapter; + + private VisCicloTableAdapter _visCicloTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -3567,6 +7075,48 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, } } + [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 VisCardioTableAdapter VisCardioTableAdapter { + get { + return this._visCardioTableAdapter; + } + set { + this._visCardioTableAdapter = 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" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public VisLabTableAdapter VisLabTableAdapter { + get { + return this._visLabTableAdapter; + } + set { + this._visLabTableAdapter = 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" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public VisCicloTableAdapter VisCicloTableAdapter { + get { + return this._visCicloTableAdapter; + } + set { + this._visCicloTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -3594,6 +7144,18 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, && (this._visGenTableAdapter.Connection != null))) { return this._visGenTableAdapter.Connection; } + if (((this._visCardioTableAdapter != null) + && (this._visCardioTableAdapter.Connection != null))) { + return this._visCardioTableAdapter.Connection; + } + if (((this._visLabTableAdapter != null) + && (this._visLabTableAdapter.Connection != null))) { + return this._visLabTableAdapter.Connection; + } + if (((this._visCicloTableAdapter != null) + && (this._visCicloTableAdapter.Connection != null))) { + return this._visCicloTableAdapter.Connection; + } return null; } set { @@ -3613,6 +7175,15 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, if ((this._visGenTableAdapter != null)) { count = (count + 1); } + if ((this._visCardioTableAdapter != null)) { + count = (count + 1); + } + if ((this._visLabTableAdapter != null)) { + count = (count + 1); + } + if ((this._visCicloTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -3642,6 +7213,33 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, 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); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._visCardioTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._visLabTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.VisLab.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._visLabTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._visCicloTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.VisCiclo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._visCicloTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -3668,6 +7266,30 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, 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) + && (0 < addedRows.Length))) { + result = (result + this._visCardioTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._visLabTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.VisLab.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._visLabTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._visCicloTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.VisCiclo.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._visCicloTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -3678,6 +7300,30 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; + if ((this._visCicloTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.VisCiclo.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._visCicloTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._visLabTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.VisLab.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._visLabTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._visCardioTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.VisCardio.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._visCardioTableAdapter.Update(deletedRows)); + 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) @@ -3743,6 +7389,21 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, 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" + + "tring."); + } + if (((this._visLabTableAdapter != null) + && (this.MatchTableAdapterConnection(this._visLabTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._visCicloTableAdapter != null) + && (this.MatchTableAdapterConnection(this._visCicloTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -3793,6 +7454,33 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, 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)); + this._visCardioTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._visCardioTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._visCardioTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._visCardioTableAdapter.Adapter); + } + } + if ((this._visLabTableAdapter != null)) { + revertConnections.Add(this._visLabTableAdapter, this._visLabTableAdapter.Connection); + this._visLabTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._visLabTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._visLabTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._visLabTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._visLabTableAdapter.Adapter); + } + } + if ((this._visCicloTableAdapter != null)) { + revertConnections.Add(this._visCicloTableAdapter, this._visCicloTableAdapter.Connection); + this._visCicloTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._visCicloTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._visCicloTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._visCicloTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._visCicloTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -3859,6 +7547,18 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, 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; + } + if ((this._visLabTableAdapter != null)) { + this._visLabTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visLabTableAdapter])); + this._visLabTableAdapter.Transaction = null; + } + if ((this._visCicloTableAdapter != null)) { + this._visCicloTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visCicloTableAdapter])); + this._visCicloTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/MedPred_Data/DS_Applicazione.xsd b/MedPred_Data/DS_Applicazione.xsd index d4bcb4b..cf7c888 100644 --- a/MedPred_Data/DS_Applicazione.xsd +++ b/MedPred_Data/DS_Applicazione.xsd @@ -213,7 +213,7 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, - + dbo.stp_VGen_DeteleQuery @@ -236,7 +236,7 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, - + dbo.stp_VGen_InsertQuery @@ -254,7 +254,7 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, - + dbo.stp_VGen_UpdateQuery @@ -300,6 +300,334 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, + + + + + + DELETE FROM [dbo].[VisCardio] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([FrazEiez] = @Original_FrazEiez) AND ([TDI] = @Original_TDI) AND ([PlaccheVas] = @Original_PlaccheVas)) + + + + + + + + + + + + INSERT INTO [dbo].[VisCardio] ([IdxPaziente], [DataVisita], [FrazEiez], [TDI], [PlaccheVas]) VALUES (@IdxPaziente, @DataVisita, @FrazEiez, @TDI, @PlaccheVas); +SELECT IdxPaziente, DataVisita, FrazEiez, TDI, PlaccheVas FROM VisCardio WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + SELECT IdxPaziente, DataVisita, FrazEiez, TDI, PlaccheVas FROM dbo.VisCardio + + + + + + UPDATE [dbo].[VisCardio] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [FrazEiez] = @FrazEiez, [TDI] = @TDI, [PlaccheVas] = @PlaccheVas WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([FrazEiez] = @Original_FrazEiez) AND ([TDI] = @Original_TDI) AND ([PlaccheVas] = @Original_PlaccheVas)); +SELECT IdxPaziente, DataVisita, FrazEiez, TDI, PlaccheVas FROM VisCardio WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VCardio_getByPaziente + + + + + + + + + + + + + + + DELETE FROM [dbo].[VisLab] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Glicemia] = @Original_Glicemia) AND ([ColesTot] = @Original_ColesTot) AND ([LDL] = @Original_LDL) AND ([HDL] = @Original_HDL) AND ([Trigliceridi] = @Original_Trigliceridi) AND ([ColRapLDLHDL] = @Original_ColRapLDLHDL) AND ([Creatinina] = @Original_Creatinina) AND ([Omocisteina] = @Original_Omocisteina) AND ([MHTFR] = @Original_MHTFR) AND ([FattII] = @Original_FattII) AND ([FattV] = @Original_FattV)) + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[VisLab] ([IdxPaziente], [DataVisita], [Glicemia], [ColesTot], [LDL], [HDL], [Trigliceridi], [Creatinina], [Omocisteina], [MHTFR], [FattII], [FattV]) VALUES (@IdxPaziente, @DataVisita, @Glicemia, @ColesTot, @LDL, @HDL, @Trigliceridi, @Creatinina, @Omocisteina, @MHTFR, @FattII, @FattV); +SELECT IdxPaziente, DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, ColRapLDLHDL, Creatinina, Omocisteina, MHTFR, FattII, FattV FROM VisLab WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + + + + + + + + SELECT IdxPaziente, DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, ColRapLDLHDL, Creatinina, Omocisteina, MHTFR, FattII, FattV FROM dbo.VisLab + + + + + + UPDATE [dbo].[VisLab] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [Glicemia] = @Glicemia, [ColesTot] = @ColesTot, [LDL] = @LDL, [HDL] = @HDL, [Trigliceridi] = @Trigliceridi, [Creatinina] = @Creatinina, [Omocisteina] = @Omocisteina, [MHTFR] = @MHTFR, [FattII] = @FattII, [FattV] = @FattV WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([Glicemia] = @Original_Glicemia) AND ([ColesTot] = @Original_ColesTot) AND ([LDL] = @Original_LDL) AND ([HDL] = @Original_HDL) AND ([Trigliceridi] = @Original_Trigliceridi) AND ([ColRapLDLHDL] = @Original_ColRapLDLHDL) AND ([Creatinina] = @Original_Creatinina) AND ([Omocisteina] = @Original_Omocisteina) AND ([MHTFR] = @Original_MHTFR) AND ([FattII] = @Original_FattII) AND ([FattV] = @Original_FattV)); +SELECT IdxPaziente, DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, ColRapLDLHDL, Creatinina, Omocisteina, MHTFR, FattII, FattV FROM VisLab WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VLab_getByPaziente + + + + + + + + + + + + + + + DELETE FROM [dbo].[VisCiclo] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([PaSis] = @Original_PaSis) AND ([PaDia] = @Original_PaDia) AND ([QR1] = @Original_QR1) AND ((@IsNull_QR1_Mas = 1 AND [QR1_Mas] IS NULL) OR ([QR1_Mas] = @Original_QR1_Mas)) AND ([VO2] = @Original_VO2) AND ([VO2_a] = @Original_VO2_a) AND ([FC_QR1] = @Original_FC_QR1) AND ([PolsoO2] = @Original_PolsoO2) AND ([PaSisMax] = @Original_PaSisMax) AND ([PaDiaMax] = @Original_PaDiaMax) AND ([VO2_rip] = @Original_VO2_rip) AND ([KCal_gg] = @Original_KCal_gg) AND ([KCal_cam] = @Original_KCal_cam) AND ((@IsNull_KCal_peso = 1 AND [KCal_peso] IS NULL) OR ([KCal_peso] = @Original_KCal_peso)) AND ((@IsNull_KCal_MM = 1 AND [KCal_MM] IS NULL) OR ([KCal_MM] = @Original_KCal_MM)) AND ([RischioCuore] = @Original_RischioCuore)) + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[VisCiclo] ([IdxPaziente], [DataVisita], [PaSis], [PaDia], [QR1], [VO2], [VO2_a], [FC_QR1], [PolsoO2], [PaSisMax], [PaDiaMax], [VO2_rip], [KCal_gg], [KCal_cam], [RischioCuore]) VALUES (@IdxPaziente, @DataVisita, @PaSis, @PaDia, @QR1, @VO2, @VO2_a, @FC_QR1, @PolsoO2, @PaSisMax, @PaDiaMax, @VO2_rip, @KCal_gg, @KCal_cam, @RischioCuore); +SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, VO2_rip, KCal_gg, KCal_cam, KCal_peso, KCal_MM, RischioCuore FROM VisCiclo WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + + + + + + + + + + + SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, VO2_rip, KCal_gg, KCal_cam, KCal_peso, KCal_MM, RischioCuore FROM dbo.VisCiclo + + + + + + UPDATE [dbo].[VisCiclo] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [PaSis] = @PaSis, [PaDia] = @PaDia, [QR1] = @QR1, [VO2] = @VO2, [VO2_a] = @VO2_a, [FC_QR1] = @FC_QR1, [PolsoO2] = @PolsoO2, [PaSisMax] = @PaSisMax, [PaDiaMax] = @PaDiaMax, [VO2_rip] = @VO2_rip, [KCal_gg] = @KCal_gg, [KCal_cam] = @KCal_cam, [RischioCuore] = @RischioCuore WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([PaSis] = @Original_PaSis) AND ([PaDia] = @Original_PaDia) AND ([QR1] = @Original_QR1) AND ((@IsNull_QR1_Mas = 1 AND [QR1_Mas] IS NULL) OR ([QR1_Mas] = @Original_QR1_Mas)) AND ([VO2] = @Original_VO2) AND ([VO2_a] = @Original_VO2_a) AND ([FC_QR1] = @Original_FC_QR1) AND ([PolsoO2] = @Original_PolsoO2) AND ([PaSisMax] = @Original_PaSisMax) AND ([PaDiaMax] = @Original_PaDiaMax) AND ([VO2_rip] = @Original_VO2_rip) AND ([KCal_gg] = @Original_KCal_gg) AND ([KCal_cam] = @Original_KCal_cam) AND ((@IsNull_KCal_peso = 1 AND [KCal_peso] IS NULL) OR ([KCal_peso] = @Original_KCal_peso)) AND ((@IsNull_KCal_MM = 1 AND [KCal_MM] IS NULL) OR ([KCal_MM] = @Original_KCal_MM)) AND ([RischioCuore] = @Original_RischioCuore)); +SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, VO2_rip, KCal_gg, KCal_cam, KCal_peso, KCal_MM, RischioCuore FROM VisCiclo WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VCiclo_getByPaziente + + + + + + + + + @@ -308,7 +636,7 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, - + @@ -337,7 +665,7 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, - + @@ -356,7 +684,7 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, - + @@ -369,6 +697,60 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -384,10 +766,28 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, + + + + + + + + + + + + + + + - + + + + \ No newline at end of file diff --git a/MedPred_Data/DS_Applicazione.xss b/MedPred_Data/DS_Applicazione.xss index 4513b85..c9a26d2 100644 --- a/MedPred_Data/DS_Applicazione.xss +++ b/MedPred_Data/DS_Applicazione.xss @@ -4,14 +4,17 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - + + + + + + - + 998 @@ -23,5 +26,53 @@ + + + + 908 + 342 + + + 908 + 442 + + + 900 + 442 + + + + + + + 715 + 342 + + + 715 + 400 + + + 477 + 400 + + + + + + + 981 + 342 + + + 981 + 494 + + + 1095 + 494 + + + \ No newline at end of file