diff --git a/ScheMe_Data/DS_Applicazione.Designer.cs b/ScheMe_Data/DS_Applicazione.Designer.cs index 3f4e901..51eac52 100644 --- a/ScheMe_Data/DS_Applicazione.Designer.cs +++ b/ScheMe_Data/DS_Applicazione.Designer.cs @@ -58,6 +58,8 @@ namespace ScheMe_Data { private VisPatoPazDataTable tableVisPatoPaz; + private VisVMDDataTable tableVisVMD; + private global::System.Data.DataRelation relationFK_VisClinGen_AnagPazienti; private global::System.Data.DataRelation relationFK_VisAnamCli_AnagPazienti; @@ -159,6 +161,9 @@ namespace ScheMe_Data { if ((ds.Tables["VisPatoPaz"] != null)) { base.Tables.Add(new VisPatoPazDataTable(ds.Tables["VisPatoPaz"])); } + if ((ds.Tables["VisVMD"] != null)) { + base.Tables.Add(new VisVMDDataTable(ds.Tables["VisVMD"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -347,6 +352,16 @@ namespace ScheMe_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public VisVMDDataTable VisVMD { + get { + return this.tableVisVMD; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -465,6 +480,9 @@ namespace ScheMe_Data { if ((ds.Tables["VisPatoPaz"] != null)) { base.Tables.Add(new VisPatoPazDataTable(ds.Tables["VisPatoPaz"])); } + if ((ds.Tables["VisVMD"] != null)) { + base.Tables.Add(new VisVMDDataTable(ds.Tables["VisVMD"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -600,6 +618,12 @@ namespace ScheMe_Data { this.tableVisPatoPaz.InitVars(); } } + this.tableVisVMD = ((VisVMDDataTable)(base.Tables["VisVMD"])); + if ((initTable == true)) { + if ((this.tableVisVMD != null)) { + this.tableVisVMD.InitVars(); + } + } this.relationFK_VisClinGen_AnagPazienti = this.Relations["FK_VisClinGen_AnagPazienti"]; this.relationFK_VisAnamCli_AnagPazienti = this.Relations["FK_VisAnamCli_AnagPazienti"]; this.relationFK_VisCardioPol_AnagPazienti = this.Relations["FK_VisCardioPol_AnagPazienti"]; @@ -655,6 +679,8 @@ namespace ScheMe_Data { base.Tables.Add(this.tablePatologie); this.tableVisPatoPaz = new VisPatoPazDataTable(); base.Tables.Add(this.tableVisPatoPaz); + this.tableVisVMD = new VisVMDDataTable(); + base.Tables.Add(this.tableVisVMD); 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); @@ -803,6 +829,12 @@ namespace ScheMe_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private bool ShouldSerializeVisVMD() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -909,6 +941,9 @@ namespace ScheMe_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] public delegate void VisPatoPazRowChangeEventHandler(object sender, VisPatoPazRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public delegate void VisVMDRowChangeEventHandler(object sender, VisVMDRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -11677,6 +11712,617 @@ namespace ScheMe_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class VisVMDDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxPaziente; + + private global::System.Data.DataColumn columnDataVisita; + + private global::System.Data.DataColumn columnGA; + + private global::System.Data.DataColumn columnFAI; + + private global::System.Data.DataColumn columnE; + + private global::System.Data.DataColumn columnF; + + private global::System.Data.DataColumn columnDIET; + + private global::System.Data.DataColumn columnAF; + + private global::System.Data.DataColumn columnCSA; + + private global::System.Data.DataColumn columnCONS; + + private global::System.Data.DataColumn columnAltezza; + + private global::System.Data.DataColumn columnPeso; + + private global::System.Data.DataColumn columnGA_p; + + private global::System.Data.DataColumn columnFAI_p; + + private global::System.Data.DataColumn columnE_p; + + private global::System.Data.DataColumn columnF_p; + + private global::System.Data.DataColumn columnDIET_p; + + private global::System.Data.DataColumn columnAF_p; + + private global::System.Data.DataColumn columnPenalty; + + private global::System.Data.DataColumn columnScore; + + private global::System.Data.DataColumn columnScorePerc; + + private global::System.Data.DataColumn columnClasse; + + private global::System.Data.DataColumn columnPerformance; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public VisVMDDataTable() { + this.TableName = "VisVMD"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal VisVMDDataTable(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", "15.0.0.0")] + protected VisVMDDataTable(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", "15.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", "15.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", "15.0.0.0")] + public global::System.Data.DataColumn GAColumn { + get { + return this.columnGA; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn FAIColumn { + get { + return this.columnFAI; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn EColumn { + get { + return this.columnE; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn FColumn { + get { + return this.columnF; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn DIETColumn { + get { + return this.columnDIET; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn AFColumn { + get { + return this.columnAF; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn CSAColumn { + get { + return this.columnCSA; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn CONSColumn { + get { + return this.columnCONS; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.0.0.0")] + public global::System.Data.DataColumn GA_pColumn { + get { + return this.columnGA_p; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn FAI_pColumn { + get { + return this.columnFAI_p; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn E_pColumn { + get { + return this.columnE_p; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn F_pColumn { + get { + return this.columnF_p; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn DIET_pColumn { + get { + return this.columnDIET_p; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn AF_pColumn { + get { + return this.columnAF_p; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn PenaltyColumn { + get { + return this.columnPenalty; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn ScoreColumn { + get { + return this.columnScore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn ScorePercColumn { + get { + return this.columnScorePerc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn ClasseColumn { + get { + return this.columnClasse; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn PerformanceColumn { + get { + return this.columnPerformance; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")] + public VisVMDRow this[int index] { + get { + return ((VisVMDRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event VisVMDRowChangeEventHandler VisVMDRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event VisVMDRowChangeEventHandler VisVMDRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event VisVMDRowChangeEventHandler VisVMDRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event VisVMDRowChangeEventHandler VisVMDRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void AddVisVMDRow(VisVMDRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public VisVMDRow AddVisVMDRow( + int IdxPaziente, + System.DateTime DataVisita, + int GA, + int FAI, + int E, + int F, + int DIET, + int AF, + int CSA, + int CONS, + double Altezza, + double Peso, + int GA_p, + int FAI_p, + int E_p, + int F_p, + int DIET_p, + int AF_p, + int Penalty, + int Score, + double ScorePerc, + int Classe, + string Performance) { + VisVMDRow rowVisVMDRow = ((VisVMDRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxPaziente, + DataVisita, + GA, + FAI, + E, + F, + DIET, + AF, + CSA, + CONS, + Altezza, + Peso, + GA_p, + FAI_p, + E_p, + F_p, + DIET_p, + AF_p, + Penalty, + Score, + ScorePerc, + Classe, + Performance}; + rowVisVMDRow.ItemArray = columnValuesArray; + this.Rows.Add(rowVisVMDRow); + return rowVisVMDRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public VisVMDRow FindByIdxPazienteDataVisita(int IdxPaziente, System.DateTime DataVisita) { + return ((VisVMDRow)(this.Rows.Find(new object[] { + IdxPaziente, + DataVisita}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public override global::System.Data.DataTable Clone() { + VisVMDDataTable cln = ((VisVMDDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new VisVMDDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal void InitVars() { + this.columnIdxPaziente = base.Columns["IdxPaziente"]; + this.columnDataVisita = base.Columns["DataVisita"]; + this.columnGA = base.Columns["GA"]; + this.columnFAI = base.Columns["FAI"]; + this.columnE = base.Columns["E"]; + this.columnF = base.Columns["F"]; + this.columnDIET = base.Columns["DIET"]; + this.columnAF = base.Columns["AF"]; + this.columnCSA = base.Columns["CSA"]; + this.columnCONS = base.Columns["CONS"]; + this.columnAltezza = base.Columns["Altezza"]; + this.columnPeso = base.Columns["Peso"]; + this.columnGA_p = base.Columns["GA_p"]; + this.columnFAI_p = base.Columns["FAI_p"]; + this.columnE_p = base.Columns["E_p"]; + this.columnF_p = base.Columns["F_p"]; + this.columnDIET_p = base.Columns["DIET_p"]; + this.columnAF_p = base.Columns["AF_p"]; + this.columnPenalty = base.Columns["Penalty"]; + this.columnScore = base.Columns["Score"]; + this.columnScorePerc = base.Columns["ScorePerc"]; + this.columnClasse = base.Columns["Classe"]; + this.columnPerformance = base.Columns["Performance"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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.columnGA = new global::System.Data.DataColumn("GA", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnGA); + this.columnFAI = new global::System.Data.DataColumn("FAI", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFAI); + this.columnE = new global::System.Data.DataColumn("E", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnE); + this.columnF = new global::System.Data.DataColumn("F", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnF); + this.columnDIET = new global::System.Data.DataColumn("DIET", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDIET); + this.columnAF = new global::System.Data.DataColumn("AF", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAF); + this.columnCSA = new global::System.Data.DataColumn("CSA", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCSA); + this.columnCONS = new global::System.Data.DataColumn("CONS", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCONS); + 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.columnGA_p = new global::System.Data.DataColumn("GA_p", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnGA_p); + this.columnFAI_p = new global::System.Data.DataColumn("FAI_p", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFAI_p); + this.columnE_p = new global::System.Data.DataColumn("E_p", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnE_p); + this.columnF_p = new global::System.Data.DataColumn("F_p", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnF_p); + this.columnDIET_p = new global::System.Data.DataColumn("DIET_p", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDIET_p); + this.columnAF_p = new global::System.Data.DataColumn("AF_p", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAF_p); + this.columnPenalty = new global::System.Data.DataColumn("Penalty", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPenalty); + this.columnScore = new global::System.Data.DataColumn("Score", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnScore); + this.columnScorePerc = new global::System.Data.DataColumn("ScorePerc", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnScorePerc); + this.columnClasse = new global::System.Data.DataColumn("Classe", typeof(int), null, global::System.Data.MappingType.Element); + 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.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.columnGA.AllowDBNull = false; + this.columnFAI.AllowDBNull = false; + this.columnE.AllowDBNull = false; + this.columnF.AllowDBNull = false; + this.columnDIET.AllowDBNull = false; + this.columnAF.AllowDBNull = false; + this.columnCSA.AllowDBNull = false; + this.columnCONS.AllowDBNull = false; + this.columnAltezza.AllowDBNull = false; + this.columnAltezza.ReadOnly = true; + this.columnPeso.AllowDBNull = false; + this.columnPeso.ReadOnly = true; + this.columnGA_p.ReadOnly = true; + this.columnFAI_p.ReadOnly = true; + this.columnE_p.ReadOnly = true; + this.columnF_p.AllowDBNull = false; + this.columnDIET_p.AllowDBNull = false; + this.columnAF_p.AllowDBNull = false; + this.columnPerformance.ReadOnly = true; + this.columnPerformance.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public VisVMDRow NewVisVMDRow() { + return ((VisVMDRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new VisVMDRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(VisVMDRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.VisVMDRowChanged != null)) { + this.VisVMDRowChanged(this, new VisVMDRowChangeEvent(((VisVMDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.VisVMDRowChanging != null)) { + this.VisVMDRowChanging(this, new VisVMDRowChangeEvent(((VisVMDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.VisVMDRowDeleted != null)) { + this.VisVMDRowDeleted(this, new VisVMDRowChangeEvent(((VisVMDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.VisVMDRowDeleting != null)) { + this.VisVMDRowDeleting(this, new VisVMDRowChangeEvent(((VisVMDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void RemoveVisVMDRow(VisVMDRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 = "VisVMDDataTable"; + 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. /// @@ -20750,6 +21396,410 @@ namespace ScheMe_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class VisVMDRow : global::System.Data.DataRow { + + private VisVMDDataTable tableVisVMD; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal VisVMDRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableVisVMD = ((VisVMDDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int IdxPaziente { + get { + return ((int)(this[this.tableVisVMD.IdxPazienteColumn])); + } + set { + this[this.tableVisVMD.IdxPazienteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public System.DateTime DataVisita { + get { + return ((global::System.DateTime)(this[this.tableVisVMD.DataVisitaColumn])); + } + set { + this[this.tableVisVMD.DataVisitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int GA { + get { + return ((int)(this[this.tableVisVMD.GAColumn])); + } + set { + this[this.tableVisVMD.GAColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int FAI { + get { + return ((int)(this[this.tableVisVMD.FAIColumn])); + } + set { + this[this.tableVisVMD.FAIColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int E { + get { + return ((int)(this[this.tableVisVMD.EColumn])); + } + set { + this[this.tableVisVMD.EColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int F { + get { + return ((int)(this[this.tableVisVMD.FColumn])); + } + set { + this[this.tableVisVMD.FColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int DIET { + get { + return ((int)(this[this.tableVisVMD.DIETColumn])); + } + set { + this[this.tableVisVMD.DIETColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int AF { + get { + return ((int)(this[this.tableVisVMD.AFColumn])); + } + set { + this[this.tableVisVMD.AFColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int CSA { + get { + return ((int)(this[this.tableVisVMD.CSAColumn])); + } + set { + this[this.tableVisVMD.CSAColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int CONS { + get { + return ((int)(this[this.tableVisVMD.CONSColumn])); + } + set { + this[this.tableVisVMD.CONSColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public double Altezza { + get { + return ((double)(this[this.tableVisVMD.AltezzaColumn])); + } + set { + this[this.tableVisVMD.AltezzaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public double Peso { + get { + return ((double)(this[this.tableVisVMD.PesoColumn])); + } + set { + this[this.tableVisVMD.PesoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int GA_p { + get { + try { + return ((int)(this[this.tableVisVMD.GA_pColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'GA_p\' nella tabella \'VisVMD\' è DBNull.", e); + } + } + set { + this[this.tableVisVMD.GA_pColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int FAI_p { + get { + try { + return ((int)(this[this.tableVisVMD.FAI_pColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'FAI_p\' nella tabella \'VisVMD\' è DBNull.", e); + } + } + set { + this[this.tableVisVMD.FAI_pColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int E_p { + get { + try { + return ((int)(this[this.tableVisVMD.E_pColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'E_p\' nella tabella \'VisVMD\' è DBNull.", e); + } + } + set { + this[this.tableVisVMD.E_pColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int F_p { + get { + return ((int)(this[this.tableVisVMD.F_pColumn])); + } + set { + this[this.tableVisVMD.F_pColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int DIET_p { + get { + return ((int)(this[this.tableVisVMD.DIET_pColumn])); + } + set { + this[this.tableVisVMD.DIET_pColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int AF_p { + get { + return ((int)(this[this.tableVisVMD.AF_pColumn])); + } + set { + this[this.tableVisVMD.AF_pColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int Penalty { + get { + try { + return ((int)(this[this.tableVisVMD.PenaltyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Penalty\' nella tabella \'VisVMD\' è DBNull.", e); + } + } + set { + this[this.tableVisVMD.PenaltyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int Score { + get { + try { + return ((int)(this[this.tableVisVMD.ScoreColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Score\' nella tabella \'VisVMD\' è DBNull.", e); + } + } + set { + this[this.tableVisVMD.ScoreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public double ScorePerc { + get { + try { + return ((double)(this[this.tableVisVMD.ScorePercColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ScorePerc\' nella tabella \'VisVMD\' è DBNull.", e); + } + } + set { + this[this.tableVisVMD.ScorePercColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int Classe { + get { + try { + return ((int)(this[this.tableVisVMD.ClasseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Classe\' nella tabella \'VisVMD\' è DBNull.", e); + } + } + set { + this[this.tableVisVMD.ClasseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string Performance { + get { + try { + return ((string)(this[this.tableVisVMD.PerformanceColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Performance\' nella tabella \'VisVMD\' è DBNull.", e); + } + } + set { + this[this.tableVisVMD.PerformanceColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsGA_pNull() { + return this.IsNull(this.tableVisVMD.GA_pColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetGA_pNull() { + this[this.tableVisVMD.GA_pColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsFAI_pNull() { + return this.IsNull(this.tableVisVMD.FAI_pColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetFAI_pNull() { + this[this.tableVisVMD.FAI_pColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsE_pNull() { + return this.IsNull(this.tableVisVMD.E_pColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetE_pNull() { + this[this.tableVisVMD.E_pColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsPenaltyNull() { + return this.IsNull(this.tableVisVMD.PenaltyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetPenaltyNull() { + this[this.tableVisVMD.PenaltyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsScoreNull() { + return this.IsNull(this.tableVisVMD.ScoreColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetScoreNull() { + this[this.tableVisVMD.ScoreColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsScorePercNull() { + return this.IsNull(this.tableVisVMD.ScorePercColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetScorePercNull() { + this[this.tableVisVMD.ScorePercColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsClasseNull() { + return this.IsNull(this.tableVisVMD.ClasseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetClasseNull() { + this[this.tableVisVMD.ClasseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsPerformanceNull() { + return this.IsNull(this.tableVisVMD.PerformanceColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetPerformanceNull() { + this[this.tableVisVMD.PerformanceColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -21327,6 +22377,40 @@ namespace ScheMe_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public class VisVMDRowChangeEvent : global::System.EventArgs { + + private VisVMDRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public VisVMDRowChangeEvent(VisVMDRow 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", "15.0.0.0")] + public VisVMDRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace ScheMe_Data.DS_ApplicazioneTableAdapters { @@ -31238,6 +32322,488 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog } } + /// + ///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 VisVMDTableAdapter : 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", "15.0.0.0")] + public VisVMDTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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", "15.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", "15.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", "15.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 = "VisVMD"; + tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente"); + tableMapping.ColumnMappings.Add("DataVisita", "DataVisita"); + tableMapping.ColumnMappings.Add("GA", "GA"); + tableMapping.ColumnMappings.Add("FAI", "FAI"); + tableMapping.ColumnMappings.Add("E", "E"); + tableMapping.ColumnMappings.Add("F", "F"); + tableMapping.ColumnMappings.Add("DIET", "DIET"); + tableMapping.ColumnMappings.Add("AF", "AF"); + tableMapping.ColumnMappings.Add("CSA", "CSA"); + tableMapping.ColumnMappings.Add("CONS", "CONS"); + tableMapping.ColumnMappings.Add("Altezza", "Altezza"); + tableMapping.ColumnMappings.Add("Peso", "Peso"); + tableMapping.ColumnMappings.Add("GA_p", "GA_p"); + tableMapping.ColumnMappings.Add("FAI_p", "FAI_p"); + tableMapping.ColumnMappings.Add("E_p", "E_p"); + tableMapping.ColumnMappings.Add("F_p", "F_p"); + tableMapping.ColumnMappings.Add("DIET_p", "DIET_p"); + tableMapping.ColumnMappings.Add("AF_p", "AF_p"); + tableMapping.ColumnMappings.Add("Penalty", "Penalty"); + tableMapping.ColumnMappings.Add("Score", "Score"); + tableMapping.ColumnMappings.Add("ScorePerc", "ScorePerc"); + tableMapping.ColumnMappings.Add("Classe", "Classe"); + tableMapping.ColumnMappings.Add("Performance", "Performance"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ScheMe_Data.Properties.Settings.Default.ScheMeConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 * FROM dbo.v_VisVMD_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; + this._commandCollection[1].CommandText = "dbo.stp_VVMD_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_VVMD_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_VVMD_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("@GA", 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("@FAI", 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("@F", 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("@DIET", 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("@AF", 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("@CSA", 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("@CONS", 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.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("@Peso", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_VVMD_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("@GA", 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("@FAI", 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("@F", 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("@DIET", 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("@AF", 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("@CSA", 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("@CONS", 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.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("@Peso", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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", "15.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.VisVMDDataTable 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", "15.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.VisVMDDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.VisVMDDataTable dataTable = new DS_Applicazione.VisVMDDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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.VisVMDDataTable 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.VisVMDDataTable dataTable = new DS_Applicazione.VisVMDDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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 GA, global::System.Nullable FAI, global::System.Nullable E, global::System.Nullable F, global::System.Nullable DIET, global::System.Nullable AF, global::System.Nullable CSA, global::System.Nullable CONS, 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)); + } + 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 ((GA.HasValue == true)) { + command.Parameters[3].Value = ((double)(GA.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((FAI.HasValue == true)) { + command.Parameters[4].Value = ((int)(FAI.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((E.HasValue == true)) { + command.Parameters[5].Value = ((int)(E.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((F.HasValue == true)) { + command.Parameters[6].Value = ((int)(F.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((DIET.HasValue == true)) { + command.Parameters[7].Value = ((int)(DIET.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((AF.HasValue == true)) { + command.Parameters[8].Value = ((int)(AF.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + if ((CSA.HasValue == true)) { + command.Parameters[9].Value = ((int)(CSA.Value)); + } + else { + command.Parameters[9].Value = global::System.DBNull.Value; + } + if ((CONS.HasValue == true)) { + command.Parameters[10].Value = ((int)(CONS.Value)); + } + else { + command.Parameters[10].Value = global::System.DBNull.Value; + } + if ((Altezza.HasValue == true)) { + command.Parameters[11].Value = ((double)(Altezza.Value)); + } + else { + command.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Peso.HasValue == true)) { + command.Parameters[12].Value = ((double)(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)) { + 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", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int UpdateQuery(global::System.Nullable GA, global::System.Nullable FAI, global::System.Nullable E, global::System.Nullable F, global::System.Nullable DIET, global::System.Nullable AF, global::System.Nullable CSA, global::System.Nullable CONS, 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 ((GA.HasValue == true)) { + command.Parameters[1].Value = ((double)(GA.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((FAI.HasValue == true)) { + command.Parameters[2].Value = ((int)(FAI.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((E.HasValue == true)) { + command.Parameters[3].Value = ((int)(E.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((F.HasValue == true)) { + command.Parameters[4].Value = ((int)(F.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((DIET.HasValue == true)) { + command.Parameters[5].Value = ((int)(DIET.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((AF.HasValue == true)) { + command.Parameters[6].Value = ((int)(AF.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((CSA.HasValue == true)) { + command.Parameters[7].Value = ((int)(CSA.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((CONS.HasValue == true)) { + command.Parameters[8].Value = ((int)(CONS.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Altezza.HasValue == true)) { + command.Parameters[9].Value = ((double)(Altezza.Value)); + } + else { + command.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Peso.HasValue == true)) { + command.Parameters[10].Value = ((double)(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)) { + 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 /// @@ -31501,15 +33067,6 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog allChangedRows.AddRange(updatedRows); } } - if ((this._pazienti2LabelsTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Pazienti2Labels.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._pazienti2LabelsTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._patologieTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Patologie.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -31519,6 +33076,15 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog allChangedRows.AddRange(updatedRows); } } + if ((this._pazienti2LabelsTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Pazienti2Labels.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._pazienti2LabelsTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._visRelazFinTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.VisRelazFin.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -31582,14 +33148,6 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog allAddedRows.AddRange(addedRows); } } - if ((this._pazienti2LabelsTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Pazienti2Labels.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._pazienti2LabelsTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._patologieTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Patologie.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -31598,6 +33156,14 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog allAddedRows.AddRange(addedRows); } } + if ((this._pazienti2LabelsTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Pazienti2Labels.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._pazienti2LabelsTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._visRelazFinTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.VisRelazFin.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -31688,14 +33254,6 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog allChangedRows.AddRange(deletedRows); } } - if ((this._patologieTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Patologie.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._patologieTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._pazienti2LabelsTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Pazienti2Labels.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -31704,6 +33262,14 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog allChangedRows.AddRange(deletedRows); } } + if ((this._patologieTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Patologie.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._patologieTableAdapter.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) diff --git a/ScheMe_Data/DS_Applicazione.xsd b/ScheMe_Data/DS_Applicazione.xsd index 72f5368..01b38c6 100644 --- a/ScheMe_Data/DS_Applicazione.xsd +++ b/ScheMe_Data/DS_Applicazione.xsd @@ -2202,6 +2202,113 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog + + + + + + SELECT * FROM dbo.v_VisVMD_l + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VVMD_DeleteQuery + + + + + + + + + + + + dbo.stp_VVMD_getByPaziente + + + + + + + + + + + + dbo.stp_VVMD_InsertQuery + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VVMD_UpdateQuery + + + + + + + + + + + + + + + + + + + + @@ -3207,6 +3314,41 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3287,6 +3429,11 @@ SELECT CodPatologia, Livello, DescrPatologia, BudgetSpesa, QuotaPIC FROM Patolog + + + + + diff --git a/ScheMe_Data/DS_Applicazione.xss b/ScheMe_Data/DS_Applicazione.xss index 2331bdb..f81a48b 100644 --- a/ScheMe_Data/DS_Applicazione.xss +++ b/ScheMe_Data/DS_Applicazione.xss @@ -4,28 +4,29 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + 680 @@ -37,7 +38,7 @@ - + 980 @@ -49,7 +50,7 @@ - + 842 @@ -61,7 +62,7 @@ - + 705 @@ -77,7 +78,7 @@ - + 747 @@ -89,7 +90,7 @@ - + 680 @@ -101,7 +102,7 @@ - + 980 @@ -121,7 +122,7 @@ - + 980 @@ -141,7 +142,7 @@ - + 713 @@ -157,7 +158,7 @@ - + 721 @@ -173,7 +174,7 @@ - + 729