inserito in stored x creazioen AL TT passaggio parametri
- num tratt - durezza
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Generated
+18
-11
@@ -38070,8 +38070,9 @@ SELECT AL, TipoAL, Numero, Cesta, Attivo, DataCreaz, CodSoggetto, CodDtx_start,
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoAl", 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("@DataCreaz", 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("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 17, 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("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, 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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumTratt", 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("@Durezza", 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("@AL", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.InputOutput, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
@@ -38490,7 +38491,7 @@ SELECT AL, TipoAL, Numero, Cesta, Attivo, DataCreaz, CodSoggetto, CodDtx_start,
|
||||
[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 object insertNewTT(string SourceAL, string TipoAl, global::System.Nullable<global::System.DateTime> DataCreaz, string CodSoggetto, string CodEvento, string Note, ref string AL) {
|
||||
public virtual object insertNewTT(string SourceAL, string TipoAl, global::System.Nullable<global::System.DateTime> DataCreaz, string CodSoggetto, string Note, string NumTratt, string Durezza, ref string AL) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
if ((SourceAL == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -38516,23 +38517,29 @@ SELECT AL, TipoAL, Numero, Cesta, Attivo, DataCreaz, CodSoggetto, CodDtx_start,
|
||||
else {
|
||||
command.Parameters[4].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
if ((CodEvento == null)) {
|
||||
if ((Note == null)) {
|
||||
command.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[5].Value = ((string)(CodEvento));
|
||||
command.Parameters[5].Value = ((string)(Note));
|
||||
}
|
||||
if ((Note == null)) {
|
||||
if ((NumTratt == null)) {
|
||||
command.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[6].Value = ((string)(Note));
|
||||
command.Parameters[6].Value = ((string)(NumTratt));
|
||||
}
|
||||
if ((AL == null)) {
|
||||
if ((Durezza == null)) {
|
||||
command.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[7].Value = ((string)(AL));
|
||||
command.Parameters[7].Value = ((string)(Durezza));
|
||||
}
|
||||
if ((AL == null)) {
|
||||
command.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[8].Value = ((string)(AL));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
@@ -38548,12 +38555,12 @@ SELECT AL, TipoAL, Numero, Cesta, Attivo, DataCreaz, CodSoggetto, CodDtx_start,
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
if (((command.Parameters[7].Value == null)
|
||||
|| (command.Parameters[7].Value.GetType() == typeof(global::System.DBNull)))) {
|
||||
if (((command.Parameters[8].Value == null)
|
||||
|| (command.Parameters[8].Value.GetType() == typeof(global::System.DBNull)))) {
|
||||
AL = null;
|
||||
}
|
||||
else {
|
||||
AL = ((string)(command.Parameters[7].Value));
|
||||
AL = ((string)(command.Parameters[8].Value));
|
||||
}
|
||||
if (((returnValue == null)
|
||||
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
|
||||
|
||||
@@ -3625,8 +3625,9 @@ SELECT AL, TipoAL, Numero, Cesta, Attivo, DataCreaz, CodSoggetto, CodDtx_start,
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="char" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@TipoAl" Precision="0" ProviderType="Char" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataCreaz" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodSoggetto" Precision="0" ProviderType="VarChar" Scale="0" Size="17" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodEvento" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@NumTratt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Durezza" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="InputOutput" ParameterName="@AL" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
|
||||
@@ -284,8 +284,10 @@ namespace GMW_data
|
||||
/// <param name="tipologia">tipologia (T)</param>
|
||||
/// <param name="CodSoggetto">Operatore</param>
|
||||
/// <param name="note">Note</param>
|
||||
/// <param name="NumTratt">Numero Trattamento</param>
|
||||
/// <param name="Durezza">Durezza rilevata</param>
|
||||
/// <returns></returns>
|
||||
public string creaAssociaAlTT(string SourceAL, tipoAL tipologia, string CodSoggetto, string note)
|
||||
public string creaAssociaAlTT(string SourceAL, tipoAL tipologia, string CodSoggetto, string note, string NumTratt, string Durezza)
|
||||
{
|
||||
// imposto valori default
|
||||
string TipoAL = "";
|
||||
@@ -308,7 +310,7 @@ namespace GMW_data
|
||||
// creo nuovo Assieme Logico ed associo UDC!
|
||||
try
|
||||
{
|
||||
taEA.insertNewTT(SourceAL, TipoAL, DataRif, CodSoggetto, CodEvento, note, ref AL);
|
||||
taEA.insertNewTT(SourceAL, TipoAL, DataRif, CodSoggetto, note, NumTratt, Durezza, ref AL);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user