diff --git a/MedPred/VGen.aspx b/MedPred/VGen.aspx index bcacc15..ce3e4a9 100644 --- a/MedPred/VGen.aspx +++ b/MedPred/VGen.aspx @@ -8,33 +8,97 @@ - <%----%> - - - - - + + +
+ + +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - / + +
+
+
- + + + + - / + +
+
+
- + - + + - + + + + - + +
+
+
-
diff --git a/MedPred/Visite.aspx b/MedPred/Visite.aspx index 4d4876c..48644f8 100644 --- a/MedPred/Visite.aspx +++ b/MedPred/Visite.aspx @@ -7,28 +7,20 @@ -
- Navigazione dettagli +
-
diff --git a/MedPred_Data/DS_Applicazione.Designer.cs b/MedPred_Data/DS_Applicazione.Designer.cs index e73ee90..5e53b79 100644 --- a/MedPred_Data/DS_Applicazione.Designer.cs +++ b/MedPred_Data/DS_Applicazione.Designer.cs @@ -2865,13 +2865,54 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, G" + "rassoTot, GrassoViscPerc, GrassoVisc, GrassoViscTot, MassaMagraTotPerc, MassaMag" + "raTot FROM dbo.VisGen"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_VGen_DeteleQuery"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_VGen_getByPaziente"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_VGen_InsertQuery"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Altezza", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CirconfVita", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoTotPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoViscPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MassaMagraTotPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_VGen_UpdateQuery"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Altezza", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CirconfVita", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoTotPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrassoViscPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MassaMagraTotPerc", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2898,6 +2939,23 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.VisGenDataTable getByPaziente(global::System.Nullable IdxPaziente) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxPaziente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_Applicazione.VisGenDataTable dataTable = new DS_Applicazione.VisGenDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -3079,6 +3137,195 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, double Original_MassaMagraTot) { return this.Update(Original_IdxPaziente, Original_DataVisita, Peso, Altezza, CirconfVita, GrassoTotPerc, GrassoViscPerc, MassaMagraTotPerc, Original_IdxPaziente, Original_DataVisita, Original_Peso, Original_Altezza, Original_BMI, Original_CirconfVita, Original_GrassoTotPerc, Original_GrassoTot, Original_GrassoViscPerc, Original_GrassoVisc, Original_GrassoViscTot, Original_MassaMagraTotPerc, Original_MassaMagraTot); } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int DeteleQuery(global::System.Nullable Original_IdxPaziente, global::System.Nullable Original_DataVisita) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[1].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Original_DataVisita.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable Peso, global::System.Nullable Altezza, global::System.Nullable CirconfVita, global::System.Nullable GrassoTotPerc, global::System.Nullable GrassoViscPerc, global::System.Nullable MassaMagraTotPerc) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((IdxPaziente.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxPaziente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataVisita.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Peso.HasValue == true)) { + command.Parameters[3].Value = ((double)(Peso.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Altezza.HasValue == true)) { + command.Parameters[4].Value = ((double)(Altezza.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((CirconfVita.HasValue == true)) { + command.Parameters[5].Value = ((double)(CirconfVita.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((GrassoTotPerc.HasValue == true)) { + command.Parameters[6].Value = ((double)(GrassoTotPerc.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((GrassoViscPerc.HasValue == true)) { + command.Parameters[7].Value = ((double)(GrassoViscPerc.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((MassaMagraTotPerc.HasValue == true)) { + command.Parameters[8].Value = ((double)(MassaMagraTotPerc.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) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable Peso, global::System.Nullable Altezza, global::System.Nullable CirconfVita, global::System.Nullable GrassoTotPerc, global::System.Nullable GrassoViscPerc, global::System.Nullable MassaMagraTotPerc, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((IdxPaziente.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxPaziente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataVisita.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Peso.HasValue == true)) { + command.Parameters[3].Value = ((double)(Peso.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Altezza.HasValue == true)) { + command.Parameters[4].Value = ((double)(Altezza.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((CirconfVita.HasValue == true)) { + command.Parameters[5].Value = ((double)(CirconfVita.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((GrassoTotPerc.HasValue == true)) { + command.Parameters[6].Value = ((double)(GrassoTotPerc.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((GrassoViscPerc.HasValue == true)) { + command.Parameters[7].Value = ((double)(GrassoViscPerc.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((MassaMagraTotPerc.HasValue == true)) { + command.Parameters[8].Value = ((double)(MassaMagraTotPerc.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_DataVisita.HasValue == true)) { + command.Parameters[9].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + command.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[10].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[10].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } } /// diff --git a/MedPred_Data/DS_Applicazione.xsd b/MedPred_Data/DS_Applicazione.xsd index 2f77512..05bfbb7 100644 --- a/MedPred_Data/DS_Applicazione.xsd +++ b/MedPred_Data/DS_Applicazione.xsd @@ -212,7 +212,69 @@ SELECT IdxPaziente, DataVisita, Peso, Altezza, BMI, CirconfVita, GrassoTotPerc, - + + + + + dbo.stp_VGen_DeteleQuery + + + + + + + + + + + + dbo.stp_VGen_getByPaziente + + + + + + + + + + + dbo.stp_VGen_InsertQuery + + + + + + + + + + + + + + + + + + dbo.stp_VGen_UpdateQuery + + + + + + + + + + + + + + + + + diff --git a/MedPred_Data/DS_Applicazione.xss b/MedPred_Data/DS_Applicazione.xss index e407435..ebc309c 100644 --- a/MedPred_Data/DS_Applicazione.xss +++ b/MedPred_Data/DS_Applicazione.xss @@ -4,10 +4,10 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - +