diff --git a/MedPred/Content/Style.css b/MedPred/Content/Style.css index 4bafb66..38a65ad 100644 --- a/MedPred/Content/Style.css +++ b/MedPred/Content/Style.css @@ -28,3 +28,14 @@ text-align: center; margin: auto; } +.text-center { + text-align: center; + margin: auto; +} +.tStrong { + font-weight: bold; + font-size: 1.3em; +} +.flRight { + float: right; +} diff --git a/MedPred/Content/Style.less b/MedPred/Content/Style.less index f80f0e0..07027fb 100644 --- a/MedPred/Content/Style.less +++ b/MedPred/Content/Style.less @@ -43,3 +43,17 @@ text-align: center; margin: auto; } + +.text-center { + text-align: center; + margin: auto; +} + +.tStrong { + font-weight: bold; + font-size: 1.3em; +} +.flRight +{ + float: right; +} \ No newline at end of file diff --git a/MedPred/Content/Style.min.css b/MedPred/Content/Style.min.css index 3556366..7fa46ef 100644 --- a/MedPred/Content/Style.min.css +++ b/MedPred/Content/Style.min.css @@ -1 +1 @@ -.baseRow{background-color:#eff3fb}.altRow{background-color:#fff}.editRow{background-color:#2461bf}.selectedRow{background-color:#d1ddf1;font-weight:600;color:#333}.headerRow{background-color:#507cd1;font-weight:600;color:#fff}.footerRow{background-color:#507cd1;font-weight:600;color:#fff}.pagerRow{background-color:#2461bf;color:#fff;text-align:center;margin:auto} \ No newline at end of file +.baseRow{background-color:#eff3fb}.altRow{background-color:#fff}.editRow{background-color:#2461bf}.selectedRow{background-color:#d1ddf1;font-weight:600;color:#333}.headerRow{background-color:#507cd1;font-weight:600;color:#fff}.footerRow{background-color:#507cd1;font-weight:600;color:#fff}.pagerRow{background-color:#2461bf;color:#fff;text-align:center;margin:auto}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right} \ No newline at end of file diff --git a/MedPred/MedPred.csproj b/MedPred/MedPred.csproj index 506a104..3c33d92 100644 --- a/MedPred/MedPred.csproj +++ b/MedPred/MedPred.csproj @@ -327,8 +327,8 @@ - - + + @@ -420,19 +420,12 @@ VAC.aspx - - VCiclo.aspx + + VCP.aspx ASPXCodeBehind - - VCiclo.aspx - - - VEco.aspx - ASPXCodeBehind - - - VEco.aspx + + VCP.aspx Visite.aspx @@ -441,6 +434,13 @@ Visite.aspx + + VL.aspx + ASPXCodeBehind + + + VL.aspx + VLab.aspx ASPXCodeBehind diff --git a/MedPred/VAC.aspx b/MedPred/VAC.aspx index 807cbff..69c1727 100644 --- a/MedPred/VAC.aspx +++ b/MedPred/VAC.aspx @@ -1,11 +1,6 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="VAC.aspx.cs" Inherits="MedPred.VAC" %> -<%-- --%>
@@ -16,7 +11,6 @@
  • Data:
  • - <%----%> <%: Request.QueryString["DataVisita"] %>
  • Fam MCCV:
  • @@ -350,8 +344,6 @@ - <%-- - --%> diff --git a/MedPred/VCP.aspx b/MedPred/VCP.aspx new file mode 100644 index 0000000..ff185f7 --- /dev/null +++ b/MedPred/VCP.aspx @@ -0,0 +1,375 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="VCP.aspx.cs" Inherits="MedPred.VCP" %> + + + + +
    + + +
    +
    +
      +
    • Data:
    • +
    • + <%: Request.QueryString["DataVisita"] %> +
    • +
    +
      +
    • Pressione Arteriosa:
    • +
    • + Sistolica + +
    • +
    • + Diastolica + +
    • +
    +
    +
    +
      +
    • Capacità Lavoro Muscolare:
    • +
    • + QR1 + +
    • +
    • + QR1/Massa + +
    • +
    +
      +
    • Consumo VO2:
    • +
    • + VO2 + +
    • +
    • + VO2/Massa + +
    • +
    +
    +
    +
      +
    • Bpm:
    • +
    • + FC a QR1 + +
    • +
    • + Polso O2 + +
    • +
    +
      +
    • Pressione Arteriosa MAX:
    • +
    • + Sistolica + +
    • +
    • + Diastolica + +
    • +
    +
    +
    +
      +
    • Frazione Eiezione:
    • +
    • + +
    • +
    +
      +
    • TDI:
    • +
    • + +
    • +
    +
      +
    • Placche Vasali (Carotidi):
    • +
    • + +
    • +
    +
    +
    +
    +
    +
      +
    • +
      +
      + +
      +
      + +
      +
      +
    • +
    +
    +
    +
    + +
    +
    +
      +
    • Data:
    • +
    • + <%: Request.QueryString["DataVisita"] %> +
    • +
    +
      +
    • Pressione Arteriosa:
    • +
    • + Sistolica + +
    • +
    • + Diastolica + +
    • +
    +
    +
    +
      +
    • Capacità Lavoro Muscolare:
    • +
    • + QR1 + +
    • +
    • + QR1/Massa + +
    • +
    +
      +
    • Consumo VO2:
    • +
    • + VO2 + +
    • +
    • + VO2/Massa + +
    • +
    +
    +
    +
      +
    • Bpm:
    • +
    • + FC a QR1 + +
    • +
    • + Polso O2 + +
    • +
    +
      +
    • Pressione Arteriosa MAX:
    • +
    • + Sistolica + +
    • +
    • + Diastolica + +
    • +
    +
    +
    +
      +
    • Frazione Eiezione:
    • +
    • + +
    • +
    +
      +
    • TDI:
    • +
    • + +
    • +
    +
      +
    • Placche Vasali (Carotidi):
    • +
    • + +
    • +
    +
    +
    +
    +
    +
      +
    • +
      +
      + +
      +
      + +
      +
      +
    • +
    +
    +
    +
    + +
    +
    +
      +
    • Data:
    • +
    • + <%: Request.QueryString["DataVisita"] %> +
    • +
    +
      +
    • Pressione Arteriosa:
    • +
    • + Sistolica + +
    • +
    • + Diastolica + +
    • +
    +
    +
    +
      +
    • Capacità Lavoro Muscolare:
    • +
    • + QR1 + +
    • +
    • + QR1/Massa + +
    • +
    +
      +
    • Consumo VO2:
    • +
    • + VO2 + +
    • +
    • + VO2/Massa + +
    • +
    +
    +
    +
      +
    • Bpm:
    • +
    • + FC a QR1 + +
    • +
    • + Polso O2 + +
    • +
    +
      +
    • Pressione Arteriosa MAX:
    • +
    • + Sistolica + +
    • +
    • + Diastolica + +
    • +
    +
    +
    +
      +
    • Frazione Eiezione:
    • +
    • + +
    • +
    +
      +
    • TDI:
    • +
    • + +
    • +
    +
      +
    • Placche Vasali (Carotidi):
    • +
    • + +
    • +
    +
    +
    +
    +
    +
      +
    • +
      +
      + +
      +
      + +
      +
      +
    • +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    diff --git a/MedPred/VCP.aspx.cs b/MedPred/VCP.aspx.cs new file mode 100644 index 0000000..6f604d6 --- /dev/null +++ b/MedPred/VCP.aspx.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MedPred +{ + public partial class VCP : System.Web.UI.Page + { + /// + /// pagina caricata + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + // verifico se sia con parametro paziente o NEW... + string cmd = Request.QueryString["cmd"]; + if (cmd == "" || cmd == null || cmd == "sel") + { + frmView.ChangeMode(FormViewMode.ReadOnly); + } + else if (cmd == "new") + { + frmView.ChangeMode(FormViewMode.Insert); + } + } + } + /// + /// modo formview cambiato + /// + /// + /// + protected void frmView_ModeChanged(object sender, EventArgs e) + { + if (frmView.CurrentMode == FormViewMode.ReadOnly && prevMode == FormViewMode.Insert) + { + Response.Redirect("Visite"); + } + } + /// + /// evento delete + /// + /// + /// + protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e) + { + Response.Redirect("Visite"); + } + /// + /// variabile per modo pre comando di update mode... + /// + public FormViewMode prevMode { get; set; } + /// + /// evento pre-cambio modo + /// + /// + /// + protected void frmView_ModeChanging(object sender, FormViewModeEventArgs e) + { + prevMode = frmView.CurrentMode; + } + } +} \ No newline at end of file diff --git a/MedPred/VCP.aspx.designer.cs b/MedPred/VCP.aspx.designer.cs new file mode 100644 index 0000000..9bb0988 --- /dev/null +++ b/MedPred/VCP.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 VCP { + + /// + /// frmView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.FormView frmView; + + /// + /// 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/VL.aspx b/MedPred/VL.aspx new file mode 100644 index 0000000..70fee90 --- /dev/null +++ b/MedPred/VL.aspx @@ -0,0 +1,482 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="VL.aspx.cs" Inherits="MedPred.VL" %> + + + +
    + + +
    +
    +
      +
    • Data:
    • +
    • + <%: Request.QueryString["DataVisita"] %> +
    • +
    • Fam MCCV:
    • +
    • + +
    • + + <%--
    +
      --%> +
    • Adesione Terapie:
    • +
    • + +
    • + <%--
    +
      --%> +
    • Sedentariertà:
    • +
    • + +
    • +
    +
    +
    +
      +
    • Ipertensione:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Diabete:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
      +
    • Ipercolesterolemia:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Fumo:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
      +
    • Alcool:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Sovrappeso:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
    +
    +
      +
    • +
      +
      + +
      +
      + +
      +
      +
    • +
    +
    +
    +
    + +
    +
    +
      +
    • Data:
    • +
    • + <%: Request.QueryString["DataVisita"] %> +
    • +
    • Fam MCCV:
    • +
    • + +
    • + + <%--
    +
      --%> +
    • Adesione Terapie:
    • +
    • + +
    • + <%--
    +
      --%> +
    • Sedentariertà:
    • +
    • + +
    • +
    +
    +
    +
      +
    • Ipertensione:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Diabete:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
      +
    • Ipercolesterolemia:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Fumo:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
      +
    • Alcool:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Sovrappeso:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
    +
    +
      +
    • +
      +
      + +
      +
      + +
      +
      +
    • +
    +
    +
    +
    + +
    +
    +
      +
    • Data:
    • +
    • + <%: Request.QueryString["DataVisita"] %> + <%----%> +
    • +
    • Fam MCCV:
    • +
    • + +
    • + + <%--
    +
      --%> +
    • Adesione Terapie:
    • +
    • + +
    • + <%--
    +
      --%> +
    • Sedentariertà:
    • +
    • + +
    • +
    +
    +
    +
      +
    • Ipertensione:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Diabete:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
      +
    • Ipercolesterolemia:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Fumo:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
      +
    • Alcool:
    • +
    • + +
    • +
    • + + +
    • +
    +
      +
    • Sovrappeso:
    • +
    • + +
    • +
    • + + +
    • +
    +
    +
    +
    +
    +
      +
    • +
      +
      + +
      +
      + +
      +
      +
    • +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    diff --git a/MedPred/VL.aspx.cs b/MedPred/VL.aspx.cs new file mode 100644 index 0000000..c04c315 --- /dev/null +++ b/MedPred/VL.aspx.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MedPred +{ + public partial class VL : System.Web.UI.Page + { + /// + /// pagina caricata + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + // verifico se sia con parametro paziente o NEW... + string cmd = Request.QueryString["cmd"]; + if (cmd == "" || cmd == null || cmd == "sel") + { + frmView.ChangeMode(FormViewMode.ReadOnly); + } + else if (cmd == "new") + { + frmView.ChangeMode(FormViewMode.Insert); + } + } + } + /// + /// modo formview cambiato + /// + /// + /// + protected void frmView_ModeChanged(object sender, EventArgs e) + { + if (frmView.CurrentMode == FormViewMode.ReadOnly && prevMode == FormViewMode.Insert) + { + Response.Redirect("Visite"); + } + } + /// + /// evento delete + /// + /// + /// + protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e) + { + Response.Redirect("Visite"); + } + /// + /// variabile per modo pre comando di update mode... + /// + public FormViewMode prevMode { get; set; } + /// + /// evento pre-cambio modo + /// + /// + /// + protected void frmView_ModeChanging(object sender, FormViewModeEventArgs e) + { + prevMode = frmView.CurrentMode; + } + } +} \ No newline at end of file diff --git a/MedPred/VL.aspx.designer.cs b/MedPred/VL.aspx.designer.cs new file mode 100644 index 0000000..837768b --- /dev/null +++ b/MedPred/VL.aspx.designer.cs @@ -0,0 +1,168 @@ +//------------------------------------------------------------------------------ +// +// 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 VL { + + /// + /// frmView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.FormView frmView; + + /// + /// 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; + + /// + /// odsFamMCCV control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsFamMCCV; + + /// + /// odsIpertens control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsIpertens; + + /// + /// odsIpertensYtd control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsIpertensYtd; + + /// + /// odsDiabete control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsDiabete; + + /// + /// odsDiabeteYtd control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsDiabeteYtd; + + /// + /// odsIpercolest control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsIpercolest; + + /// + /// odsIpercolestYtd control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsIpercolestYtd; + + /// + /// odsFumo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsFumo; + + /// + /// odsFumoYtd control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsFumoYtd; + + /// + /// odsAlcool control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsAlcool; + + /// + /// odsAlcoolYtd control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsAlcoolYtd; + + /// + /// odsSovrapp control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsSovrapp; + + /// + /// odsSovrappYtd control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsSovrappYtd; + + /// + /// odsSedent control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsSedent; + + /// + /// odsAdesTerap control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsAdesTerap; + } +} diff --git a/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx b/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx index dcf1431..c71ec18 100644 --- a/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx +++ b/MedPred/WebUserControls/mod_ElencoVisitePaziente.ascx @@ -34,10 +34,10 @@ - + - - + + @@ -46,6 +46,12 @@ + + + + + + @@ -58,18 +64,12 @@ - - - - - - - + <%-- - + --%> diff --git a/MedPred/WebUserControls/mod_header.ascx b/MedPred/WebUserControls/mod_header.ascx index b9eff20..9c5211f 100644 --- a/MedPred/WebUserControls/mod_header.ascx +++ b/MedPred/WebUserControls/mod_header.ascx @@ -1,6 +1,7 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_header.ascx.cs" Inherits="MedPred.WebUserControls.mod_header" %> +

    MedPred - <%: titolo %>

    Options
    diff --git a/MedPred_Data/DS_Applicazione.Designer.cs b/MedPred_Data/DS_Applicazione.Designer.cs index 0c3d70e..850c01a 100644 --- a/MedPred_Data/DS_Applicazione.Designer.cs +++ b/MedPred_Data/DS_Applicazione.Designer.cs @@ -28,22 +28,18 @@ namespace MedPred_Data { private ElencoVisiteDataTable tableElencoVisite; - private VisCardioDataTable tableVisCardio; - private VisLabDataTable tableVisLab; - private VisCicloDataTable tableVisCiclo; - private VisAnamCliDataTable tableVisAnamCli; - private global::System.Data.DataRelation relationFK_VisCardio_AnagPazienti; + private VisCardioPolDataTable tableVisCardioPol; private global::System.Data.DataRelation relationFK_VisClinGen_AnagPazienti; - private global::System.Data.DataRelation relationFK_VisCiclo_AnagPazienti; - private global::System.Data.DataRelation relationFK_VisAnamCli_AnagPazienti; + private global::System.Data.DataRelation relationFK_VisCardioPol_AnagPazienti; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -78,18 +74,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"])); - } if ((ds.Tables["VisAnamCli"] != null)) { base.Tables.Add(new VisAnamCliDataTable(ds.Tables["VisAnamCli"])); } + if ((ds.Tables["VisCardioPol"] != null)) { + base.Tables.Add(new VisCardioPolDataTable(ds.Tables["VisCardioPol"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -128,16 +121,6 @@ namespace MedPred_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public 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)] @@ -152,9 +135,9 @@ namespace MedPred_Data { [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 { + public VisAnamCliDataTable VisAnamCli { get { - return this.tableVisCiclo; + return this.tableVisAnamCli; } } @@ -162,9 +145,9 @@ namespace MedPred_Data { [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 VisAnamCliDataTable VisAnamCli { + public VisCardioPolDataTable VisCardioPol { get { - return this.tableVisAnamCli; + return this.tableVisCardioPol; } } @@ -241,18 +224,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"])); - } if ((ds.Tables["VisAnamCli"] != null)) { base.Tables.Add(new VisAnamCliDataTable(ds.Tables["VisAnamCli"])); } + if ((ds.Tables["VisCardioPol"] != null)) { + base.Tables.Add(new VisCardioPolDataTable(ds.Tables["VisCardioPol"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -298,34 +278,27 @@ 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.tableVisAnamCli = ((VisAnamCliDataTable)(base.Tables["VisAnamCli"])); if ((initTable == true)) { if ((this.tableVisAnamCli != null)) { this.tableVisAnamCli.InitVars(); } } - this.relationFK_VisCardio_AnagPazienti = this.Relations["FK_VisCardio_AnagPazienti"]; + this.tableVisCardioPol = ((VisCardioPolDataTable)(base.Tables["VisCardioPol"])); + if ((initTable == true)) { + if ((this.tableVisCardioPol != null)) { + this.tableVisCardioPol.InitVars(); + } + } this.relationFK_VisClinGen_AnagPazienti = this.Relations["FK_VisClinGen_AnagPazienti"]; - this.relationFK_VisCiclo_AnagPazienti = this.Relations["FK_VisCiclo_AnagPazienti"]; this.relationFK_VisAnamCli_AnagPazienti = this.Relations["FK_VisAnamCli_AnagPazienti"]; + this.relationFK_VisCardioPol_AnagPazienti = this.Relations["FK_VisCardioPol_AnagPazienti"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -340,30 +313,24 @@ namespace MedPred_Data { base.Tables.Add(this.tableAnagPazienti); 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.tableVisAnamCli = new VisAnamCliDataTable(); base.Tables.Add(this.tableVisAnamCli); - 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.tableVisCardioPol = new VisCardioPolDataTable(); + base.Tables.Add(this.tableVisCardioPol); 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); this.relationFK_VisAnamCli_AnagPazienti = new global::System.Data.DataRelation("FK_VisAnamCli_AnagPazienti", new global::System.Data.DataColumn[] { this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { this.tableVisAnamCli.IdxPazienteColumn}, false); this.Relations.Add(this.relationFK_VisAnamCli_AnagPazienti); + this.relationFK_VisCardioPol_AnagPazienti = new global::System.Data.DataRelation("FK_VisCardioPol_AnagPazienti", new global::System.Data.DataColumn[] { + this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] { + this.tableVisCardioPol.IdxPazienteColumn}, false); + this.Relations.Add(this.relationFK_VisCardioPol_AnagPazienti); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -378,12 +345,6 @@ namespace MedPred_Data { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeVisCardio() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializeVisLab() { @@ -392,13 +353,13 @@ namespace MedPred_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeVisCiclo() { + private bool ShouldSerializeVisAnamCli() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeVisAnamCli() { + private bool ShouldSerializeVisCardioPol() { return false; } @@ -463,17 +424,14 @@ 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); + public delegate void VisAnamCliRowChangeEventHandler(object sender, VisAnamCliRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public delegate void VisAnamCliRowChangeEventHandler(object sender, VisAnamCliRowChangeEvent e); + public delegate void VisCardioPolRowChangeEventHandler(object sender, VisCardioPolRowChangeEvent e); /// ///Represents the strongly named DataTable class. @@ -1226,328 +1184,6 @@ 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. /// @@ -1990,541 +1626,6 @@ namespace MedPred_Data { } } - /// - ///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 the strongly named DataTable class. /// @@ -3044,6 +2145,478 @@ namespace MedPred_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class VisCardioPolDataTable : 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_Kg; + + private global::System.Data.DataColumn columnVO2; + + private global::System.Data.DataColumn columnVO2_Kg; + + 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 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 VisCardioPolDataTable() { + this.TableName = "VisCardioPol"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisCardioPolDataTable(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 VisCardioPolDataTable(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_KgColumn { + get { + return this.columnQR1_Kg; + } + } + + [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_KgColumn { + get { + return this.columnVO2_Kg; + } + } + + [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 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 VisCardioPolRow this[int index] { + get { + return ((VisCardioPolRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCardioPolRowChangeEventHandler VisCardioPolRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCardioPolRowChangeEventHandler VisCardioPolRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCardioPolRowChangeEventHandler VisCardioPolRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event VisCardioPolRowChangeEventHandler VisCardioPolRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddVisCardioPolRow(VisCardioPolRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCardioPolRow AddVisCardioPolRow(AnagPazientiRow parentAnagPazientiRowByFK_VisCardioPol_AnagPazienti, System.DateTime DataVisita, int PaSis, int PaDia, double QR1, double QR1_Kg, double VO2, double VO2_Kg, int FC_QR1, double PolsoO2, int PaSisMax, int PaDiaMax, double FrazEiez, double TDI, double PlaccheVas) { + VisCardioPolRow rowVisCardioPolRow = ((VisCardioPolRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + DataVisita, + PaSis, + PaDia, + QR1, + QR1_Kg, + VO2, + VO2_Kg, + FC_QR1, + PolsoO2, + PaSisMax, + PaDiaMax, + FrazEiez, + TDI, + PlaccheVas}; + if ((parentAnagPazientiRowByFK_VisCardioPol_AnagPazienti != null)) { + columnValuesArray[0] = parentAnagPazientiRowByFK_VisCardioPol_AnagPazienti[0]; + } + rowVisCardioPolRow.ItemArray = columnValuesArray; + this.Rows.Add(rowVisCardioPolRow); + return rowVisCardioPolRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCardioPolRow FindByIdxPazienteDataVisita(int IdxPaziente, System.DateTime DataVisita) { + return ((VisCardioPolRow)(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() { + VisCardioPolDataTable cln = ((VisCardioPolDataTable)(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 VisCardioPolDataTable(); + } + + [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_Kg = base.Columns["QR1_Kg"]; + this.columnVO2 = base.Columns["VO2"]; + this.columnVO2_Kg = base.Columns["VO2_Kg"]; + this.columnFC_QR1 = base.Columns["FC_QR1"]; + this.columnPolsoO2 = base.Columns["PolsoO2"]; + this.columnPaSisMax = base.Columns["PaSisMax"]; + this.columnPaDiaMax = base.Columns["PaDiaMax"]; + 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.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_Kg = new global::System.Data.DataColumn("QR1_Kg", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQR1_Kg); + this.columnVO2 = new global::System.Data.DataColumn("VO2", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVO2); + this.columnVO2_Kg = new global::System.Data.DataColumn("VO2_Kg", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVO2_Kg); + 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.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.columnPaSis.AllowDBNull = false; + this.columnPaDia.AllowDBNull = false; + this.columnQR1.AllowDBNull = false; + this.columnQR1_Kg.AllowDBNull = false; + this.columnVO2.AllowDBNull = false; + this.columnVO2_Kg.AllowDBNull = false; + this.columnFC_QR1.AllowDBNull = false; + this.columnPolsoO2.AllowDBNull = false; + this.columnPaSisMax.AllowDBNull = false; + this.columnPaDiaMax.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 VisCardioPolRow NewVisCardioPolRow() { + return ((VisCardioPolRow)(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 VisCardioPolRow(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(VisCardioPolRow); + } + + [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.VisCardioPolRowChanged != null)) { + this.VisCardioPolRowChanged(this, new VisCardioPolRowChangeEvent(((VisCardioPolRow)(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.VisCardioPolRowChanging != null)) { + this.VisCardioPolRowChanging(this, new VisCardioPolRowChangeEvent(((VisCardioPolRow)(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.VisCardioPolRowDeleted != null)) { + this.VisCardioPolRowDeleted(this, new VisCardioPolRowChangeEvent(((VisCardioPolRow)(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.VisCardioPolRowDeleting != null)) { + this.VisCardioPolRowDeleting(this, new VisCardioPolRowChangeEvent(((VisCardioPolRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveVisCardioPolRow(VisCardioPolRow 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 = "VisCardioPolDataTable"; + 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. /// @@ -3174,17 +2747,6 @@ namespace MedPred_Data { this[this.tableAnagPazienti.EtaColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public 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() { @@ -3196,17 +2758,6 @@ namespace MedPred_Data { } } - [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"]))); - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public VisAnamCliRow[] GetVisAnamCliRows() { @@ -3217,6 +2768,17 @@ namespace MedPred_Data { return ((VisAnamCliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_VisAnamCli_AnagPazienti"]))); } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public VisCardioPolRow[] GetVisCardioPolRows() { + if ((this.Table.ChildRelations["FK_VisCardioPol_AnagPazienti"] == null)) { + return new VisCardioPolRow[0]; + } + else { + return ((VisCardioPolRow[])(base.GetChildRows(this.Table.ChildRelations["FK_VisCardioPol_AnagPazienti"]))); + } + } } /// @@ -3441,87 +3003,6 @@ 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. /// @@ -3708,281 +3189,6 @@ namespace MedPred_Data { } } - /// - ///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; - } - } - /// ///Represents strongly named DataRow class. /// @@ -4196,6 +3402,197 @@ namespace MedPred_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class VisCardioPolRow : global::System.Data.DataRow { + + private VisCardioPolDataTable tableVisCardioPol; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal VisCardioPolRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableVisCardioPol = ((VisCardioPolDataTable)(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.tableVisCardioPol.IdxPazienteColumn])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.DataVisitaColumn])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.PaSisColumn])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.PaDiaColumn])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.QR1Column])); + } + set { + this[this.tableVisCardioPol.QR1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double QR1_Kg { + get { + return ((double)(this[this.tableVisCardioPol.QR1_KgColumn])); + } + set { + this[this.tableVisCardioPol.QR1_KgColumn] = 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.tableVisCardioPol.VO2Column])); + } + set { + this[this.tableVisCardioPol.VO2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double VO2_Kg { + get { + return ((double)(this[this.tableVisCardioPol.VO2_KgColumn])); + } + set { + this[this.tableVisCardioPol.VO2_KgColumn] = 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.tableVisCardioPol.FC_QR1Column])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.PolsoO2Column])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.PaSisMaxColumn])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.PaDiaMaxColumn])); + } + set { + this[this.tableVisCardioPol.PaDiaMaxColumn] = 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.tableVisCardioPol.FrazEiezColumn])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.TDIColumn])); + } + set { + this[this.tableVisCardioPol.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.tableVisCardioPol.PlaccheVasColumn])); + } + set { + this[this.tableVisCardioPol.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_VisCardioPol_AnagPazienti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_VisCardioPol_AnagPazienti"]); + } + } + } + /// ///Row event argument class /// @@ -4264,40 +3661,6 @@ 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 /// @@ -4336,22 +3699,22 @@ namespace MedPred_Data { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public class VisCicloRowChangeEvent : global::System.EventArgs { + public class VisAnamCliRowChangeEvent : global::System.EventArgs { - private VisCicloRow eventRow; + private VisAnamCliRow 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) { + public VisAnamCliRowChangeEvent(VisAnamCliRow 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 { + public VisAnamCliRow Row { get { return this.eventRow; } @@ -4370,22 +3733,22 @@ namespace MedPred_Data { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public class VisAnamCliRowChangeEvent : global::System.EventArgs { + public class VisCardioPolRowChangeEvent : global::System.EventArgs { - private VisAnamCliRow eventRow; + private VisCardioPolRow 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 VisAnamCliRowChangeEvent(VisAnamCliRow row, global::System.Data.DataRowAction action) { + public VisCardioPolRowChangeEvent(VisCardioPolRow 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 VisAnamCliRow Row { + public VisCardioPolRow Row { get { return this.eventRow; } @@ -5342,517 +4705,6 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz } } - /// - ///Represents the connection and commands used to retrieve and save data. - /// - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.ComponentModel.DataObjectAttribute(true)] - [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + - ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public partial class 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[5]; - 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_DeleteQuery"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_VCardio_getByPaziente"; - this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_VCardio_InsertQuery"; - this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FrazEiez", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TDI", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaccheVas", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_VCardio_UpdateQuery"; - this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FrazEiez", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TDI", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaccheVas", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(DS_Applicazione.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[2]; - if ((IdxPaziente.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - DS_Applicazione.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 updateQuery(global::System.Nullable DataVisita, global::System.Nullable FrazEiez, global::System.Nullable TDI, global::System.Nullable PlaccheVas, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { - this.Adapter.SelectCommand = this.CommandCollection[4]; - if ((DataVisita.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(DataVisita.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((FrazEiez.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((double)(FrazEiez.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((TDI.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[3].Value = ((double)(TDI.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - if ((PlaccheVas.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[4].Value = ((double)(PlaccheVas.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; - } - if ((Original_DataVisita.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[5].Value = ((System.DateTime)(Original_DataVisita.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; - } - if ((Original_IdxPaziente.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[6].Value = ((int)(Original_IdxPaziente.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[6].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); - } - - [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 DeleteQuery(global::System.Nullable Original_IdxPaziente, global::System.Nullable Original_DataVisita) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; - if ((Original_IdxPaziente.HasValue == true)) { - command.Parameters[1].Value = ((int)(Original_IdxPaziente.Value)); - } - else { - command.Parameters[1].Value = global::System.DBNull.Value; - } - if ((Original_DataVisita.HasValue == true)) { - command.Parameters[2].Value = ((System.DateTime)(Original_DataVisita.Value)); - } - else { - command.Parameters[2].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = command.Connection.State; - if (((command.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - command.Connection.Open(); - } - int returnValue; - try { - returnValue = command.ExecuteNonQuery(); - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - command.Connection.Close(); - } - } - return returnValue; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int InsertQuery(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable FrazEiez, global::System.Nullable TDI, global::System.Nullable PlaccheVas) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; - if ((IdxPaziente.HasValue == true)) { - command.Parameters[1].Value = ((int)(IdxPaziente.Value)); - } - else { - command.Parameters[1].Value = global::System.DBNull.Value; - } - if ((DataVisita.HasValue == true)) { - command.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); - } - else { - command.Parameters[2].Value = global::System.DBNull.Value; - } - if ((FrazEiez.HasValue == true)) { - command.Parameters[3].Value = ((double)(FrazEiez.Value)); - } - else { - command.Parameters[3].Value = global::System.DBNull.Value; - } - if ((TDI.HasValue == true)) { - command.Parameters[4].Value = ((double)(TDI.Value)); - } - else { - command.Parameters[4].Value = global::System.DBNull.Value; - } - if ((PlaccheVas.HasValue == true)) { - command.Parameters[5].Value = ((double)(PlaccheVas.Value)); - } - else { - command.Parameters[5].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = command.Connection.State; - if (((command.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - command.Connection.Open(); - } - int returnValue; - try { - returnValue = command.ExecuteNonQuery(); - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - command.Connection.Close(); - } - } - return returnValue; - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -6566,897 +5418,6 @@ SELECT IdxPaziente, DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, ColR } } - /// - ///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[5]; - 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_DeleteQuery"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_VCiclo_getByPaziente"; - this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_VCiclo_InsertQuery"; - this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSis", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDia", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QR1", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_a", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC_QR1", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PolsoO2", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSisMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDiaMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_rip", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KCal_gg", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KCal_cam", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RischioCuore", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_VCiclo_UpdateQuery"; - this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSis", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDia", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QR1", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_a", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC_QR1", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PolsoO2", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSisMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDiaMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_rip", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KCal_gg", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KCal_cam", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RischioCuore", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(DS_Applicazione.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[2]; - if ((IdxPaziente.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - DS_Applicazione.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 InsertQuery(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable PaSis, global::System.Nullable PaDia, global::System.Nullable QR1, global::System.Nullable VO2, global::System.Nullable VO2_a, global::System.Nullable FC_QR1, global::System.Nullable PolsoO2, global::System.Nullable PaSisMax, global::System.Nullable PaDiaMax, global::System.Nullable VO2_rip, global::System.Nullable KCal_gg, global::System.Nullable KCal_cam, global::System.Nullable RischioCuore) { - this.Adapter.SelectCommand = this.CommandCollection[3]; - if ((IdxPaziente.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((DataVisita.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((PaSis.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[3].Value = ((int)(PaSis.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - if ((PaDia.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[4].Value = ((int)(PaDia.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; - } - if ((QR1.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[5].Value = ((double)(QR1.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; - } - if ((VO2.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[6].Value = ((double)(VO2.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; - } - if ((VO2_a.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[7].Value = ((double)(VO2_a.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; - } - if ((FC_QR1.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[8].Value = ((int)(FC_QR1.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; - } - if ((PolsoO2.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[9].Value = ((double)(PolsoO2.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((PaSisMax.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[10].Value = ((int)(PaSisMax.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; - } - if ((PaDiaMax.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[11].Value = ((int)(PaDiaMax.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((VO2_rip.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[12].Value = ((double)(VO2_rip.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; - } - if ((KCal_gg.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[13].Value = ((double)(KCal_gg.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((KCal_cam.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[14].Value = ((double)(KCal_cam.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value; - } - if ((RischioCuore.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[15].Value = ((double)(RischioCuore.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[15].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")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_Applicazione.VisCicloDataTable UpdateQuery( - global::System.Nullable DataVisita, - global::System.Nullable PaSis, - global::System.Nullable PaDia, - global::System.Nullable QR1, - global::System.Nullable VO2, - global::System.Nullable VO2_a, - global::System.Nullable FC_QR1, - global::System.Nullable PolsoO2, - global::System.Nullable PaSisMax, - global::System.Nullable PaDiaMax, - global::System.Nullable VO2_rip, - global::System.Nullable KCal_gg, - global::System.Nullable KCal_cam, - global::System.Nullable RischioCuore, - global::System.Nullable Original_DataVisita, - global::System.Nullable Original_IdxPaziente) { - this.Adapter.SelectCommand = this.CommandCollection[4]; - if ((DataVisita.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(DataVisita.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((PaSis.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((int)(PaSis.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((PaDia.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[3].Value = ((int)(PaDia.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - if ((QR1.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[4].Value = ((double)(QR1.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; - } - if ((VO2.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[5].Value = ((double)(VO2.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; - } - if ((VO2_a.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[6].Value = ((double)(VO2_a.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; - } - if ((FC_QR1.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[7].Value = ((int)(FC_QR1.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; - } - if ((PolsoO2.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[8].Value = ((double)(PolsoO2.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; - } - if ((PaSisMax.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[9].Value = ((int)(PaSisMax.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((PaDiaMax.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[10].Value = ((int)(PaDiaMax.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; - } - if ((VO2_rip.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[11].Value = ((double)(VO2_rip.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((KCal_gg.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[12].Value = ((double)(KCal_gg.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; - } - if ((KCal_cam.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[13].Value = ((double)(KCal_cam.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((RischioCuore.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[14].Value = ((double)(RischioCuore.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value; - } - if ((Original_DataVisita.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[15].Value = ((System.DateTime)(Original_DataVisita.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value; - } - if ((Original_IdxPaziente.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[16].Value = ((int)(Original_IdxPaziente.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[16].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); - } - - [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 DeleteQuery(global::System.Nullable Original_IdxPaziente, global::System.Nullable Original_DataVisita) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; - if ((Original_IdxPaziente.HasValue == true)) { - command.Parameters[1].Value = ((int)(Original_IdxPaziente.Value)); - } - else { - command.Parameters[1].Value = global::System.DBNull.Value; - } - if ((Original_DataVisita.HasValue == true)) { - command.Parameters[2].Value = ((System.DateTime)(Original_DataVisita.Value)); - } - else { - command.Parameters[2].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = command.Connection.State; - if (((command.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - command.Connection.Open(); - } - int returnValue; - try { - returnValue = command.ExecuteNonQuery(); - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - command.Connection.Close(); - } - } - return returnValue; - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -8375,6 +6336,793 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete } } + /// + ///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 VisCardioPolTableAdapter : 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 VisCardioPolTableAdapter() { + 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 = "VisCardioPol"; + 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_Kg", "QR1_Kg"); + tableMapping.ColumnMappings.Add("VO2", "VO2"); + tableMapping.ColumnMappings.Add("VO2_Kg", "VO2_Kg"); + 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("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].[VisCardioPol] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([PaSis] = @Original_PaSis) AND ([PaDia] = @Original_PaDia) AND ([QR1] = @Original_QR1) AND ([QR1_Kg] = @Original_QR1_Kg) AND ([VO2] = @Original_VO2) AND ([VO2_Kg] = @Original_VO2_Kg) AND ([FC_QR1] = @Original_FC_QR1) AND ([PolsoO2] = @Original_PolsoO2) AND ([PaSisMax] = @Original_PaSisMax) AND ([PaDiaMax] = @Original_PaDiaMax) 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_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("@Original_QR1_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1_Kg", 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_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_Kg", 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_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].[VisCardioPol] ([IdxPaziente], [DataVisita], [PaSis], [PaDia], [QR1], [QR1_Kg], [VO2], [VO2_Kg], [FC_QR1], [PolsoO2], [PaSisMax], [PaDiaMax], [FrazEiez], [TDI], [PlaccheVas]) VALUES (@IdxPaziente, @DataVisita, @PaSis, @PaDia, @QR1, @QR1_Kg, @VO2, @VO2_Kg, @FC_QR1, @PolsoO2, @PaSisMax, @PaDiaMax, @FrazEiez, @TDI, @PlaccheVas); +SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, FrazEiez, TDI, PlaccheVas FROM VisCardioPol 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("@QR1_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1_Kg", 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_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_Kg", 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("@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].[VisCardioPol] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [PaSis] = @PaSis, [PaDia] = @PaDia, [QR1] = @QR1, [QR1_Kg] = @QR1_Kg, [VO2] = @VO2, [VO2_Kg] = @VO2_Kg, [FC_QR1] = @FC_QR1, [PolsoO2] = @PolsoO2, [PaSisMax] = @PaSisMax, [PaDiaMax] = @PaDiaMax, [FrazEiez] = @FrazEiez, [TDI] = @TDI, [PlaccheVas] = @PlaccheVas WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([PaSis] = @Original_PaSis) AND ([PaDia] = @Original_PaDia) AND ([QR1] = @Original_QR1) AND ([QR1_Kg] = @Original_QR1_Kg) AND ([VO2] = @Original_VO2) AND ([VO2_Kg] = @Original_VO2_Kg) AND ([FC_QR1] = @Original_FC_QR1) AND ([PolsoO2] = @Original_PolsoO2) AND ([PaSisMax] = @Original_PaSisMax) AND ([PaDiaMax] = @Original_PaDiaMax) AND ([FrazEiez] = @Original_FrazEiez) AND ([TDI] = @Original_TDI) AND ([PlaccheVas] = @Original_PlaccheVas)); +SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, FrazEiez, TDI, PlaccheVas FROM VisCardioPol 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("@QR1_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1_Kg", 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_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_Kg", 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("@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_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("@Original_QR1_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QR1_Kg", 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_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VO2_Kg", 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_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[5]; + 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_Kg, VO2, VO2_Kg, FC_QR1, P" + + "olsoO2, PaSisMax, PaDiaMax, FrazEiez, TDI, PlaccheVas FROM dbo.VisCardioPol"; + 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_DeleteQuery"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_VCardio_getByPaziente"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_VCardio_InsertQuery"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSis", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDia", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QR1", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QR1_Kg", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_Kg", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC_QR1", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PolsoO2", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSisMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDiaMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FrazEiez", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TDI", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaccheVas", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_VCardio_UpdateQuery"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSis", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDia", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QR1", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QR1_Kg", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VO2_Kg", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC_QR1", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PolsoO2", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaSisMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaDiaMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FrazEiez", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TDI", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaccheVas", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Applicazione.VisCardioPolDataTable 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.VisCardioPolDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.VisCardioPolDataTable dataTable = new DS_Applicazione.VisCardioPolDataTable(); + 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.VisCardioPolDataTable getByPaziente(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxPaziente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataVisita.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_Applicazione.VisCardioPolDataTable dataTable = new DS_Applicazione.VisCardioPolDataTable(); + 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.VisCardioPolDataTable InsertQuery(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable PaSis, global::System.Nullable PaDia, global::System.Nullable QR1, global::System.Nullable QR1_Kg, global::System.Nullable VO2, global::System.Nullable VO2_Kg, global::System.Nullable FC_QR1, global::System.Nullable PolsoO2, global::System.Nullable PaSisMax, global::System.Nullable PaDiaMax, global::System.Nullable FrazEiez, global::System.Nullable TDI, global::System.Nullable PlaccheVas) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((IdxPaziente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataVisita.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((PaSis.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(PaSis.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((PaDia.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((int)(PaDia.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((QR1.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((double)(QR1.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((QR1_Kg.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((double)(QR1_Kg.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((VO2.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[7].Value = ((double)(VO2.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((VO2_Kg.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[8].Value = ((double)(VO2_Kg.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((FC_QR1.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[9].Value = ((int)(FC_QR1.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((PolsoO2.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[10].Value = ((double)(PolsoO2.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((PaSisMax.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[11].Value = ((int)(PaSisMax.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((PaDiaMax.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[12].Value = ((int)(PaDiaMax.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((FrazEiez.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[13].Value = ((double)(FrazEiez.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((TDI.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[14].Value = ((double)(TDI.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((PlaccheVas.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[15].Value = ((double)(PlaccheVas.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value; + } + DS_Applicazione.VisCardioPolDataTable dataTable = new DS_Applicazione.VisCardioPolDataTable(); + 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.VisCardioPolDataTable UpdateQuery(global::System.Nullable PaSis, global::System.Nullable PaDia, global::System.Nullable QR1, global::System.Nullable QR1_Kg, global::System.Nullable VO2, global::System.Nullable VO2_Kg, global::System.Nullable FC_QR1, global::System.Nullable PolsoO2, global::System.Nullable PaSisMax, global::System.Nullable PaDiaMax, global::System.Nullable FrazEiez, global::System.Nullable TDI, global::System.Nullable PlaccheVas, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((PaSis.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(PaSis.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((PaDia.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(PaDia.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((QR1.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((double)(QR1.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((QR1_Kg.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((double)(QR1_Kg.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((VO2.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((double)(VO2.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((VO2_Kg.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((double)(VO2_Kg.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((FC_QR1.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[7].Value = ((int)(FC_QR1.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((PolsoO2.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[8].Value = ((double)(PolsoO2.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((PaSisMax.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[9].Value = ((int)(PaSisMax.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((PaDiaMax.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[10].Value = ((int)(PaDiaMax.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((FrazEiez.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[11].Value = ((double)(FrazEiez.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((TDI.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[12].Value = ((double)(TDI.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((PlaccheVas.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[13].Value = ((double)(PlaccheVas.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_DataVisita.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[14].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((Original_IdxPaziente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[15].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value; + } + DS_Applicazione.VisCardioPolDataTable dataTable = new DS_Applicazione.VisCardioPolDataTable(); + 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.VisCardioPolDataTable 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, "VisCardioPol"); + } + + [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, double Original_QR1_Kg, double Original_VO2, double Original_VO2_Kg, int Original_FC_QR1, double Original_PolsoO2, int Original_PaSisMax, int Original_PaDiaMax, 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 = ((int)(Original_PaSis)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_PaDia)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_QR1)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_QR1_Kg)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_VO2)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((double)(Original_VO2_Kg)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_FC_QR1)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((double)(Original_PolsoO2)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_PaSisMax)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((int)(Original_PaDiaMax)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((double)(Original_FrazEiez)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((double)(Original_TDI)); + this.Adapter.DeleteCommand.Parameters[14].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, int PaSis, int PaDia, double QR1, double QR1_Kg, double VO2, double VO2_Kg, int FC_QR1, double PolsoO2, int PaSisMax, int PaDiaMax, 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 = ((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)(QR1_Kg)); + this.Adapter.InsertCommand.Parameters[6].Value = ((double)(VO2)); + this.Adapter.InsertCommand.Parameters[7].Value = ((double)(VO2_Kg)); + this.Adapter.InsertCommand.Parameters[8].Value = ((int)(FC_QR1)); + this.Adapter.InsertCommand.Parameters[9].Value = ((double)(PolsoO2)); + this.Adapter.InsertCommand.Parameters[10].Value = ((int)(PaSisMax)); + this.Adapter.InsertCommand.Parameters[11].Value = ((int)(PaDiaMax)); + this.Adapter.InsertCommand.Parameters[12].Value = ((double)(FrazEiez)); + this.Adapter.InsertCommand.Parameters[13].Value = ((double)(TDI)); + this.Adapter.InsertCommand.Parameters[14].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, + int PaSis, + int PaDia, + double QR1, + double QR1_Kg, + double VO2, + double VO2_Kg, + int FC_QR1, + double PolsoO2, + int PaSisMax, + int PaDiaMax, + double FrazEiez, + double TDI, + double PlaccheVas, + int Original_IdxPaziente, + System.DateTime Original_DataVisita, + int Original_PaSis, + int Original_PaDia, + double Original_QR1, + double Original_QR1_Kg, + double Original_VO2, + double Original_VO2_Kg, + int Original_FC_QR1, + double Original_PolsoO2, + int Original_PaSisMax, + int Original_PaDiaMax, + 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 = ((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)(QR1_Kg)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(VO2)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(VO2_Kg)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(FC_QR1)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((double)(PolsoO2)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(PaSisMax)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(PaDiaMax)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((double)(FrazEiez)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(TDI)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(PlaccheVas)); + 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)); + this.Adapter.UpdateCommand.Parameters[20].Value = ((double)(Original_QR1_Kg)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_VO2)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((double)(Original_VO2_Kg)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_FC_QR1)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((double)(Original_PolsoO2)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_PaSisMax)); + this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_PaDiaMax)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((double)(Original_FrazEiez)); + this.Adapter.UpdateCommand.Parameters[28].Value = ((double)(Original_TDI)); + this.Adapter.UpdateCommand.Parameters[29].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( + int PaSis, + int PaDia, + double QR1, + double QR1_Kg, + double VO2, + double VO2_Kg, + int FC_QR1, + double PolsoO2, + int PaSisMax, + int PaDiaMax, + double FrazEiez, + double TDI, + double PlaccheVas, + int Original_IdxPaziente, + System.DateTime Original_DataVisita, + int Original_PaSis, + int Original_PaDia, + double Original_QR1, + double Original_QR1_Kg, + double Original_VO2, + double Original_VO2_Kg, + int Original_FC_QR1, + double Original_PolsoO2, + int Original_PaSisMax, + int Original_PaDiaMax, + double Original_FrazEiez, + double Original_TDI, + double Original_PlaccheVas) { + return this.Update(Original_IdxPaziente, Original_DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, FrazEiez, TDI, PlaccheVas, Original_IdxPaziente, Original_DataVisita, Original_PaSis, Original_PaDia, Original_QR1, Original_QR1_Kg, Original_VO2, Original_VO2_Kg, Original_FC_QR1, Original_PolsoO2, Original_PaSisMax, Original_PaDiaMax, Original_FrazEiez, Original_TDI, Original_PlaccheVas); + } + + [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 DeleteQuery(global::System.Nullable Original_IdxPaziente, global::System.Nullable Original_DataVisita) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[1].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Original_DataVisita.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -8389,14 +7137,12 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete private AnagPazientiTableAdapter _anagPazientiTableAdapter; - private VisCardioTableAdapter _visCardioTableAdapter; - private VisLabTableAdapter _visLabTableAdapter; - private VisCicloTableAdapter _visCicloTableAdapter; - private VisAnamCliTableAdapter _visAnamCliTableAdapter; + private VisCardioPolTableAdapter _visCardioPolTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -8426,20 +7172,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public 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" + @@ -8459,12 +7191,12 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete [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 { + public VisAnamCliTableAdapter VisAnamCliTableAdapter { get { - return this._visCicloTableAdapter; + return this._visAnamCliTableAdapter; } set { - this._visCicloTableAdapter = value; + this._visAnamCliTableAdapter = value; } } @@ -8473,12 +7205,12 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete [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 VisAnamCliTableAdapter VisAnamCliTableAdapter { + public VisCardioPolTableAdapter VisCardioPolTableAdapter { get { - return this._visAnamCliTableAdapter; + return this._visCardioPolTableAdapter; } set { - this._visAnamCliTableAdapter = value; + this._visCardioPolTableAdapter = value; } } @@ -8505,22 +7237,18 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete && (this._anagPazientiTableAdapter.Connection != null))) { return this._anagPazientiTableAdapter.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; - } if (((this._visAnamCliTableAdapter != null) && (this._visAnamCliTableAdapter.Connection != null))) { return this._visAnamCliTableAdapter.Connection; } + if (((this._visCardioPolTableAdapter != null) + && (this._visCardioPolTableAdapter.Connection != null))) { + return this._visCardioPolTableAdapter.Connection; + } return null; } set { @@ -8537,16 +7265,13 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete if ((this._anagPazientiTableAdapter != null)) { count = (count + 1); } - if ((this._visCardioTableAdapter != null)) { - count = (count + 1); - } if ((this._visLabTableAdapter != null)) { count = (count + 1); } - if ((this._visCicloTableAdapter != null)) { + if ((this._visAnamCliTableAdapter != null)) { count = (count + 1); } - if ((this._visAnamCliTableAdapter != null)) { + if ((this._visCardioPolTableAdapter != null)) { count = (count + 1); } return count; @@ -8569,15 +7294,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete 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); @@ -8587,15 +7303,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete 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); - } - } if ((this._visAnamCliTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.VisAnamCli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -8605,6 +7312,15 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete allChangedRows.AddRange(updatedRows); } } + if ((this._visCardioPolTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.VisCardioPol.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._visCardioPolTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -8623,14 +7339,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete 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) @@ -8639,14 +7347,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete 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); - } - } if ((this._visAnamCliTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.VisAnamCli.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -8655,6 +7355,14 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete allAddedRows.AddRange(addedRows); } } + if ((this._visCardioPolTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.VisCardioPol.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._visCardioPolTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -8665,6 +7373,14 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete [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._visCardioPolTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.VisCardioPol.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._visCardioPolTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._visAnamCliTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.VisAnamCli.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -8673,14 +7389,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete allChangedRows.AddRange(deletedRows); } } - 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) @@ -8689,14 +7397,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete 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._anagPazientiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagPazienti.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -8749,23 +7449,18 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._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))) { + if (((this._visAnamCliTableAdapter != null) + && (this.MatchTableAdapterConnection(this._visAnamCliTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._visAnamCliTableAdapter != null) - && (this.MatchTableAdapterConnection(this._visAnamCliTableAdapter.Connection) == false))) { + if (((this._visCardioPolTableAdapter != null) + && (this.MatchTableAdapterConnection(this._visCardioPolTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } @@ -8810,15 +7505,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete adaptersWithAcceptChangesDuringUpdate.Add(this._anagPazientiTableAdapter.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)); @@ -8828,15 +7514,6 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete 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); - } - } if ((this._visAnamCliTableAdapter != null)) { revertConnections.Add(this._visAnamCliTableAdapter, this._visAnamCliTableAdapter.Connection); this._visAnamCliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -8846,6 +7523,15 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete adaptersWithAcceptChangesDuringUpdate.Add(this._visAnamCliTableAdapter.Adapter); } } + if ((this._visCardioPolTableAdapter != null)) { + revertConnections.Add(this._visCardioPolTableAdapter, this._visCardioPolTableAdapter.Connection); + this._visCardioPolTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._visCardioPolTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._visCardioPolTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._visCardioPolTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._visCardioPolTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -8908,22 +7594,18 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete this._anagPazientiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagPazientiTableAdapter])); this._anagPazientiTableAdapter.Transaction = null; } - if ((this._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 ((this._visAnamCliTableAdapter != null)) { this._visAnamCliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visAnamCliTableAdapter])); this._visAnamCliTableAdapter.Transaction = null; } + if ((this._visCardioPolTableAdapter != null)) { + this._visCardioPolTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visCardioPolTableAdapter])); + this._visCardioPolTableAdapter.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 c0d0b1e..c078a3f 100644 --- a/MedPred_Data/DS_Applicazione.xsd +++ b/MedPred_Data/DS_Applicazione.xsd @@ -180,124 +180,6 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz - - - - - - 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_DeleteQuery - - - - - - - - - - - - dbo.stp_VCardio_getByPaziente - - - - - - - - - - - dbo.stp_VCardio_InsertQuery - - - - - - - - - - - - - - - dbo.stp_VCardio_UpdateQuery - - - - - - - - - - - - - - @@ -468,209 +350,6 @@ SELECT IdxPaziente, DataVisita, Glicemia, ColesTot, LDL, HDL, Trigliceridi, ColR - - - - - - 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_DeleteQuery - - - - - - - - - - - - dbo.stp_VCiclo_getByPaziente - - - - - - - - - - - dbo.stp_VCiclo_InsertQuery - - - - - - - - - - - - - - - - - - - - - - - - - dbo.stp_VCiclo_UpdateQuery - - - - - - - - - - - - - - - - - - - - - - - - @@ -874,6 +553,194 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete + + + + + + DELETE FROM [dbo].[VisCardioPol] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([PaSis] = @Original_PaSis) AND ([PaDia] = @Original_PaDia) AND ([QR1] = @Original_QR1) AND ([QR1_Kg] = @Original_QR1_Kg) AND ([VO2] = @Original_VO2) AND ([VO2_Kg] = @Original_VO2_Kg) AND ([FC_QR1] = @Original_FC_QR1) AND ([PolsoO2] = @Original_PolsoO2) AND ([PaSisMax] = @Original_PaSisMax) AND ([PaDiaMax] = @Original_PaDiaMax) AND ([FrazEiez] = @Original_FrazEiez) AND ([TDI] = @Original_TDI) AND ([PlaccheVas] = @Original_PlaccheVas)) + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[VisCardioPol] ([IdxPaziente], [DataVisita], [PaSis], [PaDia], [QR1], [QR1_Kg], [VO2], [VO2_Kg], [FC_QR1], [PolsoO2], [PaSisMax], [PaDiaMax], [FrazEiez], [TDI], [PlaccheVas]) VALUES (@IdxPaziente, @DataVisita, @PaSis, @PaDia, @QR1, @QR1_Kg, @VO2, @VO2_Kg, @FC_QR1, @PolsoO2, @PaSisMax, @PaDiaMax, @FrazEiez, @TDI, @PlaccheVas); +SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, FrazEiez, TDI, PlaccheVas FROM VisCardioPol WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + + + + + + + + + + + SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, FrazEiez, TDI, PlaccheVas FROM dbo.VisCardioPol + + + + + + UPDATE [dbo].[VisCardioPol] SET [IdxPaziente] = @IdxPaziente, [DataVisita] = @DataVisita, [PaSis] = @PaSis, [PaDia] = @PaDia, [QR1] = @QR1, [QR1_Kg] = @QR1_Kg, [VO2] = @VO2, [VO2_Kg] = @VO2_Kg, [FC_QR1] = @FC_QR1, [PolsoO2] = @PolsoO2, [PaSisMax] = @PaSisMax, [PaDiaMax] = @PaDiaMax, [FrazEiez] = @FrazEiez, [TDI] = @TDI, [PlaccheVas] = @PlaccheVas WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([DataVisita] = @Original_DataVisita) AND ([PaSis] = @Original_PaSis) AND ([PaDia] = @Original_PaDia) AND ([QR1] = @Original_QR1) AND ([QR1_Kg] = @Original_QR1_Kg) AND ([VO2] = @Original_VO2) AND ([VO2_Kg] = @Original_VO2_Kg) AND ([FC_QR1] = @Original_FC_QR1) AND ([PolsoO2] = @Original_PolsoO2) AND ([PaSisMax] = @Original_PaSisMax) AND ([PaDiaMax] = @Original_PaDiaMax) AND ([FrazEiez] = @Original_FrazEiez) AND ([TDI] = @Original_TDI) AND ([PlaccheVas] = @Original_PlaccheVas)); +SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1, PolsoO2, PaSisMax, PaDiaMax, FrazEiez, TDI, PlaccheVas FROM VisCardioPol WHERE (DataVisita = @DataVisita) AND (IdxPaziente = @IdxPaziente) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VCardio_DeleteQuery + + + + + + + + + + + + dbo.stp_VCardio_getByPaziente + + + + + + + + + + + + dbo.stp_VCardio_InsertQuery + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VCardio_UpdateQuery + + + + + + + + + + + + + + + + + + + + + + + @@ -882,7 +749,7 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - + @@ -933,7 +800,7 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - + @@ -947,18 +814,7 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - - - - - - - - - - - - + @@ -977,31 +833,7 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -1024,6 +856,27 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete + + + + + + + + + + + + + + + + + + + + + @@ -1034,33 +887,27 @@ SELECT IdxPaziente, DataVisita, FamMCCV, Ipertens, IpertensYtd, Diabete, Diabete - - - - - - - - - - + + + + + - - - - + + + \ No newline at end of file diff --git a/MedPred_Data/DS_Applicazione.xss b/MedPred_Data/DS_Applicazione.xss index 46dd6d1..b822160 100644 --- a/MedPred_Data/DS_Applicazione.xss +++ b/MedPred_Data/DS_Applicazione.xss @@ -4,28 +4,15 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - + + - - + + - - - - 824 - 388 - - - 824 - 445 - - - @@ -42,23 +29,7 @@ - - - - 957 - 388 - - - 957 - 494 - - - 1095 - 494 - - - - + 974 @@ -70,5 +41,17 @@ + + + + 723 + 388 + + + 723 + 474 + + + \ No newline at end of file diff --git a/MedPred_Data/DtProxy.cs b/MedPred_Data/DtProxy.cs index 68b480c..6fa9af7 100644 --- a/MedPred_Data/DtProxy.cs +++ b/MedPred_Data/DtProxy.cs @@ -24,9 +24,8 @@ namespace MedPred_Data { taAP = new DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter(); taVAC = new DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter(); - taVCardio = new DS_ApplicazioneTableAdapters.VisCardioTableAdapter(); + taVCP = new DS_ApplicazioneTableAdapters.VisCardioPolTableAdapter(); taVLab = new DS_ApplicazioneTableAdapters.VisLabTableAdapter(); - taVCiclo = new DS_ApplicazioneTableAdapters.VisCicloTableAdapter(); } /// /// effettua setup dei connection strings da web.config della singola applicazione @@ -37,9 +36,8 @@ namespace MedPred_Data // connections del db vocabolario taAP.Connection.ConnectionString = connStr; taVAC.Connection.ConnectionString = connStr; - taVCardio.Connection.ConnectionString = connStr; + taVCP.Connection.ConnectionString = connStr; taVLab.Connection.ConnectionString = connStr; - taVCiclo.Connection.ConnectionString = connStr; } #endregion @@ -48,9 +46,8 @@ namespace MedPred_Data public DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter taAP; public DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter taVAC; - public DS_ApplicazioneTableAdapters.VisCardioTableAdapter taVCardio; + public DS_ApplicazioneTableAdapters.VisCardioPolTableAdapter taVCP; public DS_ApplicazioneTableAdapters.VisLabTableAdapter taVLab; - public DS_ApplicazioneTableAdapters.VisCicloTableAdapter taVCiclo; public static DtProxy man = new DtProxy();