diff --git a/MedPred/Accettazione.aspx b/MedPred/Accettazione.aspx index da947c5..4717ef5 100644 --- a/MedPred/Accettazione.aspx +++ b/MedPred/Accettazione.aspx @@ -7,9 +7,19 @@ + + + + + + + + + + - +
@@ -17,29 +27,46 @@
- + -   - , - -
- + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
- - - - - - - - - - +
- + diff --git a/MedPred/AccettazioneEdit.aspx b/MedPred/AccettazioneEdit.aspx index b285437..cbe1310 100644 --- a/MedPred/AccettazioneEdit.aspx +++ b/MedPred/AccettazioneEdit.aspx @@ -6,62 +6,132 @@
- ITEM + ITEM - EMPTY
- +
    +
  • + + +
  • +
  • + + +
  • +
  • + + + <%----%> +
  • +
  • + + +
  • +
- +
    +
  • + + + +
  • +
  • + + +
  • +
  • + + +
  • +
-
+
- -
-
- -
-
-
-
- -
-
- +
    +
  • +
    +
    + +
    +
    + +
    +
    +
  • +
- +
    +
  • + + +
  • +
  • + + +
  • +
  • + + + <%----%> +
  • +
  • + + +
  • +
- +
    +
  • + + + +
  • +
  • + + +
  • +
  • + + +
  • +
-
+
- -
-
- -
-
-
-
- -
-
- +
    +
  • +
    +
    + +
    +
    + +
    +
    +
  • +
- + @@ -69,7 +139,10 @@ + + + @@ -78,7 +151,10 @@ + + + diff --git a/MedPred/Properties/AssemblyInfo.cs b/MedPred/Properties/AssemblyInfo.cs index 237fb8c..8ebead2 100644 --- a/MedPred/Properties/AssemblyInfo.cs +++ b/MedPred/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("0.7.*")] -[assembly: AssemblyFileVersion("0.7.*")] +[assembly: AssemblyVersion("0.8.*")] +[assembly: AssemblyFileVersion("0.8.*")] diff --git a/MedPred_Data/DS_Applicazione.Designer.cs b/MedPred_Data/DS_Applicazione.Designer.cs index 0742267..5efdd27 100644 --- a/MedPred_Data/DS_Applicazione.Designer.cs +++ b/MedPred_Data/DS_Applicazione.Designer.cs @@ -492,6 +492,14 @@ namespace MedPred_Data { private global::System.Data.DataColumn columnCodF; + private global::System.Data.DataColumn columnLuogoNascita; + + private global::System.Data.DataColumn columnSesso; + + private global::System.Data.DataColumn columnIndirizzo; + + private global::System.Data.DataColumn columnEta; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public AnagPazientiDataTable() { @@ -565,6 +573,38 @@ namespace MedPred_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn LuogoNascitaColumn { + get { + return this.columnLuogoNascita; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SessoColumn { + get { + return this.columnSesso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IndirizzoColumn { + get { + return this.columnIndirizzo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn EtaColumn { + get { + return this.columnEta; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -602,14 +642,18 @@ namespace MedPred_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public AnagPazientiRow AddAnagPazientiRow(string Cognome, string Nome, System.DateTime DataNasc, string CodF) { + public AnagPazientiRow AddAnagPazientiRow(string Cognome, string Nome, System.DateTime DataNasc, string CodF, string LuogoNascita, string Sesso, string Indirizzo, byte Eta) { AnagPazientiRow rowAnagPazientiRow = ((AnagPazientiRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, Cognome, Nome, DataNasc, - CodF}; + CodF, + LuogoNascita, + Sesso, + Indirizzo, + Eta}; rowAnagPazientiRow.ItemArray = columnValuesArray; this.Rows.Add(rowAnagPazientiRow); return rowAnagPazientiRow; @@ -644,6 +688,10 @@ namespace MedPred_Data { this.columnNome = base.Columns["Nome"]; this.columnDataNasc = base.Columns["DataNasc"]; this.columnCodF = base.Columns["CodF"]; + this.columnLuogoNascita = base.Columns["LuogoNascita"]; + this.columnSesso = base.Columns["Sesso"]; + this.columnIndirizzo = base.Columns["Indirizzo"]; + this.columnEta = base.Columns["Eta"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -659,6 +707,14 @@ namespace MedPred_Data { base.Columns.Add(this.columnDataNasc); this.columnCodF = new global::System.Data.DataColumn("CodF", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodF); + this.columnLuogoNascita = new global::System.Data.DataColumn("LuogoNascita", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnLuogoNascita); + this.columnSesso = new global::System.Data.DataColumn("Sesso", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSesso); + this.columnIndirizzo = new global::System.Data.DataColumn("Indirizzo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIndirizzo); + this.columnEta = new global::System.Data.DataColumn("Eta", typeof(byte), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEta); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnIdxPaziente}, true)); this.columnIdxPaziente.AutoIncrement = true; @@ -674,6 +730,13 @@ namespace MedPred_Data { this.columnDataNasc.AllowDBNull = false; this.columnCodF.AllowDBNull = false; this.columnCodF.MaxLength = 20; + this.columnLuogoNascita.AllowDBNull = false; + this.columnLuogoNascita.MaxLength = 50; + this.columnSesso.AllowDBNull = false; + this.columnSesso.MaxLength = 1; + this.columnIndirizzo.AllowDBNull = false; + this.columnIndirizzo.MaxLength = 50; + this.columnEta.ReadOnly = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2958,6 +3021,67 @@ namespace MedPred_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string LuogoNascita { + get { + return ((string)(this[this.tableAnagPazienti.LuogoNascitaColumn])); + } + set { + this[this.tableAnagPazienti.LuogoNascitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Sesso { + get { + return ((string)(this[this.tableAnagPazienti.SessoColumn])); + } + set { + this[this.tableAnagPazienti.SessoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Indirizzo { + get { + return ((string)(this[this.tableAnagPazienti.IndirizzoColumn])); + } + set { + this[this.tableAnagPazienti.IndirizzoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public byte Eta { + get { + try { + return ((byte)(this[this.tableAnagPazienti.EtaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Eta\' in table \'AnagPazienti\' is DBNull.", e); + } + } + set { + this[this.tableAnagPazienti.EtaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsEtaNull() { + return this.IsNull(this.tableAnagPazienti.EtaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetEtaNull() { + this[this.tableAnagPazienti.EtaColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public VisGenRow[] GetVisGenRows() { @@ -4327,42 +4451,59 @@ namespace MedPred_Data.DS_ApplicazioneTableAdapters { tableMapping.ColumnMappings.Add("Nome", "Nome"); tableMapping.ColumnMappings.Add("DataNasc", "DataNasc"); tableMapping.ColumnMappings.Add("CodF", "CodF"); + tableMapping.ColumnMappings.Add("LuogoNascita", "LuogoNascita"); + tableMapping.ColumnMappings.Add("Sesso", "Sesso"); + tableMapping.ColumnMappings.Add("Indirizzo", "Indirizzo"); + tableMapping.ColumnMappings.Add("Eta", "Eta"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagPazienti] WHERE (([IdxPaziente] = @Original_IdxPaziente) A" + - "ND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc]" + - " = @Original_DataNasc) AND ([CodF] = @Original_CodF))"; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [AnagPazienti] WHERE (([IdxPaziente] = @Original_IdxPaziente) 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)))"; 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_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 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_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, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Eta", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Eta", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagPazienti] ([Cognome], [Nome], [DataNasc], [CodF]) VALUES (" + - "@Cognome, @Nome, @DataNasc, @CodF);\r\nSELECT IdxPaziente, Cognome, Nome, DataNasc" + - ", CodF FROM AnagPazienti WHERE (IdxPaziente = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [AnagPazienti] ([Cognome], [Nome], [DataNasc], [LuogoNascita], [Sesso], [CodF], [Indirizzo]) VALUES (@Cognome, @Nome, @DataNasc, @LuogoNascita, @Sesso, @CodF, @Indirizzo); +SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta 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("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 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("@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.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagPazienti] SET [Cognome] = @Cognome, [Nome] = @Nome, [DataNasc] = @DataNasc, [CodF] = @CodF WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([CodF] = @Original_CodF)); -SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPaziente = @IdxPaziente)"; + this._adapter.UpdateCommand.CommandText = @"UPDATE [AnagPazienti] SET [Cognome] = @Cognome, [Nome] = @Nome, [DataNasc] = @DataNasc, [LuogoNascita] = @LuogoNascita, [Sesso] = @Sesso, [CodF] = @CodF, [Indirizzo] = @Indirizzo WHERE (([IdxPaziente] = @Original_IdxPaziente) 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))); +SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta 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("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 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("@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("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 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_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, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Eta", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Eta", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -4379,7 +4520,8 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM dbo.AnagPazienti"; + this._commandCollection[0].CommandText = "SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, In" + + "dirizzo, Eta\r\nFROM AnagPazienti"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -4401,7 +4543,10 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataNasc", 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("@LuogoNascita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].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[3].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[3].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] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; this._commandCollection[4].CommandText = "dbo.stp_AP_updateQuery"; @@ -4410,7 +4555,10 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", 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("@Nome", 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("@DataNasc", 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("@LuogoNascita", 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("@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("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -4488,7 +4636,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa [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_Cognome, string Original_Nome, System.DateTime Original_DataNasc, string Original_CodF) { + public virtual int Delete(int Original_IdxPaziente, 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) { this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxPaziente)); if ((Original_Cognome == null)) { throw new global::System.ArgumentNullException("Original_Cognome"); @@ -4503,11 +4651,37 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Nome)); } this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_DataNasc)); + if ((Original_LuogoNascita == null)) { + throw new global::System.ArgumentNullException("Original_LuogoNascita"); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_LuogoNascita)); + } + if ((Original_Sesso == null)) { + throw new global::System.ArgumentNullException("Original_Sesso"); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Sesso)); + } if ((Original_CodF == null)) { throw new global::System.ArgumentNullException("Original_CodF"); } else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodF)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodF)); + } + if ((Original_Indirizzo == null)) { + throw new global::System.ArgumentNullException("Original_Indirizzo"); + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Indirizzo)); + } + if ((Original_Eta.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((byte)(Original_Eta.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) @@ -4529,7 +4703,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa [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 Cognome, string Nome, System.DateTime DataNasc, string CodF) { + public virtual int Insert(string Cognome, string Nome, System.DateTime DataNasc, string LuogoNascita, string Sesso, string CodF, string Indirizzo) { if ((Cognome == null)) { throw new global::System.ArgumentNullException("Cognome"); } @@ -4543,11 +4717,29 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Nome)); } this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DataNasc)); + if ((LuogoNascita == null)) { + throw new global::System.ArgumentNullException("LuogoNascita"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(LuogoNascita)); + } + if ((Sesso == null)) { + throw new global::System.ArgumentNullException("Sesso"); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Sesso)); + } if ((CodF == null)) { throw new global::System.ArgumentNullException("CodF"); } else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodF)); + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodF)); + } + if ((Indirizzo == null)) { + throw new global::System.ArgumentNullException("Indirizzo"); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Indirizzo)); } global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) @@ -4569,7 +4761,24 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string Cognome, string Nome, System.DateTime DataNasc, string CodF, int Original_IdxPaziente, string Original_Cognome, string Original_Nome, System.DateTime Original_DataNasc, string Original_CodF, int IdxPaziente) { + public virtual int Update( + string Cognome, + string Nome, + System.DateTime DataNasc, + string LuogoNascita, + string Sesso, + string CodF, + string Indirizzo, + int Original_IdxPaziente, + 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, + int IdxPaziente) { if ((Cognome == null)) { throw new global::System.ArgumentNullException("Cognome"); } @@ -4583,33 +4792,77 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Nome)); } this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DataNasc)); + if ((LuogoNascita == null)) { + throw new global::System.ArgumentNullException("LuogoNascita"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(LuogoNascita)); + } + if ((Sesso == null)) { + throw new global::System.ArgumentNullException("Sesso"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Sesso)); + } if ((CodF == null)) { throw new global::System.ArgumentNullException("CodF"); } else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodF)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodF)); } - this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdxPaziente)); + if ((Indirizzo == null)) { + throw new global::System.ArgumentNullException("Indirizzo"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Indirizzo)); + } + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdxPaziente)); if ((Original_Cognome == null)) { throw new global::System.ArgumentNullException("Original_Cognome"); } else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Cognome)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Cognome)); } if ((Original_Nome == null)) { throw new global::System.ArgumentNullException("Original_Nome"); } else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Nome)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Nome)); + } + this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_DataNasc)); + if ((Original_LuogoNascita == null)) { + throw new global::System.ArgumentNullException("Original_LuogoNascita"); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_LuogoNascita)); + } + if ((Original_Sesso == null)) { + throw new global::System.ArgumentNullException("Original_Sesso"); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Sesso)); } - this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_DataNasc)); if ((Original_CodF == null)) { throw new global::System.ArgumentNullException("Original_CodF"); } else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodF)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_CodF)); } - this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(IdxPaziente)); + if ((Original_Indirizzo == null)) { + throw new global::System.ArgumentNullException("Original_Indirizzo"); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Indirizzo)); + } + if ((Original_Eta.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((byte)(Original_Eta.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[17].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)) { @@ -4630,8 +4883,24 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string Cognome, string Nome, System.DateTime DataNasc, string CodF, int Original_IdxPaziente, string Original_Cognome, string Original_Nome, System.DateTime Original_DataNasc, string Original_CodF) { - return this.Update(Cognome, Nome, DataNasc, CodF, Original_IdxPaziente, Original_Cognome, Original_Nome, Original_DataNasc, Original_CodF, Original_IdxPaziente); + public virtual int Update( + string Cognome, + string Nome, + System.DateTime DataNasc, + string LuogoNascita, + string Sesso, + string CodF, + string Indirizzo, + int Original_IdxPaziente, + 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) { + return this.Update(Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Original_IdxPaziente, Original_Cognome, Original_Nome, Original_DataNasc, Original_LuogoNascita, Original_Sesso, Original_CodF, Original_Indirizzo, Original_Eta, Original_IdxPaziente); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -4667,7 +4936,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa [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 Cognome, string Nome, global::System.Nullable DataNasc, string CodF) { + public virtual int insertQuery(string Cognome, string Nome, global::System.Nullable DataNasc, string LuogoNascita, string CodF, string Indirizzo, string Sesso) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; if ((Cognome == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -4687,11 +4956,29 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa else { command.Parameters[3].Value = global::System.DBNull.Value; } - if ((CodF == null)) { + if ((LuogoNascita == null)) { command.Parameters[4].Value = global::System.DBNull.Value; } else { - command.Parameters[4].Value = ((string)(CodF)); + command.Parameters[4].Value = ((string)(LuogoNascita)); + } + if ((CodF == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(CodF)); + } + if ((Indirizzo == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(Indirizzo)); + } + if ((Sesso == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(Sesso)); } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) @@ -4714,7 +5001,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa [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 CodF, 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 Original_IdxPaziente) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((Cognome == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -4734,17 +5021,35 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa else { command.Parameters[3].Value = global::System.DBNull.Value; } - if ((CodF == null)) { + if ((LuogoNascita == null)) { command.Parameters[4].Value = global::System.DBNull.Value; } else { - command.Parameters[4].Value = ((string)(CodF)); + command.Parameters[4].Value = ((string)(LuogoNascita)); } - if ((Original_IdxPaziente.HasValue == true)) { - command.Parameters[5].Value = ((int)(Original_IdxPaziente.Value)); + if ((CodF == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; } else { - command.Parameters[5].Value = global::System.DBNull.Value; + command.Parameters[5].Value = ((string)(CodF)); + } + if ((Indirizzo == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(Indirizzo)); + } + if ((Sesso == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(Sesso)); + } + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[8].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[8].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/MedPred_Data/DS_Applicazione.xsd b/MedPred_Data/DS_Applicazione.xsd index 6a2810c..b2e2006 100644 --- a/MedPred_Data/DS_Applicazione.xsd +++ b/MedPred_Data/DS_Applicazione.xsd @@ -12,49 +12,66 @@ - DELETE FROM [dbo].[AnagPazienti] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([CodF] = @Original_CodF)) + DELETE FROM [AnagPazienti] WHERE (([IdxPaziente] = @Original_IdxPaziente) 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))) + + + + + - INSERT INTO [dbo].[AnagPazienti] ([Cognome], [Nome], [DataNasc], [CodF]) VALUES (@Cognome, @Nome, @DataNasc, @CodF); -SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPaziente = SCOPE_IDENTITY()) + INSERT INTO [AnagPazienti] ([Cognome], [Nome], [DataNasc], [LuogoNascita], [Sesso], [CodF], [Indirizzo]) VALUES (@Cognome, @Nome, @DataNasc, @LuogoNascita, @Sesso, @CodF, @Indirizzo); +SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta FROM AnagPazienti WHERE (IdxPaziente = SCOPE_IDENTITY()) + + + - - SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM dbo.AnagPazienti + + SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta +FROM AnagPazienti - UPDATE [dbo].[AnagPazienti] SET [Cognome] = @Cognome, [Nome] = @Nome, [DataNasc] = @DataNasc, [CodF] = @CodF WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([DataNasc] = @Original_DataNasc) AND ([CodF] = @Original_CodF)); -SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPaziente = @IdxPaziente) + UPDATE [AnagPazienti] SET [Cognome] = @Cognome, [Nome] = @Nome, [DataNasc] = @DataNasc, [LuogoNascita] = @LuogoNascita, [Sesso] = @Sesso, [CodF] = @CodF, [Indirizzo] = @Indirizzo WHERE (([IdxPaziente] = @Original_IdxPaziente) 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))); +SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta FROM AnagPazienti WHERE (IdxPaziente = @IdxPaziente) + + + + + - + + + + @@ -66,6 +83,10 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa + + + + @@ -99,7 +120,10 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa + + + @@ -113,7 +137,10 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, CodF FROM AnagPazienti WHERE (IdxPa + + + @@ -362,8 +389,7 @@ SELECT IdxPaziente, DataVisita, FrazEiez, TDI, PlaccheVas FROM VisCardio WHERE ( - + dbo.stp_VCardio_DeleteQuery @@ -800,7 +826,7 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, - + @@ -826,10 +852,32 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, + + + + + + + + + + + + + + + + + + + + + + - + @@ -848,7 +896,7 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, - + @@ -861,7 +909,7 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, - + @@ -872,7 +920,7 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, - + @@ -891,7 +939,7 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, - + @@ -948,10 +996,10 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Mas, VO2, VO2_a, FC_QR1, - - - - + + + + \ No newline at end of file diff --git a/MedPred_Data/DS_Applicazione.xss b/MedPred_Data/DS_Applicazione.xss index 20f5970..b9f345f 100644 --- a/MedPred_Data/DS_Applicazione.xss +++ b/MedPred_Data/DS_Applicazione.xss @@ -4,68 +4,64 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - + + + + + + - + - 998 - 206 + 974 + 176 1060 - 206 + 176 - + - 908 - 342 + 824 + 388 - 908 - 442 - - - 900 - 442 + 824 + 445 - + - 715 - 342 + 691 + 388 - 715 - 400 + 691 + 426 477 - 400 + 426 - + - 981 - 342 + 957 + 388 - 981 + 957 494 diff --git a/MedPred_Data/bin/Release/MedPred_Data.dll b/MedPred_Data/bin/Release/MedPred_Data.dll index a6224c6..603df70 100644 Binary files a/MedPred_Data/bin/Release/MedPred_Data.dll and b/MedPred_Data/bin/Release/MedPred_Data.dll differ diff --git a/MedPred_Data/bin/Release/SteamWare.dll b/MedPred_Data/bin/Release/SteamWare.dll index fc3c47a..fa262ef 100644 Binary files a/MedPred_Data/bin/Release/SteamWare.dll and b/MedPred_Data/bin/Release/SteamWare.dll differ