diff --git a/MedPred/Accettazione.aspx b/MedPred/Accettazione.aspx index 609ddf7..d119861 100644 --- a/MedPred/Accettazione.aspx +++ b/MedPred/Accettazione.aspx @@ -80,7 +80,7 @@ - + diff --git a/MedPred/VBMA.aspx.cs b/MedPred/VBMA.aspx.cs index 4b66607..df8e43f 100644 --- a/MedPred/VBMA.aspx.cs +++ b/MedPred/VBMA.aspx.cs @@ -37,10 +37,6 @@ namespace MedPred /// protected void frmView_ModeChanged(object sender, EventArgs e) { - if (frmView.CurrentMode == FormViewMode.ReadOnly && prevMode == FormViewMode.Insert) - { - Response.Redirect("Visite"); - } } /// /// evento delete diff --git a/MedPred/VCP.aspx b/MedPred/VCP.aspx index 2e7296d..04a7276 100644 --- a/MedPred/VCP.aspx +++ b/MedPred/VCP.aspx @@ -9,13 +9,13 @@
    -
  • Data:
  • +
  • Data
  • <%: Request.QueryString["DataVisita"] %>
    -
  • Pressione Arteriosa:
  • +
  • Pressione Arteriosa
  • Sistolica mmHg @@ -32,7 +32,7 @@
    -
  • Capacità Lavoro Muscolare:
  • +
  • Capacità Lavoro Muscolare
  • QR1 watt @@ -43,7 +43,7 @@
    -
  • Consumo VO2:
  • +
  • Consumo VO2
  • VO2 ml/min @@ -56,7 +56,7 @@
    -
  • Bpm:
  • +
  • Bpm
  • FC a QR1 bpm @@ -67,7 +67,7 @@
    -
  • Pressione Arteriosa MAX:
  • +
  • Pressione Arteriosa MAX
  • Sistolica mmHg @@ -121,13 +121,13 @@
      -
    • Data:
    • +
    • Data
    • <%: Request.QueryString["DataVisita"] %>
      -
    • Pressione Arteriosa:
    • +
    • Pressione Arteriosa
    • Sistolica mmHg @@ -144,7 +144,7 @@
      -
    • Capacità Lavoro Muscolare:
    • +
    • Capacità Lavoro Muscolare
    • QR1 watt @@ -155,7 +155,7 @@
      -
    • Consumo VO2:
    • +
    • Consumo VO2
    • VO2 ml/min @@ -168,7 +168,7 @@
      -
    • Bpm:
    • +
    • Bpm
    • FC a QR1 bpm @@ -179,7 +179,7 @@
      -
    • Pressione Arteriosa MAX:
    • +
    • Pressione Arteriosa MAX
    • Sistolica mmHg @@ -233,13 +233,13 @@
        -
      • Data:
      • +
      • Data
      • <%: Request.QueryString["DataVisita"] %>
        -
      • Pressione Arteriosa:
      • +
      • Pressione Arteriosa
      • Sistolica mmHg @@ -256,7 +256,7 @@
        -
      • Capacità Lavoro Muscolare:
      • +
      • Capacità Lavoro Muscolare
      • QR1 watt @@ -267,7 +267,7 @@
        -
      • Consumo VO2:
      • +
      • Consumo VO2
      • VO2 ml/min @@ -280,7 +280,7 @@
        -
      • Bpm:
      • +
      • Bpm
      • FC a QR1 bpm @@ -291,7 +291,7 @@
        -
      • Pressione Arteriosa MAX:
      • +
      • Pressione Arteriosa MAX
      • Sistolica mmHg diff --git a/MedPred/VCP.aspx.cs b/MedPred/VCP.aspx.cs index 6f604d6..6a842f1 100644 --- a/MedPred/VCP.aspx.cs +++ b/MedPred/VCP.aspx.cs @@ -37,10 +37,6 @@ namespace MedPred /// protected void frmView_ModeChanged(object sender, EventArgs e) { - if (frmView.CurrentMode == FormViewMode.ReadOnly && prevMode == FormViewMode.Insert) - { - Response.Redirect("Visite"); - } } /// /// evento delete diff --git a/MedPred/VL.aspx.cs b/MedPred/VL.aspx.cs index c04c315..f6d73dc 100644 --- a/MedPred/VL.aspx.cs +++ b/MedPred/VL.aspx.cs @@ -37,10 +37,6 @@ namespace MedPred /// protected void frmView_ModeChanged(object sender, EventArgs e) { - if (frmView.CurrentMode == FormViewMode.ReadOnly && prevMode == FormViewMode.Insert) - { - Response.Redirect("Visite"); - } } /// /// evento delete diff --git a/MedPred/VP.aspx b/MedPred/VP.aspx index c06b7dd..6ed2f29 100644 --- a/MedPred/VP.aspx +++ b/MedPred/VP.aspx @@ -283,11 +283,6 @@ - - - - - @@ -296,7 +291,6 @@ - @@ -305,11 +299,6 @@ - - - - - diff --git a/MedPred/VP.aspx.cs b/MedPred/VP.aspx.cs index 1035e5d..76b484d 100644 --- a/MedPred/VP.aspx.cs +++ b/MedPred/VP.aspx.cs @@ -37,10 +37,6 @@ namespace MedPred /// protected void frmView_ModeChanged(object sender, EventArgs e) { - if (frmView.CurrentMode == FormViewMode.ReadOnly && prevMode == FormViewMode.Insert) - { - Response.Redirect("Visite"); - } } /// /// evento delete diff --git a/MedPred_Data/DS_Applicazione.Designer.cs b/MedPred_Data/DS_Applicazione.Designer.cs index 1f69b3b..f11d8a4 100644 --- a/MedPred_Data/DS_Applicazione.Designer.cs +++ b/MedPred_Data/DS_Applicazione.Designer.cs @@ -10573,13 +10573,61 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm [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, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyImm" + ", Test15ParReyDif, ApprSuSpanViSpa, StroopTestInterfErr, TestStimeCognErr, TestS" + "timeCognBiz, TorreLondra FROM dbo.VisPsico"; 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_VP_DeleteQuery"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_VP_getByPaziente"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataVisita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_VP_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("@TestTMT_A", 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("@TestTMT_B", 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("@TestTMT_BA", 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("@Test15ParReyImm", 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("@Test15ParReyDif", 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("@ApprSuSpanViSpa", 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("@StroopTestInterfErr", 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("@TestStimeCognErr", 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("@TestStimeCognBiz", 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("@TorreLondra", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_VP_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("@TestTMT_A", 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("@TestTMT_B", 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("@TestTMT_BA", 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("@Test15ParReyImm", 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("@Test15ParReyDif", 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("@ApprSuSpanViSpa", 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("@StroopTestInterfErr", 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("@TestStimeCognErr", 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("@TestStimeCognBiz", 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("@TorreLondra", 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("@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()] @@ -10606,6 +10654,29 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm 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.VisPsicoDataTable getByPaziente(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxPaziente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataVisita.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataVisita.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_Applicazione.VisPsicoDataTable dataTable = new DS_Applicazione.VisPsicoDataTable(); + 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")] @@ -10799,6 +10870,228 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm int Original_TorreLondra) { return this.Update(Original_IdxPaziente, Original_DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyImm, Test15ParReyDif, ApprSuSpanViSpa, StroopTestInterfErr, TestStimeCognErr, TestStimeCognBiz, TorreLondra, Original_IdxPaziente, Original_DataVisita, Original_TestTMT_A, Original_TestTMT_B, Original_TestTMT_BA, Original_Test15ParReyImm, Original_Test15ParReyDif, Original_ApprSuSpanViSpa, Original_StroopTestInterfErr, Original_TestStimeCognErr, Original_TestStimeCognBiz, Original_TorreLondra); } + + [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")] + public virtual int DeleteQuery(global::System.Nullable Original_IdxPaziente, global::System.Nullable Original_DataVisita) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[1].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Original_DataVisita.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int InsertQuery(global::System.Nullable IdxPaziente, global::System.Nullable DataVisita, global::System.Nullable TestTMT_A, global::System.Nullable TestTMT_B, global::System.Nullable TestTMT_BA, global::System.Nullable Test15ParReyImm, global::System.Nullable Test15ParReyDif, global::System.Nullable ApprSuSpanViSpa, global::System.Nullable StroopTestInterfErr, global::System.Nullable TestStimeCognErr, global::System.Nullable TestStimeCognBiz, global::System.Nullable TorreLondra) { + 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 ((TestTMT_A.HasValue == true)) { + command.Parameters[3].Value = ((int)(TestTMT_A.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((TestTMT_B.HasValue == true)) { + command.Parameters[4].Value = ((int)(TestTMT_B.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((TestTMT_BA.HasValue == true)) { + command.Parameters[5].Value = ((int)(TestTMT_BA.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Test15ParReyImm.HasValue == true)) { + command.Parameters[6].Value = ((int)(Test15ParReyImm.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Test15ParReyDif.HasValue == true)) { + command.Parameters[7].Value = ((int)(Test15ParReyDif.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((ApprSuSpanViSpa.HasValue == true)) { + command.Parameters[8].Value = ((int)(ApprSuSpanViSpa.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + if ((StroopTestInterfErr.HasValue == true)) { + command.Parameters[9].Value = ((int)(StroopTestInterfErr.Value)); + } + else { + command.Parameters[9].Value = global::System.DBNull.Value; + } + if ((TestStimeCognErr.HasValue == true)) { + command.Parameters[10].Value = ((int)(TestStimeCognErr.Value)); + } + else { + command.Parameters[10].Value = global::System.DBNull.Value; + } + if ((TestStimeCognBiz.HasValue == true)) { + command.Parameters[11].Value = ((int)(TestStimeCognBiz.Value)); + } + else { + command.Parameters[11].Value = global::System.DBNull.Value; + } + if ((TorreLondra.HasValue == true)) { + command.Parameters[12].Value = ((int)(TorreLondra.Value)); + } + else { + command.Parameters[12].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int UpdateQuery(global::System.Nullable TestTMT_A, global::System.Nullable TestTMT_B, global::System.Nullable TestTMT_BA, global::System.Nullable Test15ParReyImm, global::System.Nullable Test15ParReyDif, global::System.Nullable ApprSuSpanViSpa, global::System.Nullable StroopTestInterfErr, global::System.Nullable TestStimeCognErr, global::System.Nullable TestStimeCognBiz, global::System.Nullable TorreLondra, global::System.Nullable Original_DataVisita, global::System.Nullable Original_IdxPaziente) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((TestTMT_A.HasValue == true)) { + command.Parameters[1].Value = ((int)(TestTMT_A.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((TestTMT_B.HasValue == true)) { + command.Parameters[2].Value = ((int)(TestTMT_B.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((TestTMT_BA.HasValue == true)) { + command.Parameters[3].Value = ((int)(TestTMT_BA.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Test15ParReyImm.HasValue == true)) { + command.Parameters[4].Value = ((int)(Test15ParReyImm.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Test15ParReyDif.HasValue == true)) { + command.Parameters[5].Value = ((int)(Test15ParReyDif.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((ApprSuSpanViSpa.HasValue == true)) { + command.Parameters[6].Value = ((int)(ApprSuSpanViSpa.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((StroopTestInterfErr.HasValue == true)) { + command.Parameters[7].Value = ((int)(StroopTestInterfErr.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((TestStimeCognErr.HasValue == true)) { + command.Parameters[8].Value = ((int)(TestStimeCognErr.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + if ((TestStimeCognBiz.HasValue == true)) { + command.Parameters[9].Value = ((int)(TestStimeCognBiz.Value)); + } + else { + command.Parameters[9].Value = global::System.DBNull.Value; + } + if ((TorreLondra.HasValue == true)) { + command.Parameters[10].Value = ((int)(TorreLondra.Value)); + } + else { + command.Parameters[10].Value = global::System.DBNull.Value; + } + if ((Original_DataVisita.HasValue == true)) { + command.Parameters[11].Value = ((System.DateTime)(Original_DataVisita.Value)); + } + else { + command.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_IdxPaziente.HasValue == true)) { + command.Parameters[12].Value = ((int)(Original_IdxPaziente.Value)); + } + else { + command.Parameters[12].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } } /// diff --git a/MedPred_Data/DS_Applicazione.xsd b/MedPred_Data/DS_Applicazione.xsd index 9806c48..f972fb1 100644 --- a/MedPred_Data/DS_Applicazione.xsd +++ b/MedPred_Data/DS_Applicazione.xsd @@ -1021,7 +1021,76 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - + + + + + dbo.stp_VP_DeleteQuery + + + + + + + + + + + + dbo.stp_VP_getByPaziente + + + + + + + + + + + + dbo.stp_VP_InsertQuery + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VP_UpdateQuery + + + + + + + + + + + + + + + + + + + @@ -1031,7 +1100,7 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - + @@ -1110,7 +1179,7 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - + @@ -1124,7 +1193,7 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - + @@ -1146,7 +1215,7 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - + @@ -1169,7 +1238,7 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - + @@ -1197,7 +1266,7 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - + @@ -1239,7 +1308,7 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - + @@ -1295,11 +1364,11 @@ SELECT IdxPaziente, DataVisita, TestTMT_A, TestTMT_B, TestTMT_BA, Test15ParReyIm - - - - - + + + + + \ No newline at end of file diff --git a/MedPred_Data/DS_Applicazione.xss b/MedPred_Data/DS_Applicazione.xss index 3414927..9a74ea5 100644 --- a/MedPred_Data/DS_Applicazione.xss +++ b/MedPred_Data/DS_Applicazione.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + @@ -12,7 +12,7 @@ - + @@ -90,7 +90,7 @@ 835 - 520 + 628 835