diff --git a/ScheMe/AccettazioneEdit.aspx b/ScheMe/AccettazioneEdit.aspx index 4ede8d3..a07c2b6 100644 --- a/ScheMe/AccettazioneEdit.aspx +++ b/ScheMe/AccettazioneEdit.aspx @@ -27,22 +27,9 @@ -
  • - - -
  • -
  • - - -
  • - - -
    - +
    +
    -
    -
    - +
    +
    diff --git a/ScheMe/bin/ScheMe.dll b/ScheMe/bin/ScheMe.dll index 4e0de82..6c62e87 100644 Binary files a/ScheMe/bin/ScheMe.dll and b/ScheMe/bin/ScheMe.dll differ diff --git a/ScheMe/bin/ScheMe_Data.dll b/ScheMe/bin/ScheMe_Data.dll index a7a5dd7..c41bd90 100644 Binary files a/ScheMe/bin/ScheMe_Data.dll and b/ScheMe/bin/ScheMe_Data.dll differ diff --git a/ScheMe_Data/DS_Applicazione.Designer.cs b/ScheMe_Data/DS_Applicazione.Designer.cs index 92eecb6..806b5c5 100644 --- a/ScheMe_Data/DS_Applicazione.Designer.cs +++ b/ScheMe_Data/DS_Applicazione.Designer.cs @@ -711,6 +711,10 @@ namespace ScheMe_Data { private global::System.Data.DataColumn columnNote; + private global::System.Data.DataColumn columnAltezza; + + private global::System.Data.DataColumn columnPeso; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public AnagPazientiDataTable() { @@ -848,6 +852,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")] [global::System.ComponentModel.Browsable(false)] @@ -885,7 +905,7 @@ namespace ScheMe_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public AnagPazientiRow AddAnagPazientiRow(string Gruppo, string Cognome, string Nome, System.DateTime DataNasc, string LuogoNascita, string Sesso, string CodF, string Indirizzo, double Eta, string RecTel, string Medico, string Note) { + public AnagPazientiRow AddAnagPazientiRow(string Gruppo, string Cognome, string Nome, System.DateTime DataNasc, string LuogoNascita, string Sesso, string CodF, string Indirizzo, double Eta, string RecTel, string Medico, string Note, double Altezza, double Peso) { AnagPazientiRow rowAnagPazientiRow = ((AnagPazientiRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -900,7 +920,9 @@ namespace ScheMe_Data { Eta, RecTel, Medico, - Note}; + Note, + Altezza, + Peso}; rowAnagPazientiRow.ItemArray = columnValuesArray; this.Rows.Add(rowAnagPazientiRow); return rowAnagPazientiRow; @@ -943,6 +965,8 @@ namespace ScheMe_Data { this.columnRecTel = base.Columns["RecTel"]; this.columnMedico = base.Columns["Medico"]; this.columnNote = base.Columns["Note"]; + this.columnAltezza = base.Columns["Altezza"]; + this.columnPeso = base.Columns["Peso"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -974,6 +998,10 @@ namespace ScheMe_Data { base.Columns.Add(this.columnMedico); this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNote); + 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.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnIdxPaziente}, true)); this.columnIdxPaziente.AutoIncrement = true; @@ -1004,6 +1032,8 @@ namespace ScheMe_Data { this.columnMedico.MaxLength = 50; this.columnNote.AllowDBNull = false; this.columnNote.MaxLength = 500; + this.columnAltezza.AllowDBNull = false; + this.columnPeso.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -8830,6 +8860,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.tableAnagPazienti.AltezzaColumn])); + } + set { + this[this.tableAnagPazienti.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.tableAnagPazienti.PesoColumn])); + } + set { + this[this.tableAnagPazienti.PesoColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsEtaNull() { @@ -16594,10 +16646,12 @@ namespace ScheMe_Data.DS_ApplicazioneTableAdapters { tableMapping.ColumnMappings.Add("RecTel", "RecTel"); tableMapping.ColumnMappings.Add("Medico", "Medico"); tableMapping.ColumnMappings.Add("Note", "Note"); + tableMapping.ColumnMappings.Add("Altezza", "Altezza"); + tableMapping.ColumnMappings.Add("Peso", "Peso"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [AnagPazienti] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Gruppo] = @Original_Gruppo) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([LuogoNascita] = @Original_LuogoNascita) AND ([Sesso] = @Original_Sesso) AND ([CodF] = @Original_CodF) AND ([Indirizzo] = @Original_Indirizzo) AND ((@IsNull_Eta = 1 AND [Eta] IS NULL) OR ([Eta] = @Original_Eta)) AND ([RecTel] = @Original_RecTel) AND ([Medico] = @Original_Medico) AND ([Note] = @Original_Note))"; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [AnagPazienti] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Gruppo] = @Original_Gruppo) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([LuogoNascita] = @Original_LuogoNascita) AND ([Sesso] = @Original_Sesso) AND ([Altezza] = @Original_Altezza) AND ([Peso] = @Original_Peso) AND ([CodF] = @Original_CodF) AND ([Indirizzo] = @Original_Indirizzo) AND ((@IsNull_Eta = 1 AND [Eta] IS NULL) OR ([Eta] = @Original_Eta)) AND ([RecTel] = @Original_RecTel) AND ([Medico] = @Original_Medico) AND ([Note] = @Original_Note))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -16606,6 +16660,8 @@ namespace ScheMe_Data.DS_ApplicazioneTableAdapters { this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataNasc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataNasc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LuogoNascita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LuogoNascita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sesso", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sesso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Altezza", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Altezza", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodF", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Eta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Eta", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -16615,8 +16671,8 @@ namespace ScheMe_Data.DS_ApplicazioneTableAdapters { this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [AnagPazienti] ([Gruppo], [Cognome], [Nome], [DataNasc], [LuogoNascita], [Sesso], [CodF], [Indirizzo], [RecTel], [Medico], [Note]) VALUES (@Gruppo, @Cognome, @Nome, @DataNasc, @LuogoNascita, @Sesso, @CodF, @Indirizzo, @RecTel, @Medico, @Note); -SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta, RecTel, Medico, Note FROM AnagPazienti WHERE (IdxPaziente = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [AnagPazienti] ([Gruppo], [Cognome], [Nome], [DataNasc], [LuogoNascita], [Sesso], [Altezza], [Peso], [CodF], [Indirizzo], [RecTel], [Medico], [Note]) VALUES (@Gruppo, @Cognome, @Nome, @DataNasc, @LuogoNascita, @Sesso, @Altezza, @Peso, @CodF, @Indirizzo, @RecTel, @Medico, @Note); +SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, Altezza, Peso, CodF, Indirizzo, Eta, RecTel, Medico, Note FROM AnagPazienti WHERE (IdxPaziente = SCOPE_IDENTITY())"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16624,6 +16680,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataNasc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataNasc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LuogoNascita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LuogoNascita", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sesso", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sesso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Altezza", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Altezza", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodF", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RecTel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecTel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16631,8 +16689,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [AnagPazienti] SET [Gruppo] = @Gruppo, [Cognome] = @Cognome, [Nome] = @Nome, [DataNasc] = @DataNasc, [LuogoNascita] = @LuogoNascita, [Sesso] = @Sesso, [CodF] = @CodF, [Indirizzo] = @Indirizzo, [RecTel] = @RecTel, [Medico] = @Medico, [Note] = @Note WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Gruppo] = @Original_Gruppo) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([LuogoNascita] = @Original_LuogoNascita) AND ([Sesso] = @Original_Sesso) AND ([CodF] = @Original_CodF) AND ([Indirizzo] = @Original_Indirizzo) AND ((@IsNull_Eta = 1 AND [Eta] IS NULL) OR ([Eta] = @Original_Eta)) AND ([RecTel] = @Original_RecTel) AND ([Medico] = @Original_Medico) AND ([Note] = @Original_Note)); -SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta, RecTel, Medico, Note FROM AnagPazienti WHERE (IdxPaziente = @IdxPaziente)"; + this._adapter.UpdateCommand.CommandText = @"UPDATE [AnagPazienti] SET [Gruppo] = @Gruppo, [Cognome] = @Cognome, [Nome] = @Nome, [DataNasc] = @DataNasc, [LuogoNascita] = @LuogoNascita, [Sesso] = @Sesso, [Altezza] = @Altezza, [Peso] = @Peso, [CodF] = @CodF, [Indirizzo] = @Indirizzo, [RecTel] = @RecTel, [Medico] = @Medico, [Note] = @Note WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Gruppo] = @Original_Gruppo) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([LuogoNascita] = @Original_LuogoNascita) AND ([Sesso] = @Original_Sesso) AND ([Altezza] = @Original_Altezza) AND ([Peso] = @Original_Peso) AND ([CodF] = @Original_CodF) AND ([Indirizzo] = @Original_Indirizzo) AND ((@IsNull_Eta = 1 AND [Eta] IS NULL) OR ([Eta] = @Original_Eta)) AND ([RecTel] = @Original_RecTel) AND ([Medico] = @Original_Medico) AND ([Note] = @Original_Note)); +SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, Altezza, Peso, CodF, Indirizzo, Eta, RecTel, Medico, Note FROM AnagPazienti WHERE (IdxPaziente = @IdxPaziente)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16640,6 +16698,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataNasc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataNasc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LuogoNascita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LuogoNascita", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sesso", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sesso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Altezza", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Altezza", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodF", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RecTel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecTel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16652,6 +16712,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataNasc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataNasc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LuogoNascita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LuogoNascita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sesso", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sesso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Altezza", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Altezza", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodF", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Eta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Eta", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -16708,6 +16770,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodF", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indirizzo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sesso", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 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("@RecTel", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Medico", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16723,6 +16787,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodF", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indirizzo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sesso", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].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[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RecTel", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Medico", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16820,7 +16886,7 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_IdxPaziente, string Original_Gruppo, string Original_Cognome, string Original_Nome, System.DateTime Original_DataNasc, string Original_LuogoNascita, string Original_Sesso, string Original_CodF, string Original_Indirizzo, global::System.Nullable Original_Eta, string Original_RecTel, string Original_Medico, string Original_Note) { + public virtual int Delete(int Original_IdxPaziente, string Original_Gruppo, string Original_Cognome, string Original_Nome, System.DateTime Original_DataNasc, string Original_LuogoNascita, string Original_Sesso, double Original_Altezza, double Original_Peso, string Original_CodF, string Original_Indirizzo, global::System.Nullable Original_Eta, string Original_RecTel, string Original_Medico, string Original_Note) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxPaziente)); if ((Original_Gruppo == null)) { throw new global::System.ArgumentNullException("Original_Gruppo"); @@ -16853,43 +16919,45 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, else { this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Sesso)); } + this.Adapter.DeleteCommand.Parameters[7].Value = ((double)(Original_Altezza)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((double)(Original_Peso)); if ((Original_CodF == null)) { throw new global::System.ArgumentNullException("Original_CodF"); } else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_CodF)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_CodF)); } if ((Original_Indirizzo == null)) { throw new global::System.ArgumentNullException("Original_Indirizzo"); } else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Indirizzo)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Indirizzo)); } if ((Original_Eta.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[10].Value = ((double)(Original_Eta.Value)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((double)(Original_Eta.Value)); } else { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; } if ((Original_RecTel == null)) { throw new global::System.ArgumentNullException("Original_RecTel"); } else { - this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_RecTel)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_RecTel)); } if ((Original_Medico == null)) { throw new global::System.ArgumentNullException("Original_Medico"); } else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Medico)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Medico)); } if ((Original_Note == null)) { throw new global::System.ArgumentNullException("Original_Note"); } else { - this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_Note)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_Note)); } global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) @@ -16911,7 +16979,7 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string Gruppo, string Cognome, string Nome, System.DateTime DataNasc, string LuogoNascita, string Sesso, string CodF, string Indirizzo, string RecTel, string Medico, string Note) { + public virtual int Insert(string Gruppo, string Cognome, string Nome, System.DateTime DataNasc, string LuogoNascita, string Sesso, double Altezza, double Peso, string CodF, string Indirizzo, string RecTel, string Medico, string Note) { if ((Gruppo == null)) { throw new global::System.ArgumentNullException("Gruppo"); } @@ -16943,35 +17011,37 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, else { this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Sesso)); } + this.Adapter.InsertCommand.Parameters[6].Value = ((double)(Altezza)); + this.Adapter.InsertCommand.Parameters[7].Value = ((double)(Peso)); if ((CodF == null)) { throw new global::System.ArgumentNullException("CodF"); } else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodF)); + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(CodF)); } if ((Indirizzo == null)) { throw new global::System.ArgumentNullException("Indirizzo"); } else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Indirizzo)); + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Indirizzo)); } if ((RecTel == null)) { throw new global::System.ArgumentNullException("RecTel"); } else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(RecTel)); + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(RecTel)); } if ((Medico == null)) { throw new global::System.ArgumentNullException("Medico"); } else { - this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Medico)); + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Medico)); } if ((Note == null)) { throw new global::System.ArgumentNullException("Note"); } else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Note)); + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Note)); } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) @@ -17000,6 +17070,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, System.DateTime DataNasc, string LuogoNascita, string Sesso, + double Altezza, + double Peso, string CodF, string Indirizzo, string RecTel, @@ -17012,6 +17084,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, System.DateTime Original_DataNasc, string Original_LuogoNascita, string Original_Sesso, + double Original_Altezza, + double Original_Peso, string Original_CodF, string Original_Indirizzo, global::System.Nullable Original_Eta, @@ -17050,107 +17124,111 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, else { this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Sesso)); } + this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Altezza)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(Peso)); if ((CodF == null)) { throw new global::System.ArgumentNullException("CodF"); } else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodF)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(CodF)); } if ((Indirizzo == null)) { throw new global::System.ArgumentNullException("Indirizzo"); } else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Indirizzo)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Indirizzo)); } if ((RecTel == null)) { throw new global::System.ArgumentNullException("RecTel"); } else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(RecTel)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(RecTel)); } if ((Medico == null)) { throw new global::System.ArgumentNullException("Medico"); } else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Medico)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Medico)); } if ((Note == null)) { throw new global::System.ArgumentNullException("Note"); } else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Note)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Note)); } - this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_IdxPaziente)); if ((Original_Gruppo == null)) { throw new global::System.ArgumentNullException("Original_Gruppo"); } else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Gruppo)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Gruppo)); } if ((Original_Cognome == null)) { throw new global::System.ArgumentNullException("Original_Cognome"); } else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Cognome)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Cognome)); } if ((Original_Nome == null)) { throw new global::System.ArgumentNullException("Original_Nome"); } else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Nome)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Nome)); } - this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_DataNasc)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_DataNasc)); if ((Original_LuogoNascita == null)) { throw new global::System.ArgumentNullException("Original_LuogoNascita"); } else { - this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_LuogoNascita)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_LuogoNascita)); } if ((Original_Sesso == null)) { throw new global::System.ArgumentNullException("Original_Sesso"); } else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Sesso)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Sesso)); } + this.Adapter.UpdateCommand.Parameters[20].Value = ((double)(Original_Altezza)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_Peso)); if ((Original_CodF == null)) { throw new global::System.ArgumentNullException("Original_CodF"); } else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_CodF)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_CodF)); } if ((Original_Indirizzo == null)) { throw new global::System.ArgumentNullException("Original_Indirizzo"); } else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Indirizzo)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Indirizzo)); } if ((Original_Eta.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_Eta.Value)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((double)(Original_Eta.Value)); } else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; } if ((Original_RecTel == null)) { throw new global::System.ArgumentNullException("Original_RecTel"); } else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_RecTel)); + this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_RecTel)); } if ((Original_Medico == null)) { throw new global::System.ArgumentNullException("Original_Medico"); } else { - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Medico)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_Medico)); } if ((Original_Note == null)) { throw new global::System.ArgumentNullException("Original_Note"); } else { - this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_Note)); + this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_Note)); } - this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(IdxPaziente)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(IdxPaziente)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -17178,6 +17256,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, System.DateTime DataNasc, string LuogoNascita, string Sesso, + double Altezza, + double Peso, string CodF, string Indirizzo, string RecTel, @@ -17190,13 +17270,15 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, System.DateTime Original_DataNasc, string Original_LuogoNascita, string Original_Sesso, + double Original_Altezza, + double Original_Peso, string Original_CodF, string Original_Indirizzo, global::System.Nullable Original_Eta, string Original_RecTel, string Original_Medico, string Original_Note) { - return this.Update(Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, RecTel, Medico, Note, Original_IdxPaziente, Original_Gruppo, Original_Cognome, Original_Nome, Original_DataNasc, Original_LuogoNascita, Original_Sesso, Original_CodF, Original_Indirizzo, Original_Eta, Original_RecTel, Original_Medico, Original_Note, Original_IdxPaziente); + return this.Update(Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, Altezza, Peso, CodF, Indirizzo, RecTel, Medico, Note, Original_IdxPaziente, Original_Gruppo, Original_Cognome, Original_Nome, Original_DataNasc, Original_LuogoNascita, Original_Sesso, Original_Altezza, Original_Peso, Original_CodF, Original_Indirizzo, Original_Eta, Original_RecTel, Original_Medico, Original_Note, Original_IdxPaziente); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17232,7 +17314,7 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] - public virtual int insertQuery(string Gruppo, string Cognome, string Nome, global::System.Nullable DataNasc, string LuogoNascita, string CodF, string Indirizzo, string Sesso, string RecTel, string Medico, string Note) { + public virtual int insertQuery(string Gruppo, string Cognome, string Nome, global::System.Nullable DataNasc, string LuogoNascita, string CodF, string Indirizzo, string Sesso, global::System.Nullable Altezza, global::System.Nullable Peso, string RecTel, string Medico, string Note) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((Gruppo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -17282,23 +17364,35 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, else { command.Parameters[8].Value = ((string)(Sesso)); } - if ((RecTel == null)) { + if ((Altezza.HasValue == true)) { + command.Parameters[9].Value = ((double)(Altezza.Value)); + } + else { command.Parameters[9].Value = global::System.DBNull.Value; } - else { - command.Parameters[9].Value = ((string)(RecTel)); + if ((Peso.HasValue == true)) { + command.Parameters[10].Value = ((double)(Peso.Value)); } - if ((Medico == null)) { + else { command.Parameters[10].Value = global::System.DBNull.Value; } - else { - command.Parameters[10].Value = ((string)(Medico)); - } - if ((Note == null)) { + if ((RecTel == null)) { command.Parameters[11].Value = global::System.DBNull.Value; } else { - command.Parameters[11].Value = ((string)(Note)); + command.Parameters[11].Value = ((string)(RecTel)); + } + if ((Medico == null)) { + command.Parameters[12].Value = global::System.DBNull.Value; + } + else { + command.Parameters[12].Value = ((string)(Medico)); + } + if ((Note == null)) { + command.Parameters[13].Value = global::System.DBNull.Value; + } + else { + command.Parameters[13].Value = ((string)(Note)); } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) @@ -17321,7 +17415,7 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] - public virtual int updateQuery(string Cognome, string Nome, global::System.Nullable DataNasc, string LuogoNascita, string CodF, string Indirizzo, string Sesso, string RecTel, string Medico, string Note, global::System.Nullable Original_IdxPaziente) { + public virtual int updateQuery(string Cognome, string Nome, global::System.Nullable DataNasc, string LuogoNascita, string CodF, string Indirizzo, string Sesso, global::System.Nullable Altezza, global::System.Nullable Peso, string RecTel, string Medico, string Note, global::System.Nullable Original_IdxPaziente) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; if ((Cognome == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -17365,29 +17459,41 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, else { command.Parameters[7].Value = ((string)(Sesso)); } - if ((RecTel == null)) { + if ((Altezza.HasValue == true)) { + command.Parameters[8].Value = ((double)(Altezza.Value)); + } + else { command.Parameters[8].Value = global::System.DBNull.Value; } - else { - command.Parameters[8].Value = ((string)(RecTel)); + if ((Peso.HasValue == true)) { + command.Parameters[9].Value = ((double)(Peso.Value)); } - if ((Medico == null)) { + else { command.Parameters[9].Value = global::System.DBNull.Value; } - else { - command.Parameters[9].Value = ((string)(Medico)); - } - if ((Note == null)) { + if ((RecTel == null)) { command.Parameters[10].Value = global::System.DBNull.Value; } else { - command.Parameters[10].Value = ((string)(Note)); + command.Parameters[10].Value = ((string)(RecTel)); } - if ((Original_IdxPaziente.HasValue == true)) { - command.Parameters[11].Value = ((int)(Original_IdxPaziente.Value)); + if ((Medico == null)) { + command.Parameters[11].Value = global::System.DBNull.Value; } else { - command.Parameters[11].Value = global::System.DBNull.Value; + command.Parameters[11].Value = ((string)(Medico)); + } + if ((Note == null)) { + command.Parameters[12].Value = global::System.DBNull.Value; + } + else { + command.Parameters[12].Value = ((string)(Note)); + } + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[13].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[13].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) diff --git a/ScheMe_Data/DS_Applicazione.cs b/ScheMe_Data/DS_Applicazione.cs index 22bf3fb..5e6ac85 100644 --- a/ScheMe_Data/DS_Applicazione.cs +++ b/ScheMe_Data/DS_Applicazione.cs @@ -1,3 +1,7 @@ namespace ScheMe_Data { +} + +namespace ScheMe_Data +{ } \ No newline at end of file diff --git a/ScheMe_Data/DS_Applicazione.xsd b/ScheMe_Data/DS_Applicazione.xsd index 7789786..21ae7cd 100644 --- a/ScheMe_Data/DS_Applicazione.xsd +++ b/ScheMe_Data/DS_Applicazione.xsd @@ -12,7 +12,7 @@ - DELETE FROM [AnagPazienti] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Gruppo] = @Original_Gruppo) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([LuogoNascita] = @Original_LuogoNascita) AND ([Sesso] = @Original_Sesso) AND ([CodF] = @Original_CodF) AND ([Indirizzo] = @Original_Indirizzo) AND ((@IsNull_Eta = 1 AND [Eta] IS NULL) OR ([Eta] = @Original_Eta)) AND ([RecTel] = @Original_RecTel) AND ([Medico] = @Original_Medico) AND ([Note] = @Original_Note)) + DELETE FROM [AnagPazienti] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Gruppo] = @Original_Gruppo) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([LuogoNascita] = @Original_LuogoNascita) AND ([Sesso] = @Original_Sesso) AND ([Altezza] = @Original_Altezza) AND ([Peso] = @Original_Peso) AND ([CodF] = @Original_CodF) AND ([Indirizzo] = @Original_Indirizzo) AND ((@IsNull_Eta = 1 AND [Eta] IS NULL) OR ([Eta] = @Original_Eta)) AND ([RecTel] = @Original_RecTel) AND ([Medico] = @Original_Medico) AND ([Note] = @Original_Note)) @@ -21,6 +21,8 @@ + + @@ -33,8 +35,8 @@ - INSERT INTO [AnagPazienti] ([Gruppo], [Cognome], [Nome], [DataNasc], [LuogoNascita], [Sesso], [CodF], [Indirizzo], [RecTel], [Medico], [Note]) VALUES (@Gruppo, @Cognome, @Nome, @DataNasc, @LuogoNascita, @Sesso, @CodF, @Indirizzo, @RecTel, @Medico, @Note); -SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta, RecTel, Medico, Note FROM AnagPazienti WHERE (IdxPaziente = SCOPE_IDENTITY()) + INSERT INTO [AnagPazienti] ([Gruppo], [Cognome], [Nome], [DataNasc], [LuogoNascita], [Sesso], [Altezza], [Peso], [CodF], [Indirizzo], [RecTel], [Medico], [Note]) VALUES (@Gruppo, @Cognome, @Nome, @DataNasc, @LuogoNascita, @Sesso, @Altezza, @Peso, @CodF, @Indirizzo, @RecTel, @Medico, @Note); +SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, Altezza, Peso, CodF, Indirizzo, Eta, RecTel, Medico, Note FROM AnagPazienti WHERE (IdxPaziente = SCOPE_IDENTITY()) @@ -42,6 +44,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, + + @@ -58,8 +62,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, - UPDATE [AnagPazienti] SET [Gruppo] = @Gruppo, [Cognome] = @Cognome, [Nome] = @Nome, [DataNasc] = @DataNasc, [LuogoNascita] = @LuogoNascita, [Sesso] = @Sesso, [CodF] = @CodF, [Indirizzo] = @Indirizzo, [RecTel] = @RecTel, [Medico] = @Medico, [Note] = @Note WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Gruppo] = @Original_Gruppo) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([LuogoNascita] = @Original_LuogoNascita) AND ([Sesso] = @Original_Sesso) AND ([CodF] = @Original_CodF) AND ([Indirizzo] = @Original_Indirizzo) AND ((@IsNull_Eta = 1 AND [Eta] IS NULL) OR ([Eta] = @Original_Eta)) AND ([RecTel] = @Original_RecTel) AND ([Medico] = @Original_Medico) AND ([Note] = @Original_Note)); -SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta, RecTel, Medico, Note FROM AnagPazienti WHERE (IdxPaziente = @IdxPaziente) + UPDATE [AnagPazienti] SET [Gruppo] = @Gruppo, [Cognome] = @Cognome, [Nome] = @Nome, [DataNasc] = @DataNasc, [LuogoNascita] = @LuogoNascita, [Sesso] = @Sesso, [Altezza] = @Altezza, [Peso] = @Peso, [CodF] = @CodF, [Indirizzo] = @Indirizzo, [RecTel] = @RecTel, [Medico] = @Medico, [Note] = @Note WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Gruppo] = @Original_Gruppo) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([LuogoNascita] = @Original_LuogoNascita) AND ([Sesso] = @Original_Sesso) AND ([Altezza] = @Original_Altezza) AND ([Peso] = @Original_Peso) AND ([CodF] = @Original_CodF) AND ([Indirizzo] = @Original_Indirizzo) AND ((@IsNull_Eta = 1 AND [Eta] IS NULL) OR ([Eta] = @Original_Eta)) AND ([RecTel] = @Original_RecTel) AND ([Medico] = @Original_Medico) AND ([Note] = @Original_Note)); +SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, Altezza, Peso, CodF, Indirizzo, Eta, RecTel, Medico, Note FROM AnagPazienti WHERE (IdxPaziente = @IdxPaziente) @@ -67,6 +71,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, + + @@ -79,6 +85,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, + + @@ -106,6 +114,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, + + @@ -155,6 +165,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, + + @@ -175,6 +187,8 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, + + @@ -1651,7 +1665,7 @@ FROM v_VisValFunzAnz_l - + @@ -1727,10 +1741,12 @@ FROM v_VisValFunzAnz_l + + - + @@ -1746,7 +1762,7 @@ FROM v_VisValFunzAnz_l - + @@ -1769,7 +1785,7 @@ FROM v_VisValFunzAnz_l - + @@ -1792,7 +1808,7 @@ FROM v_VisValFunzAnz_l - + @@ -1820,7 +1836,7 @@ FROM v_VisValFunzAnz_l - + @@ -1834,7 +1850,7 @@ FROM v_VisValFunzAnz_l - + @@ -1886,7 +1902,7 @@ FROM v_VisValFunzAnz_l - + @@ -1903,7 +1919,7 @@ FROM v_VisValFunzAnz_l - + @@ -2392,7 +2408,7 @@ FROM v_VisValFunzAnz_l - + @@ -2444,7 +2460,7 @@ FROM v_VisValFunzAnz_l - + @@ -2528,14 +2544,14 @@ FROM v_VisValFunzAnz_l - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/ScheMe_Data/DS_Applicazione.xss b/ScheMe_Data/DS_Applicazione.xss index 862af75..52fa6c9 100644 --- a/ScheMe_Data/DS_Applicazione.xss +++ b/ScheMe_Data/DS_Applicazione.xss @@ -4,19 +4,19 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - + - - - - - - - + + + + + + + @@ -59,7 +59,7 @@ - + 705 @@ -75,7 +75,7 @@ - + 747 @@ -87,7 +87,7 @@ - + 680 @@ -99,7 +99,7 @@ - + 980 @@ -119,7 +119,7 @@ - + 980 diff --git a/ScheMe_Data/bin/Release/ScheMe_Data.dll b/ScheMe_Data/bin/Release/ScheMe_Data.dll index a7a5dd7..c41bd90 100644 Binary files a/ScheMe_Data/bin/Release/ScheMe_Data.dll and b/ScheMe_Data/bin/Release/ScheMe_Data.dll differ