diff --git a/MedPred/Accettazione.aspx b/MedPred/Accettazione.aspx
index 4717ef5..609ddf7 100644
--- a/MedPred/Accettazione.aspx
+++ b/MedPred/Accettazione.aspx
@@ -31,16 +31,14 @@
+
+
-
-
-
-
-
+
-
+
@@ -48,14 +46,30 @@
-
+ <%--
+
+ --%>
+
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MedPred/Accettazione.aspx.cs b/MedPred/Accettazione.aspx.cs
index 0bf9ca2..89042bb 100644
--- a/MedPred/Accettazione.aspx.cs
+++ b/MedPred/Accettazione.aspx.cs
@@ -66,7 +66,27 @@ namespace MedPred
// salvo il command argument...
lastCmd = e.CommandArgument.ToString();
}
-
+ ///
+ /// trimma una stringa alla lunghezza richiesta...
+ ///
+ ///
+ ///
+ ///
+ public string stringTrim(object _stringa, object _maxChar)
+ {
+ string answ = "";
+ try
+ {
+ answ = _stringa.ToString();
+ if (answ.Length > Convert.ToInt32(_maxChar))
+ {
+ answ = answ.Substring(0, Convert.ToInt32(_maxChar)) + "[...]";
+ }
+ }
+ catch
+ { }
+ return answ;
+ }
}
}
\ No newline at end of file
diff --git a/MedPred/AccettazioneEdit.aspx b/MedPred/AccettazioneEdit.aspx
index cd4b27d..240699d 100644
--- a/MedPred/AccettazioneEdit.aspx
+++ b/MedPred/AccettazioneEdit.aspx
@@ -31,6 +31,10 @@
+
+
+
+
@@ -49,6 +53,16 @@
+
+ -
+
+
+
+ -
+
+
+
+
@@ -91,6 +105,10 @@
+
+
+
+
@@ -109,6 +127,16 @@
+
+ -
+
+
+
+ -
+
+
+
+
@@ -134,6 +162,7 @@
+
@@ -141,6 +170,9 @@
+
+
+
@@ -153,6 +185,9 @@
+
+
+
diff --git a/MedPred/AccettazioneEdit.aspx.cs b/MedPred/AccettazioneEdit.aspx.cs
index 9a4e19c..4b12fb6 100644
--- a/MedPred/AccettazioneEdit.aspx.cs
+++ b/MedPred/AccettazioneEdit.aspx.cs
@@ -33,5 +33,6 @@ namespace MedPred
Response.Redirect("Accettazione");
}
}
+
}
}
\ No newline at end of file
diff --git a/MedPred_Data/DS_Applicazione.Designer.cs b/MedPred_Data/DS_Applicazione.Designer.cs
index 0c19add..8e492d0 100644
--- a/MedPred_Data/DS_Applicazione.Designer.cs
+++ b/MedPred_Data/DS_Applicazione.Designer.cs
@@ -484,22 +484,30 @@ namespace MedPred_Data {
private global::System.Data.DataColumn columnIdxPaziente;
+ private global::System.Data.DataColumn columnGruppo;
+
private global::System.Data.DataColumn columnCognome;
private global::System.Data.DataColumn columnNome;
private global::System.Data.DataColumn columnDataNasc;
- private global::System.Data.DataColumn columnCodF;
-
private global::System.Data.DataColumn columnLuogoNascita;
private global::System.Data.DataColumn columnSesso;
+ private global::System.Data.DataColumn columnCodF;
+
private global::System.Data.DataColumn columnIndirizzo;
private global::System.Data.DataColumn columnEta;
+ private global::System.Data.DataColumn columnRecTel;
+
+ private global::System.Data.DataColumn columnMedico;
+
+ private global::System.Data.DataColumn columnNote;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagPazientiDataTable() {
@@ -541,6 +549,14 @@ 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 GruppoColumn {
+ get {
+ return this.columnGruppo;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn CognomeColumn {
@@ -565,14 +581,6 @@ 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 CodFColumn {
- get {
- return this.columnCodF;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn LuogoNascitaColumn {
@@ -589,6 +597,14 @@ 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 CodFColumn {
+ get {
+ return this.columnCodF;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn IndirizzoColumn {
@@ -605,6 +621,30 @@ 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 RecTelColumn {
+ get {
+ return this.columnRecTel;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn MedicoColumn {
+ get {
+ return this.columnMedico;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn NoteColumn {
+ get {
+ return this.columnNote;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -642,18 +682,22 @@ 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, string LuogoNascita, string Sesso, string Indirizzo, byte Eta) {
+ 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) {
AnagPazientiRow rowAnagPazientiRow = ((AnagPazientiRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
+ Gruppo,
Cognome,
Nome,
DataNasc,
- CodF,
LuogoNascita,
Sesso,
+ CodF,
Indirizzo,
- Eta};
+ Eta,
+ RecTel,
+ Medico,
+ Note};
rowAnagPazientiRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAnagPazientiRow);
return rowAnagPazientiRow;
@@ -684,14 +728,18 @@ namespace MedPred_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnIdxPaziente = base.Columns["IdxPaziente"];
+ this.columnGruppo = base.Columns["Gruppo"];
this.columnCognome = base.Columns["Cognome"];
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.columnCodF = base.Columns["CodF"];
this.columnIndirizzo = base.Columns["Indirizzo"];
this.columnEta = base.Columns["Eta"];
+ this.columnRecTel = base.Columns["RecTel"];
+ this.columnMedico = base.Columns["Medico"];
+ this.columnNote = base.Columns["Note"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -699,22 +747,30 @@ namespace MedPred_Data {
private void InitClass() {
this.columnIdxPaziente = new global::System.Data.DataColumn("IdxPaziente", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxPaziente);
+ this.columnGruppo = new global::System.Data.DataColumn("Gruppo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnGruppo);
this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCognome);
this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNome);
this.columnDataNasc = new global::System.Data.DataColumn("DataNasc", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
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.columnCodF = new global::System.Data.DataColumn("CodF", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodF);
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);
+ this.columnEta = new global::System.Data.DataColumn("Eta", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnEta);
+ this.columnRecTel = new global::System.Data.DataColumn("RecTel", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnRecTel);
+ this.columnMedico = new global::System.Data.DataColumn("Medico", typeof(string), null, global::System.Data.MappingType.Element);
+ 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.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxPaziente}, true));
this.columnIdxPaziente.AutoIncrement = true;
@@ -723,20 +779,28 @@ namespace MedPred_Data {
this.columnIdxPaziente.AllowDBNull = false;
this.columnIdxPaziente.ReadOnly = true;
this.columnIdxPaziente.Unique = true;
+ this.columnGruppo.AllowDBNull = false;
+ this.columnGruppo.MaxLength = 5;
this.columnCognome.AllowDBNull = false;
this.columnCognome.MaxLength = 50;
this.columnNome.AllowDBNull = false;
this.columnNome.MaxLength = 50;
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.columnCodF.AllowDBNull = false;
+ this.columnCodF.MaxLength = 20;
this.columnIndirizzo.AllowDBNull = false;
this.columnIndirizzo.MaxLength = 50;
this.columnEta.ReadOnly = true;
+ this.columnRecTel.AllowDBNull = false;
+ this.columnRecTel.MaxLength = 50;
+ this.columnMedico.AllowDBNull = false;
+ this.columnMedico.MaxLength = 50;
+ this.columnNote.AllowDBNull = false;
+ this.columnNote.MaxLength = 500;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3470,6 +3534,17 @@ namespace MedPred_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Gruppo {
+ get {
+ return ((string)(this[this.tableAnagPazienti.GruppoColumn]));
+ }
+ set {
+ this[this.tableAnagPazienti.GruppoColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Cognome {
@@ -3503,17 +3578,6 @@ namespace MedPred_Data {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public string CodF {
- get {
- return ((string)(this[this.tableAnagPazienti.CodFColumn]));
- }
- set {
- this[this.tableAnagPazienti.CodFColumn] = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string LuogoNascita {
@@ -3536,6 +3600,17 @@ namespace MedPred_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodF {
+ get {
+ return ((string)(this[this.tableAnagPazienti.CodFColumn]));
+ }
+ set {
+ this[this.tableAnagPazienti.CodFColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Indirizzo {
@@ -3549,10 +3624,10 @@ namespace MedPred_Data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public byte Eta {
+ public double Eta {
get {
try {
- return ((byte)(this[this.tableAnagPazienti.EtaColumn]));
+ return ((double)(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);
@@ -3563,6 +3638,39 @@ namespace MedPred_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string RecTel {
+ get {
+ return ((string)(this[this.tableAnagPazienti.RecTelColumn]));
+ }
+ set {
+ this[this.tableAnagPazienti.RecTelColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Medico {
+ get {
+ return ((string)(this[this.tableAnagPazienti.MedicoColumn]));
+ }
+ set {
+ this[this.tableAnagPazienti.MedicoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Note {
+ get {
+ return ((string)(this[this.tableAnagPazienti.NoteColumn]));
+ }
+ set {
+ this[this.tableAnagPazienti.NoteColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public VisBioMecAntRow VisBioMecAntRow {
@@ -5304,20 +5412,25 @@ namespace MedPred_Data.DS_ApplicazioneTableAdapters {
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "AnagPazienti";
tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente");
+ tableMapping.ColumnMappings.Add("Gruppo", "Gruppo");
tableMapping.ColumnMappings.Add("Cognome", "Cognome");
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("CodF", "CodF");
tableMapping.ColumnMappings.Add("Indirizzo", "Indirizzo");
tableMapping.ColumnMappings.Add("Eta", "Eta");
+ tableMapping.ColumnMappings.Add("RecTel", "RecTel");
+ tableMapping.ColumnMappings.Add("Medico", "Medico");
+ tableMapping.ColumnMappings.Add("Note", "Note");
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 ([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.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.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, "", "", ""));
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, "", "", ""));
@@ -5326,12 +5439,16 @@ namespace MedPred_Data.DS_ApplicazioneTableAdapters {
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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Eta", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Eta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RecTel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecTel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Medico", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Medico", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ 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] ([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.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.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, "", "", ""));
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, "", "", ""));
@@ -5339,11 +5456,15 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
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.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, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Medico", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Medico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ 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 [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.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.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, "", "", ""));
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, "", "", ""));
@@ -5351,7 +5472,11 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
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("@RecTel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecTel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Medico", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Medico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.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.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_Gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", 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, "", "", ""));
@@ -5360,7 +5485,10 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
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("@Original_Eta", global::System.Data.SqlDbType.Float, 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("@Original_RecTel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecTel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Medico", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Medico", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.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.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, "", "", ""));
}
@@ -5377,8 +5505,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
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, LuogoNascita, Sesso, CodF, In" +
- "dirizzo, Eta\r\nFROM AnagPazienti";
+ this._commandCollection[0].CommandText = "SELECT * FROM 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;
@@ -5397,6 +5524,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
this._commandCollection[3].CommandText = "dbo.stp_AP_insertQuery";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Gruppo", global::System.Data.SqlDbType.NVarChar, 5, 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("@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, "", "", ""));
@@ -5404,6 +5532,9 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
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[3].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[3].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[3].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, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "dbo.stp_AP_updateQuery";
@@ -5416,6 +5547,9 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
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("@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, "", "", ""));
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, "", "", ""));
}
@@ -5493,52 +5627,76 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
[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_LuogoNascita, string Original_Sesso, string Original_CodF, string Original_Indirizzo, global::System.Nullable Original_Eta) {
+ 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) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxPaziente));
+ if ((Original_Gruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_Gruppo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Gruppo));
+ }
if ((Original_Cognome == null)) {
throw new global::System.ArgumentNullException("Original_Cognome");
}
else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Cognome));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Cognome));
}
if ((Original_Nome == null)) {
throw new global::System.ArgumentNullException("Original_Nome");
}
else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Nome));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Nome));
}
- this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_DataNasc));
+ this.Adapter.DeleteCommand.Parameters[4].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));
+ this.Adapter.DeleteCommand.Parameters[5].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));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Sesso));
}
if ((Original_CodF == null)) {
throw new global::System.ArgumentNullException("Original_CodF");
}
else {
- this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodF));
+ this.Adapter.DeleteCommand.Parameters[7].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));
+ this.Adapter.DeleteCommand.Parameters[8].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));
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((double)(Original_Eta.Value));
}
else {
- this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].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));
+ }
+ if ((Original_Medico == null)) {
+ throw new global::System.ArgumentNullException("Original_Medico");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[12].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));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -5560,43 +5718,67 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
[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 LuogoNascita, string Sesso, string CodF, string Indirizzo) {
+ 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) {
+ if ((Gruppo == null)) {
+ throw new global::System.ArgumentNullException("Gruppo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Gruppo));
+ }
if ((Cognome == null)) {
throw new global::System.ArgumentNullException("Cognome");
}
else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Cognome));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cognome));
}
if ((Nome == null)) {
throw new global::System.ArgumentNullException("Nome");
}
else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Nome));
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Nome));
}
- this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DataNasc));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DataNasc));
if ((LuogoNascita == null)) {
throw new global::System.ArgumentNullException("LuogoNascita");
}
else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(LuogoNascita));
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(LuogoNascita));
}
if ((Sesso == null)) {
throw new global::System.ArgumentNullException("Sesso");
}
else {
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Sesso));
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Sesso));
}
if ((CodF == null)) {
throw new global::System.ArgumentNullException("CodF");
}
else {
- this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodF));
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodF));
}
if ((Indirizzo == null)) {
throw new global::System.ArgumentNullException("Indirizzo");
}
else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Indirizzo));
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Indirizzo));
+ }
+ if ((RecTel == null)) {
+ throw new global::System.ArgumentNullException("RecTel");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[8].Value = ((string)(RecTel));
+ }
+ if ((Medico == null)) {
+ throw new global::System.ArgumentNullException("Medico");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Medico));
+ }
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Note));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -5619,6 +5801,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
+ string Gruppo,
string Cognome,
string Nome,
System.DateTime DataNasc,
@@ -5626,7 +5809,11 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
string Sesso,
string CodF,
string Indirizzo,
+ string RecTel,
+ string Medico,
+ string Note,
int Original_IdxPaziente,
+ string Original_Gruppo,
string Original_Cognome,
string Original_Nome,
System.DateTime Original_DataNasc,
@@ -5634,92 +5821,143 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
string Original_Sesso,
string Original_CodF,
string Original_Indirizzo,
- global::System.Nullable Original_Eta,
+ global::System.Nullable Original_Eta,
+ string Original_RecTel,
+ string Original_Medico,
+ string Original_Note,
int IdxPaziente) {
+ if ((Gruppo == null)) {
+ throw new global::System.ArgumentNullException("Gruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Gruppo));
+ }
if ((Cognome == null)) {
throw new global::System.ArgumentNullException("Cognome");
}
else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Cognome));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cognome));
}
if ((Nome == null)) {
throw new global::System.ArgumentNullException("Nome");
}
else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Nome));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nome));
}
- this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DataNasc));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DataNasc));
if ((LuogoNascita == null)) {
throw new global::System.ArgumentNullException("LuogoNascita");
}
else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(LuogoNascita));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(LuogoNascita));
}
if ((Sesso == null)) {
throw new global::System.ArgumentNullException("Sesso");
}
else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Sesso));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Sesso));
}
if ((CodF == null)) {
throw new global::System.ArgumentNullException("CodF");
}
else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodF));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodF));
}
if ((Indirizzo == null)) {
throw new global::System.ArgumentNullException("Indirizzo");
}
else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Indirizzo));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Indirizzo));
+ }
+ if ((RecTel == null)) {
+ throw new global::System.ArgumentNullException("RecTel");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(RecTel));
+ }
+ if ((Medico == null)) {
+ throw new global::System.ArgumentNullException("Medico");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].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[11].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[7].Value = ((int)(Original_IdxPaziente));
if ((Original_Cognome == null)) {
throw new global::System.ArgumentNullException("Original_Cognome");
}
else {
- this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Cognome));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Cognome));
}
if ((Original_Nome == null)) {
throw new global::System.ArgumentNullException("Original_Nome");
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Nome));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Nome));
}
- this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_DataNasc));
+ this.Adapter.UpdateCommand.Parameters[15].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));
+ this.Adapter.UpdateCommand.Parameters[16].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[17].Value = ((string)(Original_Sesso));
}
if ((Original_CodF == null)) {
throw new global::System.ArgumentNullException("Original_CodF");
}
else {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_CodF));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_CodF));
}
if ((Original_Indirizzo == null)) {
throw new global::System.ArgumentNullException("Original_Indirizzo");
}
else {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Indirizzo));
+ this.Adapter.UpdateCommand.Parameters[19].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));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(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[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
}
- this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(IdxPaziente));
+ if ((Original_RecTel == null)) {
+ throw new global::System.ArgumentNullException("Original_RecTel");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].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));
+ }
+ 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[25].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)) {
@@ -5741,6 +5979,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
+ string Gruppo,
string Cognome,
string Nome,
System.DateTime DataNasc,
@@ -5748,7 +5987,11 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
string Sesso,
string CodF,
string Indirizzo,
+ string RecTel,
+ string Medico,
+ string Note,
int Original_IdxPaziente,
+ string Original_Gruppo,
string Original_Cognome,
string Original_Nome,
System.DateTime Original_DataNasc,
@@ -5756,8 +5999,11 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
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.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);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5793,49 +6039,73 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
[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 LuogoNascita, string CodF, string Indirizzo, string Sesso) {
+ 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) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
- if ((Cognome == null)) {
+ if ((Gruppo == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[1].Value = ((string)(Cognome));
+ command.Parameters[1].Value = ((string)(Gruppo));
}
- if ((Nome == null)) {
+ if ((Cognome == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[2].Value = ((string)(Nome));
+ command.Parameters[2].Value = ((string)(Cognome));
}
- if ((DataNasc.HasValue == true)) {
- command.Parameters[3].Value = ((System.DateTime)(DataNasc.Value));
- }
- else {
+ if ((Nome == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
- if ((LuogoNascita == null)) {
- command.Parameters[4].Value = global::System.DBNull.Value;
+ else {
+ command.Parameters[3].Value = ((string)(Nome));
+ }
+ if ((DataNasc.HasValue == true)) {
+ command.Parameters[4].Value = ((System.DateTime)(DataNasc.Value));
}
else {
- command.Parameters[4].Value = ((string)(LuogoNascita));
+ command.Parameters[4].Value = global::System.DBNull.Value;
}
- if ((CodF == null)) {
+ if ((LuogoNascita == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[5].Value = ((string)(CodF));
+ command.Parameters[5].Value = ((string)(LuogoNascita));
}
- if ((Indirizzo == null)) {
+ if ((CodF == null)) {
command.Parameters[6].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[6].Value = ((string)(Indirizzo));
+ command.Parameters[6].Value = ((string)(CodF));
}
- if ((Sesso == null)) {
+ if ((Indirizzo == null)) {
command.Parameters[7].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[7].Value = ((string)(Sesso));
+ command.Parameters[7].Value = ((string)(Indirizzo));
+ }
+ if ((Sesso == null)) {
+ command.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[8].Value = ((string)(Sesso));
+ }
+ if ((RecTel == null)) {
+ command.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[9].Value = ((string)(RecTel));
+ }
+ if ((Medico == null)) {
+ command.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[10].Value = ((string)(Medico));
+ }
+ if ((Note == null)) {
+ command.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[11].Value = ((string)(Note));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
@@ -5858,7 +6128,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
[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, 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, string RecTel, string Medico, string Note, 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;
@@ -5902,11 +6172,29 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
else {
command.Parameters[7].Value = ((string)(Sesso));
}
- if ((Original_IdxPaziente.HasValue == true)) {
- command.Parameters[8].Value = ((int)(Original_IdxPaziente.Value));
+ if ((RecTel == null)) {
+ command.Parameters[8].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[8].Value = global::System.DBNull.Value;
+ command.Parameters[8].Value = ((string)(RecTel));
+ }
+ if ((Medico == null)) {
+ command.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[9].Value = ((string)(Medico));
+ }
+ if ((Note == null)) {
+ command.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[10].Value = ((string)(Note));
+ }
+ if ((Original_IdxPaziente.HasValue == true)) {
+ command.Parameters[11].Value = ((int)(Original_IdxPaziente.Value));
+ }
+ else {
+ command.Parameters[11].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 251dc9b..3fa914e 100644
--- a/MedPred_Data/DS_Applicazione.xsd
+++ b/MedPred_Data/DS_Applicazione.xsd
@@ -12,9 +12,10 @@
- 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)))
+ 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))
+
@@ -23,15 +24,19 @@
-
+
+
+
+
- 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())
+ 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())
+
@@ -39,21 +44,24 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
+
+
+
- SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizzo, Eta
-FROM AnagPazienti
+ SELECT * FROM AnagPazienti
- 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)
+ 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)
+
@@ -61,7 +69,11 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
+
+
+
+
@@ -70,7 +82,10 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
-
+
+
+
+
@@ -79,14 +94,18 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
+
-
+
+
+
+
@@ -117,6 +136,7 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
dbo.stp_AP_insertQuery
+
@@ -124,6 +144,9 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
+
+
+
@@ -141,6 +164,9 @@ SELECT IdxPaziente, Cognome, Nome, DataNasc, LuogoNascita, Sesso, CodF, Indirizz
+
+
+
@@ -903,6 +929,13 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1,
+
+
+
+
+
+
+
@@ -918,13 +951,6 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1,
-
-
-
-
-
-
-
@@ -939,6 +965,13 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1,
+
+
+
+
+
+
+
@@ -946,7 +979,28 @@ SELECT IdxPaziente, DataVisita, PaSis, PaDia, QR1, QR1_Kg, VO2, VO2_Kg, FC_QR1,
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MedPred_Data/DS_Applicazione.xss b/MedPred_Data/DS_Applicazione.xss
index e9bb2a8..a43d7a0 100644
--- a/MedPred_Data/DS_Applicazione.xss
+++ b/MedPred_Data/DS_Applicazione.xss
@@ -4,57 +4,57 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
+
-
-
-
-
+
+
+
+
- 691
- 388
+ 697
+ 397
- 691
- 426
+ 697
+ 453
577
- 426
+ 453
-
+
- 974
- 226
+ 980
+ 178
1100
- 226
+ 178
-
+
- 723
- 388
+ 729
+ 397
- 723
+ 729
474
-
+
1077
@@ -66,15 +66,15 @@
1006
- 439
+ 453
- 860
- 439
+ 866
+ 453
- 860
- 388
+ 866
+ 397