From 4e07f3f2bdd6d849d01fb630244c30a10fed99ae Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 23 Feb 2017 15:39:40 +0100 Subject: [PATCH] inizio aggancio nuovi field altezza/peso in VVF (Anz e GT) --> da gestire graficamente (CRUD) e da sistemare stored! --- ScheMe_Data/DS_Applicazione.Designer.cs | 648 +++++++++++++++++------- ScheMe_Data/DS_Applicazione.xsd | 87 ++-- 2 files changed, 506 insertions(+), 229 deletions(-) diff --git a/ScheMe_Data/DS_Applicazione.Designer.cs b/ScheMe_Data/DS_Applicazione.Designer.cs index a65fa6b..ef641b9 100644 --- a/ScheMe_Data/DS_Applicazione.Designer.cs +++ b/ScheMe_Data/DS_Applicazione.Designer.cs @@ -8216,6 +8216,10 @@ namespace ScheMe_Data { private global::System.Data.DataColumn columnGA; + private global::System.Data.DataColumn columnAltezza; + + private global::System.Data.DataColumn columnPeso; + private global::System.Data.DataColumn columnFAI_s; private global::System.Data.DataColumn columnFP_s; @@ -8335,6 +8339,22 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AltezzaColumn { + get { + return this.columnAltezza; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PesoColumn { + get { + return this.columnPeso; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn FAI_sColumn { @@ -8469,6 +8489,8 @@ namespace ScheMe_Data { int FS, int E, int GA, + double Altezza, + double Peso, int FAI_s, int FP_s, int FT_s, @@ -8490,6 +8512,8 @@ namespace ScheMe_Data { FS, E, GA, + Altezza, + Peso, FAI_s, FP_s, FT_s, @@ -8542,6 +8566,8 @@ namespace ScheMe_Data { this.columnFS = base.Columns["FS"]; this.columnE = base.Columns["E"]; this.columnGA = base.Columns["GA"]; + this.columnAltezza = base.Columns["Altezza"]; + this.columnPeso = base.Columns["Peso"]; this.columnFAI_s = base.Columns["FAI_s"]; this.columnFP_s = base.Columns["FP_s"]; this.columnFT_s = base.Columns["FT_s"]; @@ -8574,6 +8600,10 @@ namespace ScheMe_Data { base.Columns.Add(this.columnE); this.columnGA = new global::System.Data.DataColumn("GA", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnGA); + this.columnAltezza = new global::System.Data.DataColumn("Altezza", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAltezza); + this.columnPeso = new global::System.Data.DataColumn("Peso", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPeso); this.columnFAI_s = new global::System.Data.DataColumn("FAI_s", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnFAI_s); this.columnFP_s = new global::System.Data.DataColumn("FP_s", typeof(int), null, global::System.Data.MappingType.Element); @@ -8607,12 +8637,8 @@ namespace ScheMe_Data { this.columnFS.AllowDBNull = false; this.columnE.AllowDBNull = false; this.columnGA.AllowDBNull = false; - this.columnFAI_s.AllowDBNull = false; - this.columnFP_s.AllowDBNull = false; - this.columnFT_s.AllowDBNull = false; - this.columnFS_s.AllowDBNull = false; - this.columnE_s.AllowDBNull = false; - this.columnGA_s.AllowDBNull = false; + this.columnAltezza.AllowDBNull = false; + this.columnPeso.AllowDBNull = false; this.columnPerformance.MaxLength = 50; } @@ -8753,22 +8779,32 @@ namespace ScheMe_Data { private global::System.Data.DataColumn columnSJ; - private global::System.Data.DataColumn columnPU; - private global::System.Data.DataColumn columnFT; + private global::System.Data.DataColumn columnPU; + private global::System.Data.DataColumn columnTR; + private global::System.Data.DataColumn columnTR0; + + private global::System.Data.DataColumn columnTR1; + + private global::System.Data.DataColumn columnTR2; + private global::System.Data.DataColumn columnSU; private global::System.Data.DataColumn columnGA; + private global::System.Data.DataColumn columnAltezza; + + private global::System.Data.DataColumn columnPeso; + private global::System.Data.DataColumn columnSJ_s; - private global::System.Data.DataColumn columnPU_s; - private global::System.Data.DataColumn columnFT_s; + private global::System.Data.DataColumn columnPU_s; + private global::System.Data.DataColumn columnTR_s; private global::System.Data.DataColumn columnSU_s; @@ -8785,12 +8821,6 @@ namespace ScheMe_Data { private global::System.Data.DataColumn columnPerformance; - private global::System.Data.DataColumn columnTR0; - - private global::System.Data.DataColumn columnTR1; - - private global::System.Data.DataColumn columnTR2; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public VisValFunzGTDataTable() { @@ -8848,14 +8878,6 @@ namespace ScheMe_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn PUColumn { - get { - return this.columnPU; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn FTColumn { @@ -8864,6 +8886,14 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PUColumn { + get { + return this.columnPU; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn TRColumn { @@ -8872,6 +8902,30 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TR0Column { + get { + return this.columnTR0; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TR1Column { + get { + return this.columnTR1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TR2Column { + get { + return this.columnTR2; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn SUColumn { @@ -8888,6 +8942,22 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AltezzaColumn { + get { + return this.columnAltezza; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PesoColumn { + get { + return this.columnPeso; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn SJ_sColumn { @@ -8898,17 +8968,17 @@ namespace ScheMe_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn PU_sColumn { + public global::System.Data.DataColumn FT_sColumn { get { - return this.columnPU_s; + return this.columnFT_s; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn FT_sColumn { + public global::System.Data.DataColumn PU_sColumn { get { - return this.columnFT_s; + return this.columnPU_s; } } @@ -8976,30 +9046,6 @@ namespace ScheMe_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn TR0Column { - get { - return this.columnTR0; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn TR1Column { - get { - return this.columnTR1; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn TR2Column { - get { - return this.columnTR2; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -9041,14 +9087,19 @@ namespace ScheMe_Data { AnagPazientiRow parentAnagPazientiRowByFK_ValSvolAtt_AnagPazienti, System.DateTime DataVisita, int SJ, - int PU, int FT, + int PU, int TR, + int TR0, + int TR1, + int TR2, int SU, int GA, + double Altezza, + double Peso, int SJ_s, - int PU_s, int FT_s, + int PU_s, int TR_s, int SU_s, int GA_s, @@ -9056,23 +9107,25 @@ namespace ScheMe_Data { int Score, double ScorePerc, int Classe, - string Performance, - int TR0, - int TR1, - int TR2) { + string Performance) { VisValFunzGTRow rowVisValFunzGTRow = ((VisValFunzGTRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, DataVisita, SJ, - PU, FT, + PU, TR, + TR0, + TR1, + TR2, SU, GA, + Altezza, + Peso, SJ_s, - PU_s, FT_s, + PU_s, TR_s, SU_s, GA_s, @@ -9080,10 +9133,7 @@ namespace ScheMe_Data { Score, ScorePerc, Classe, - Performance, - TR0, - TR1, - TR2}; + Performance}; if ((parentAnagPazientiRowByFK_ValSvolAtt_AnagPazienti != null)) { columnValuesArray[0] = parentAnagPazientiRowByFK_ValSvolAtt_AnagPazienti[0]; } @@ -9120,14 +9170,19 @@ namespace ScheMe_Data { this.columnIdxPaziente = base.Columns["IdxPaziente"]; this.columnDataVisita = base.Columns["DataVisita"]; this.columnSJ = base.Columns["SJ"]; - this.columnPU = base.Columns["PU"]; this.columnFT = base.Columns["FT"]; + this.columnPU = base.Columns["PU"]; this.columnTR = base.Columns["TR"]; + this.columnTR0 = base.Columns["TR0"]; + this.columnTR1 = base.Columns["TR1"]; + this.columnTR2 = base.Columns["TR2"]; this.columnSU = base.Columns["SU"]; this.columnGA = base.Columns["GA"]; + this.columnAltezza = base.Columns["Altezza"]; + this.columnPeso = base.Columns["Peso"]; this.columnSJ_s = base.Columns["SJ_s"]; - this.columnPU_s = base.Columns["PU_s"]; this.columnFT_s = base.Columns["FT_s"]; + this.columnPU_s = base.Columns["PU_s"]; this.columnTR_s = base.Columns["TR_s"]; this.columnSU_s = base.Columns["SU_s"]; this.columnGA_s = base.Columns["GA_s"]; @@ -9136,9 +9191,6 @@ namespace ScheMe_Data { this.columnScorePerc = base.Columns["ScorePerc"]; this.columnClasse = base.Columns["Classe"]; this.columnPerformance = base.Columns["Performance"]; - this.columnTR0 = base.Columns["TR0"]; - this.columnTR1 = base.Columns["TR1"]; - this.columnTR2 = base.Columns["TR2"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -9150,22 +9202,32 @@ namespace ScheMe_Data { base.Columns.Add(this.columnDataVisita); this.columnSJ = new global::System.Data.DataColumn("SJ", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnSJ); - this.columnPU = new global::System.Data.DataColumn("PU", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnPU); this.columnFT = new global::System.Data.DataColumn("FT", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnFT); + this.columnPU = new global::System.Data.DataColumn("PU", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPU); this.columnTR = new global::System.Data.DataColumn("TR", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTR); + this.columnTR0 = new global::System.Data.DataColumn("TR0", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTR0); + this.columnTR1 = new global::System.Data.DataColumn("TR1", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTR1); + this.columnTR2 = new global::System.Data.DataColumn("TR2", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTR2); this.columnSU = new global::System.Data.DataColumn("SU", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnSU); this.columnGA = new global::System.Data.DataColumn("GA", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnGA); + this.columnAltezza = new global::System.Data.DataColumn("Altezza", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAltezza); + this.columnPeso = new global::System.Data.DataColumn("Peso", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPeso); this.columnSJ_s = new global::System.Data.DataColumn("SJ_s", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnSJ_s); - this.columnPU_s = new global::System.Data.DataColumn("PU_s", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnPU_s); this.columnFT_s = new global::System.Data.DataColumn("FT_s", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnFT_s); + this.columnPU_s = new global::System.Data.DataColumn("PU_s", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPU_s); this.columnTR_s = new global::System.Data.DataColumn("TR_s", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTR_s); this.columnSU_s = new global::System.Data.DataColumn("SU_s", typeof(int), null, global::System.Data.MappingType.Element); @@ -9182,26 +9244,22 @@ namespace ScheMe_Data { base.Columns.Add(this.columnClasse); this.columnPerformance = new global::System.Data.DataColumn("Performance", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnPerformance); - this.columnTR0 = new global::System.Data.DataColumn("TR0", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTR0); - this.columnTR1 = new global::System.Data.DataColumn("TR1", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTR1); - this.columnTR2 = new global::System.Data.DataColumn("TR2", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTR2); 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.columnSJ.AllowDBNull = false; - this.columnPU.AllowDBNull = false; this.columnFT.AllowDBNull = false; - this.columnSU.AllowDBNull = false; - this.columnGA.AllowDBNull = false; - this.columnPerformance.MaxLength = 50; + this.columnPU.AllowDBNull = false; this.columnTR0.AllowDBNull = false; this.columnTR1.AllowDBNull = false; this.columnTR2.AllowDBNull = false; + this.columnSU.AllowDBNull = false; + this.columnGA.AllowDBNull = false; + this.columnAltezza.AllowDBNull = false; + this.columnPeso.AllowDBNull = false; + this.columnPerformance.MaxLength = 50; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -16557,11 +16615,38 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Altezza { + get { + return ((double)(this[this.tableVisValFunz.AltezzaColumn])); + } + set { + this[this.tableVisValFunz.AltezzaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Peso { + get { + return ((double)(this[this.tableVisValFunz.PesoColumn])); + } + set { + this[this.tableVisValFunz.PesoColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int FAI_s { get { - return ((int)(this[this.tableVisValFunz.FAI_sColumn])); + try { + return ((int)(this[this.tableVisValFunz.FAI_sColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FAI_s\' in table \'VisValFunz\' is DBNull.", e); + } } set { this[this.tableVisValFunz.FAI_sColumn] = value; @@ -16572,7 +16657,12 @@ namespace ScheMe_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int FP_s { get { - return ((int)(this[this.tableVisValFunz.FP_sColumn])); + try { + return ((int)(this[this.tableVisValFunz.FP_sColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FP_s\' in table \'VisValFunz\' is DBNull.", e); + } } set { this[this.tableVisValFunz.FP_sColumn] = value; @@ -16583,7 +16673,12 @@ namespace ScheMe_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int FT_s { get { - return ((int)(this[this.tableVisValFunz.FT_sColumn])); + try { + return ((int)(this[this.tableVisValFunz.FT_sColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FT_s\' in table \'VisValFunz\' is DBNull.", e); + } } set { this[this.tableVisValFunz.FT_sColumn] = value; @@ -16594,7 +16689,12 @@ namespace ScheMe_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int FS_s { get { - return ((int)(this[this.tableVisValFunz.FS_sColumn])); + try { + return ((int)(this[this.tableVisValFunz.FS_sColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FS_s\' in table \'VisValFunz\' is DBNull.", e); + } } set { this[this.tableVisValFunz.FS_sColumn] = value; @@ -16605,7 +16705,12 @@ namespace ScheMe_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int E_s { get { - return ((int)(this[this.tableVisValFunz.E_sColumn])); + try { + return ((int)(this[this.tableVisValFunz.E_sColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'E_s\' in table \'VisValFunz\' is DBNull.", e); + } } set { this[this.tableVisValFunz.E_sColumn] = value; @@ -16616,7 +16721,12 @@ namespace ScheMe_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int GA_s { get { - return ((int)(this[this.tableVisValFunz.GA_sColumn])); + try { + return ((int)(this[this.tableVisValFunz.GA_sColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'GA_s\' in table \'VisValFunz\' is DBNull.", e); + } } set { this[this.tableVisValFunz.GA_sColumn] = value; @@ -16714,6 +16824,78 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFAI_sNull() { + return this.IsNull(this.tableVisValFunz.FAI_sColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFAI_sNull() { + this[this.tableVisValFunz.FAI_sColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFP_sNull() { + return this.IsNull(this.tableVisValFunz.FP_sColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFP_sNull() { + this[this.tableVisValFunz.FP_sColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFT_sNull() { + return this.IsNull(this.tableVisValFunz.FT_sColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFT_sNull() { + this[this.tableVisValFunz.FT_sColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFS_sNull() { + return this.IsNull(this.tableVisValFunz.FS_sColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFS_sNull() { + this[this.tableVisValFunz.FS_sColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsE_sNull() { + return this.IsNull(this.tableVisValFunz.E_sColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetE_sNull() { + this[this.tableVisValFunz.E_sColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsGA_sNull() { + return this.IsNull(this.tableVisValFunz.GA_sColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetGA_sNull() { + this[this.tableVisValFunz.GA_sColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsPenaltyNull() { @@ -16822,17 +17004,6 @@ namespace ScheMe_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int PU { - get { - return ((int)(this[this.tableVisValFunzGT.PUColumn])); - } - set { - this[this.tableVisValFunzGT.PUColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int FT { @@ -16844,6 +17015,17 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PU { + get { + return ((int)(this[this.tableVisValFunzGT.PUColumn])); + } + set { + this[this.tableVisValFunzGT.PUColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int TR { @@ -16860,6 +17042,39 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TR0 { + get { + return ((int)(this[this.tableVisValFunzGT.TR0Column])); + } + set { + this[this.tableVisValFunzGT.TR0Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TR1 { + get { + return ((int)(this[this.tableVisValFunzGT.TR1Column])); + } + set { + this[this.tableVisValFunzGT.TR1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TR2 { + get { + return ((int)(this[this.tableVisValFunzGT.TR2Column])); + } + set { + this[this.tableVisValFunzGT.TR2Column] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int SU { @@ -16882,6 +17097,28 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Altezza { + get { + return ((double)(this[this.tableVisValFunzGT.AltezzaColumn])); + } + set { + this[this.tableVisValFunzGT.AltezzaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Peso { + get { + return ((double)(this[this.tableVisValFunzGT.PesoColumn])); + } + set { + this[this.tableVisValFunzGT.PesoColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int SJ_s { @@ -16898,22 +17135,6 @@ namespace ScheMe_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int PU_s { - get { - try { - return ((int)(this[this.tableVisValFunzGT.PU_sColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PU_s\' in table \'VisValFunzGT\' is DBNull.", e); - } - } - set { - this[this.tableVisValFunzGT.PU_sColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int FT_s { @@ -16930,6 +17151,22 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PU_s { + get { + try { + return ((int)(this[this.tableVisValFunzGT.PU_sColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PU_s\' in table \'VisValFunzGT\' is DBNull.", e); + } + } + set { + this[this.tableVisValFunzGT.PU_sColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int TR_s { @@ -17058,39 +17295,6 @@ namespace ScheMe_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int TR0 { - get { - return ((int)(this[this.tableVisValFunzGT.TR0Column])); - } - set { - this[this.tableVisValFunzGT.TR0Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int TR1 { - get { - return ((int)(this[this.tableVisValFunzGT.TR1Column])); - } - set { - this[this.tableVisValFunzGT.TR1Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int TR2 { - get { - return ((int)(this[this.tableVisValFunzGT.TR2Column])); - } - set { - this[this.tableVisValFunzGT.TR2Column] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public AnagPazientiRow AnagPazientiRow { @@ -17126,18 +17330,6 @@ namespace ScheMe_Data { this[this.tableVisValFunzGT.SJ_sColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsPU_sNull() { - return this.IsNull(this.tableVisValFunzGT.PU_sColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetPU_sNull() { - this[this.tableVisValFunzGT.PU_sColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsFT_sNull() { @@ -17150,6 +17342,18 @@ namespace ScheMe_Data { this[this.tableVisValFunzGT.FT_sColumn] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPU_sNull() { + return this.IsNull(this.tableVisValFunzGT.PU_sColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPU_sNull() { + this[this.tableVisValFunzGT.PU_sColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsTR_sNull() { @@ -24606,24 +24810,26 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat tableMapping.DataSetTable = "VisValFunz"; tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente"); tableMapping.ColumnMappings.Add("DataVisita", "DataVisita"); - tableMapping.ColumnMappings.Add("FAI", "FAI"); - tableMapping.ColumnMappings.Add("FP", "FP"); - tableMapping.ColumnMappings.Add("FT", "FT"); - tableMapping.ColumnMappings.Add("FS", "FS"); - tableMapping.ColumnMappings.Add("E", "E"); - tableMapping.ColumnMappings.Add("GA", "GA"); - tableMapping.ColumnMappings.Add("FAI_s", "FAI_s"); - tableMapping.ColumnMappings.Add("FP_s", "FP_s"); - tableMapping.ColumnMappings.Add("FT_s", "FT_s"); - tableMapping.ColumnMappings.Add("FS_s", "FS_s"); - tableMapping.ColumnMappings.Add("E_s", "E_s"); - tableMapping.ColumnMappings.Add("GA_s", "GA_s"); tableMapping.ColumnMappings.Add("FAI_p", "FAI_s"); tableMapping.ColumnMappings.Add("FP_p", "FP_s"); tableMapping.ColumnMappings.Add("FT_p", "FT_s"); tableMapping.ColumnMappings.Add("FS_p", "FS_s"); tableMapping.ColumnMappings.Add("E_p", "E_s"); tableMapping.ColumnMappings.Add("GA_p", "GA_s"); + tableMapping.ColumnMappings.Add("FAI", "FAI"); + tableMapping.ColumnMappings.Add("FP", "FP"); + tableMapping.ColumnMappings.Add("FT", "FT"); + tableMapping.ColumnMappings.Add("FS", "FS"); + tableMapping.ColumnMappings.Add("E", "E"); + tableMapping.ColumnMappings.Add("GA", "GA"); + tableMapping.ColumnMappings.Add("Altezza", "Altezza"); + tableMapping.ColumnMappings.Add("Peso", "Peso"); + tableMapping.ColumnMappings.Add("FAI_s", "FAI_s"); + tableMapping.ColumnMappings.Add("FP_s", "FP_s"); + tableMapping.ColumnMappings.Add("FT_s", "FT_s"); + tableMapping.ColumnMappings.Add("FS_s", "FS_s"); + tableMapping.ColumnMappings.Add("E_s", "E_s"); + tableMapping.ColumnMappings.Add("GA_s", "GA_s"); tableMapping.ColumnMappings.Add("Penalty", "Penalty"); tableMapping.ColumnMappings.Add("Score", "Score"); tableMapping.ColumnMappings.Add("ScorePerc", "ScorePerc"); @@ -24645,9 +24851,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat 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, FAI, FP, FT, FS, E, GA, FAI_p, FP_p, FT_p," + - " FS_p, E_p, GA_p, Penalty, Score, ScorePerc, Classe, Performance\r\nFROM " + - " v_VisValFunzAnz_l"; + this._commandCollection[0].CommandText = "SELECT * FROM v_VisValFunzAnz_l"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -24676,6 +24880,8 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FS", 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("@E", 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("@GA", 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("@Altezza", 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("@Peso", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; this._commandCollection[4].CommandText = "dbo.stp_VVFAnz_UpdateQuery"; @@ -24687,6 +24893,8 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FS", 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("@E", 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("@GA", 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("@Altezza", 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("@Peso", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -24775,7 +24983,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat [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 FAI, global::System.Nullable FP, global::System.Nullable FT, global::System.Nullable FS, global::System.Nullable E, global::System.Nullable GA) { + public virtual int InsertQuery(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable FAI, global::System.Nullable FP, global::System.Nullable FT, global::System.Nullable FS, global::System.Nullable E, global::System.Nullable GA, global::System.Nullable Altezza, global::System.Nullable Peso) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; if ((IdxPaziente.HasValue == true)) { command.Parameters[1].Value = ((int)(IdxPaziente.Value)); @@ -24825,6 +25033,18 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat else { command.Parameters[8].Value = global::System.DBNull.Value; } + if ((Altezza.HasValue == true)) { + command.Parameters[9].Value = ((int)(Altezza.Value)); + } + else { + command.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Peso.HasValue == true)) { + command.Parameters[10].Value = ((int)(Peso.Value)); + } + else { + command.Parameters[10].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)) { @@ -24845,7 +25065,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat [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 UpdateQuery(global::System.Nullable FAI, global::System.Nullable FP, global::System.Nullable FT, global::System.Nullable FS, global::System.Nullable E, global::System.Nullable GA, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { + public virtual int UpdateQuery(global::System.Nullable FAI, global::System.Nullable FP, global::System.Nullable FT, global::System.Nullable FS, global::System.Nullable E, global::System.Nullable GA, global::System.Nullable Altezza, global::System.Nullable Peso, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((FAI.HasValue == true)) { command.Parameters[1].Value = ((int)(FAI.Value)); @@ -24883,18 +25103,30 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat else { command.Parameters[6].Value = global::System.DBNull.Value; } - if ((Original_DataVisita.HasValue == true)) { - command.Parameters[7].Value = ((System.DateTime)(Original_DataVisita.Value)); + if ((Altezza.HasValue == true)) { + command.Parameters[7].Value = ((int)(Altezza.Value)); } else { command.Parameters[7].Value = global::System.DBNull.Value; } - if ((Original_IdxPaziente.HasValue == true)) { - command.Parameters[8].Value = ((int)(Original_IdxPaziente.Value)); + if ((Peso.HasValue == true)) { + command.Parameters[8].Value = ((int)(Peso.Value)); } else { command.Parameters[8].Value = global::System.DBNull.Value; } + if ((Original_DataVisita.HasValue == true)) { + command.Parameters[9].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + command.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[10].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[10].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)) { @@ -25037,14 +25269,19 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente"); tableMapping.ColumnMappings.Add("DataVisita", "DataVisita"); tableMapping.ColumnMappings.Add("SJ", "SJ"); - tableMapping.ColumnMappings.Add("PU", "PU"); tableMapping.ColumnMappings.Add("FT", "FT"); + tableMapping.ColumnMappings.Add("PU", "PU"); tableMapping.ColumnMappings.Add("TR", "TR"); + tableMapping.ColumnMappings.Add("TR0", "TR0"); + tableMapping.ColumnMappings.Add("TR1", "TR1"); + tableMapping.ColumnMappings.Add("TR2", "TR2"); tableMapping.ColumnMappings.Add("SU", "SU"); tableMapping.ColumnMappings.Add("GA", "GA"); + tableMapping.ColumnMappings.Add("Altezza", "Altezza"); + tableMapping.ColumnMappings.Add("Peso", "Peso"); tableMapping.ColumnMappings.Add("SJ_s", "SJ_s"); - tableMapping.ColumnMappings.Add("PU_s", "PU_s"); tableMapping.ColumnMappings.Add("FT_s", "FT_s"); + tableMapping.ColumnMappings.Add("PU_s", "PU_s"); tableMapping.ColumnMappings.Add("TR_s", "TR_s"); tableMapping.ColumnMappings.Add("SU_s", "SU_s"); tableMapping.ColumnMappings.Add("GA_s", "GA_s"); @@ -25053,9 +25290,6 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat tableMapping.ColumnMappings.Add("ScorePerc", "ScorePerc"); tableMapping.ColumnMappings.Add("Classe", "Classe"); tableMapping.ColumnMappings.Add("Performance", "Performance"); - tableMapping.ColumnMappings.Add("TR0", "TR0"); - tableMapping.ColumnMappings.Add("TR1", "TR1"); - tableMapping.ColumnMappings.Add("TR2", "TR2"); this._adapter.TableMappings.Add(tableMapping); } @@ -25103,6 +25337,8 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TR2", 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("@SU", 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("@GA", 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("@Altezza", 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("@Peso", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; this._commandCollection[4].CommandText = "dbo.stp_VVFGT_UpdateQuery"; @@ -25116,6 +25352,8 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TR2", 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("@SU", 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("@GA", 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("@Altezza", 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("@Peso", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -25204,7 +25442,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat [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 SJ, global::System.Nullable FT, global::System.Nullable PU, global::System.Nullable TR0, global::System.Nullable TR1, global::System.Nullable TR2, global::System.Nullable SU, global::System.Nullable GA) { + public virtual int InsertQuery(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable SJ, global::System.Nullable FT, global::System.Nullable PU, global::System.Nullable TR0, global::System.Nullable TR1, global::System.Nullable TR2, global::System.Nullable SU, global::System.Nullable GA, global::System.Nullable Altezza, global::System.Nullable Peso) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; if ((IdxPaziente.HasValue == true)) { command.Parameters[1].Value = ((int)(IdxPaziente.Value)); @@ -25266,6 +25504,18 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat else { command.Parameters[10].Value = global::System.DBNull.Value; } + if ((Altezza.HasValue == true)) { + command.Parameters[11].Value = ((int)(Altezza.Value)); + } + else { + command.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Peso.HasValue == true)) { + command.Parameters[12].Value = ((int)(Peso.Value)); + } + else { + command.Parameters[12].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)) { @@ -25286,7 +25536,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat [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 UpdateQuery(global::System.Nullable SJ, global::System.Nullable FT, global::System.Nullable PU, global::System.Nullable TR0, global::System.Nullable TR1, global::System.Nullable TR2, global::System.Nullable SU, global::System.Nullable GA, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { + public virtual int UpdateQuery(global::System.Nullable SJ, global::System.Nullable FT, global::System.Nullable PU, global::System.Nullable TR0, global::System.Nullable TR1, global::System.Nullable TR2, global::System.Nullable SU, global::System.Nullable GA, global::System.Nullable Altezza, global::System.Nullable Peso, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((SJ.HasValue == true)) { command.Parameters[1].Value = ((int)(SJ.Value)); @@ -25336,18 +25586,30 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat else { command.Parameters[8].Value = global::System.DBNull.Value; } - if ((Original_DataVisita.HasValue == true)) { - command.Parameters[9].Value = ((System.DateTime)(Original_DataVisita.Value)); + if ((Altezza.HasValue == true)) { + command.Parameters[9].Value = ((int)(Altezza.Value)); } else { command.Parameters[9].Value = global::System.DBNull.Value; } - if ((Original_IdxPaziente.HasValue == true)) { - command.Parameters[10].Value = ((int)(Original_IdxPaziente.Value)); + if ((Peso.HasValue == true)) { + command.Parameters[10].Value = ((int)(Peso.Value)); } else { command.Parameters[10].Value = global::System.DBNull.Value; } + if ((Original_DataVisita.HasValue == true)) { + command.Parameters[11].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + command.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[12].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[12].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)) { diff --git a/ScheMe_Data/DS_Applicazione.xsd b/ScheMe_Data/DS_Applicazione.xsd index 5b98c9d..05da719 100644 --- a/ScheMe_Data/DS_Applicazione.xsd +++ b/ScheMe_Data/DS_Applicazione.xsd @@ -1564,11 +1564,10 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat - + - - SELECT IdxPaziente, DataVisita, FAI, FP, FT, FS, E, GA, FAI_p, FP_p, FT_p, FS_p, E_p, GA_p, Penalty, Score, ScorePerc, Classe, Performance -FROM v_VisValFunzAnz_l + + SELECT * FROM v_VisValFunzAnz_l @@ -1577,24 +1576,26 @@ FROM v_VisValFunzAnz_l - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -1626,9 +1627,9 @@ FROM v_VisValFunzAnz_l - + - + dbo.stp_VVFAnz_InsertQuery @@ -1640,13 +1641,15 @@ FROM v_VisValFunzAnz_l + + - + - + dbo.stp_VVFAnz_UpdateQuery @@ -1656,6 +1659,8 @@ FROM v_VisValFunzAnz_l + + @@ -1679,14 +1684,19 @@ FROM v_VisValFunzAnz_l - + + + + + + - + @@ -1695,9 +1705,6 @@ FROM v_VisValFunzAnz_l - - - @@ -1740,6 +1747,8 @@ FROM v_VisValFunzAnz_l + + @@ -1758,6 +1767,8 @@ FROM v_VisValFunzAnz_l + + @@ -2580,12 +2591,14 @@ FROM v_VisValFunzAnz_l - - - - - - + + + + + + + + @@ -2606,14 +2619,19 @@ FROM v_VisValFunzAnz_l - + + + + + + - + @@ -2628,9 +2646,6 @@ FROM v_VisValFunzAnz_l - - -