From 939a183cb271e6507fe6dc24d247a6a30f1a1e6a Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 19 Sep 2018 18:35:27 +0200 Subject: [PATCH] Inseriti NUOVI metodi x setup (da completare fix in codice...) --- MapoDb/DS_ProdTempi.Designer.cs | 371 ++++++++++++++++++-------------- MapoDb/DS_ProdTempi.xsd | 25 ++- MapoDb/DS_ProdTempi.xss | 6 +- 3 files changed, 229 insertions(+), 173 deletions(-) diff --git a/MapoDb/DS_ProdTempi.Designer.cs b/MapoDb/DS_ProdTempi.Designer.cs index c9f03c59..758d63f4 100644 --- a/MapoDb/DS_ProdTempi.Designer.cs +++ b/MapoDb/DS_ProdTempi.Designer.cs @@ -16388,6 +16388,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[12].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[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16397,6 +16398,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[13].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[13].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[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16406,6 +16408,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[14].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[14].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[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16416,6 +16419,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[15].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[15].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[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16435,6 +16439,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[17].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[17].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[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16453,6 +16458,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[19].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[19].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[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -16467,6 +16473,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[20].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[20].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[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -16768,7 +16775,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int inizioSetup(global::System.Nullable idxODL, string IdxMacchina, global::System.Nullable TCRichAttr, string Note) { + public virtual int inizioSetup(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, string Note) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); @@ -16776,112 +16783,20 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile else { command.Parameters[1].Value = global::System.DBNull.Value; } - if ((IdxMacchina == null)) { - command.Parameters[2].Value = global::System.DBNull.Value; + if ((MatrOpr.HasValue == true)) { + command.Parameters[2].Value = ((int)(MatrOpr.Value)); } else { - command.Parameters[2].Value = ((string)(IdxMacchina)); + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(IdxMacchina)); } if ((TCRichAttr.HasValue == true)) { - command.Parameters[3].Value = ((decimal)(TCRichAttr.Value)); - } - else { - command.Parameters[3].Value = global::System.DBNull.Value; - } - if ((Note == null)) { - command.Parameters[4].Value = global::System.DBNull.Value; - } - else { - command.Parameters[4].Value = ((string)(Note)); - } - 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", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int inizioSetupPromessa(global::System.Nullable idxPromessa, string IdxMacchina, global::System.Nullable TCRichAttr, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[13]; - if ((idxPromessa.HasValue == true)) { - command.Parameters[1].Value = ((int)(idxPromessa.Value)); - } - else { - command.Parameters[1].Value = global::System.DBNull.Value; - } - if ((IdxMacchina == null)) { - command.Parameters[2].Value = global::System.DBNull.Value; - } - else { - command.Parameters[2].Value = ((string)(IdxMacchina)); - } - if ((TCRichAttr.HasValue == true)) { - command.Parameters[3].Value = ((decimal)(TCRichAttr.Value)); - } - else { - command.Parameters[3].Value = global::System.DBNull.Value; - } - if ((Note == null)) { - command.Parameters[4].Value = global::System.DBNull.Value; - } - else { - command.Parameters[4].Value = ((string)(Note)); - } - 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", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int insertProvv(string CodArticolo, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[14]; - if ((CodArticolo == null)) { - command.Parameters[1].Value = global::System.DBNull.Value; - } - else { - command.Parameters[1].Value = ((string)(CodArticolo)); - } - if ((IdxMacchina == null)) { - command.Parameters[2].Value = global::System.DBNull.Value; - } - else { - command.Parameters[2].Value = ((string)(IdxMacchina)); - } - if ((NumPezzi.HasValue == true)) { - command.Parameters[3].Value = ((int)(NumPezzi.Value)); - } - else { - command.Parameters[3].Value = global::System.DBNull.Value; - } - if ((TCAssegnato.HasValue == true)) { - command.Parameters[4].Value = ((decimal)(TCAssegnato.Value)); + command.Parameters[4].Value = ((decimal)(TCRichAttr.Value)); } else { command.Parameters[4].Value = global::System.DBNull.Value; @@ -16909,11 +16824,121 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile return returnValue; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int inizioSetupPromessa(global::System.Nullable idxPromessa, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, string Note) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[13]; + if ((idxPromessa.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxPromessa.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + command.Parameters[2].Value = ((int)(MatrOpr.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(IdxMacchina)); + } + if ((TCRichAttr.HasValue == true)) { + command.Parameters[4].Value = ((decimal)(TCRichAttr.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Note == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(Note)); + } + 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", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int insertProvv(string CodArticolo, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, string Note) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[14]; + if ((CodArticolo == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodArticolo)); + } + if ((MatrOpr.HasValue == true)) { + command.Parameters[2].Value = ((int)(MatrOpr.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(IdxMacchina)); + } + if ((NumPezzi.HasValue == true)) { + command.Parameters[4].Value = ((int)(NumPezzi.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((TCAssegnato.HasValue == true)) { + command.Parameters[5].Value = ((decimal)(TCAssegnato.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Note == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(Note)); + } + 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", "15.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 CodArticolo, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable PzPallet, global::System.Nullable ToAs400, string CommessaAs400) { + public virtual int InsertQuery(string CodArticolo, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable PzPallet, global::System.Nullable ToAs400, string CommessaAs400) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[15]; if ((CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -16921,41 +16946,47 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile else { command.Parameters[1].Value = ((string)(CodArticolo)); } - if ((IdxMacchina == null)) { + if ((MatrOpr.HasValue == true)) { + command.Parameters[2].Value = ((int)(MatrOpr.Value)); + } + else { command.Parameters[2].Value = global::System.DBNull.Value; } - else { - command.Parameters[2].Value = ((string)(IdxMacchina)); - } - if ((NumPezzi.HasValue == true)) { - command.Parameters[3].Value = ((int)(NumPezzi.Value)); - } - else { + if ((IdxMacchina == null)) { command.Parameters[3].Value = global::System.DBNull.Value; } - if ((TCAssegnato.HasValue == true)) { - command.Parameters[4].Value = ((decimal)(TCAssegnato.Value)); + else { + command.Parameters[3].Value = ((string)(IdxMacchina)); + } + if ((NumPezzi.HasValue == true)) { + command.Parameters[4].Value = ((int)(NumPezzi.Value)); } else { command.Parameters[4].Value = global::System.DBNull.Value; } - if ((PzPallet.HasValue == true)) { - command.Parameters[5].Value = ((int)(PzPallet.Value)); + if ((TCAssegnato.HasValue == true)) { + command.Parameters[5].Value = ((decimal)(TCAssegnato.Value)); } else { command.Parameters[5].Value = global::System.DBNull.Value; } - if ((ToAs400.HasValue == true)) { - command.Parameters[6].Value = ((bool)(ToAs400.Value)); + if ((PzPallet.HasValue == true)) { + command.Parameters[6].Value = ((int)(PzPallet.Value)); } else { command.Parameters[6].Value = global::System.DBNull.Value; } - if ((CommessaAs400 == null)) { - command.Parameters[7].Value = global::System.DBNull.Value; + if ((ToAs400.HasValue == true)) { + command.Parameters[7].Value = ((bool)(ToAs400.Value)); } else { - command.Parameters[7].Value = ((string)(CommessaAs400)); + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((CommessaAs400 == null)) { + command.Parameters[8].Value = global::System.DBNull.Value; + } + else { + command.Parameters[8].Value = ((string)(CommessaAs400)); } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) @@ -17011,7 +17042,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int splitODL(global::System.Nullable idxODL, string IdxMacchina, global::System.Nullable TCRichAttr, string Note, global::System.Nullable StartNewOdl) { + public virtual int splitODL(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, string Note, global::System.Nullable StartNewOdl) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); @@ -17019,29 +17050,35 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile else { command.Parameters[1].Value = global::System.DBNull.Value; } - if ((IdxMacchina == null)) { + if ((MatrOpr.HasValue == true)) { + command.Parameters[2].Value = ((int)(MatrOpr.Value)); + } + else { command.Parameters[2].Value = global::System.DBNull.Value; } - else { - command.Parameters[2].Value = ((string)(IdxMacchina)); - } - if ((TCRichAttr.HasValue == true)) { - command.Parameters[3].Value = ((decimal)(TCRichAttr.Value)); - } - else { + if ((IdxMacchina == null)) { command.Parameters[3].Value = global::System.DBNull.Value; } - if ((Note == null)) { + else { + command.Parameters[3].Value = ((string)(IdxMacchina)); + } + if ((TCRichAttr.HasValue == true)) { + command.Parameters[4].Value = ((decimal)(TCRichAttr.Value)); + } + else { command.Parameters[4].Value = global::System.DBNull.Value; } + if ((Note == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } else { - command.Parameters[4].Value = ((string)(Note)); + command.Parameters[5].Value = ((string)(Note)); } if ((StartNewOdl.HasValue == true)) { - command.Parameters[5].Value = ((bool)(StartNewOdl.Value)); + command.Parameters[6].Value = ((bool)(StartNewOdl.Value)); } else { - command.Parameters[5].Value = global::System.DBNull.Value; + command.Parameters[6].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) @@ -17104,7 +17141,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 CodArticolo, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable PzPallet, global::System.Nullable DataInizio, global::System.Nullable DataFine, string Note, global::System.Nullable Original_IdxODL) { + public virtual int UpdateQuery(string CodArticolo, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable PzPallet, global::System.Nullable DataInizio, global::System.Nullable DataFine, string Note, global::System.Nullable Original_IdxODL) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19]; if ((CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -17112,53 +17149,59 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile else { command.Parameters[1].Value = ((string)(CodArticolo)); } - if ((IdxMacchina == null)) { + if ((MatrOpr.HasValue == true)) { + command.Parameters[2].Value = ((int)(MatrOpr.Value)); + } + else { command.Parameters[2].Value = global::System.DBNull.Value; } - else { - command.Parameters[2].Value = ((string)(IdxMacchina)); - } - if ((NumPezzi.HasValue == true)) { - command.Parameters[3].Value = ((int)(NumPezzi.Value)); - } - else { + if ((IdxMacchina == null)) { command.Parameters[3].Value = global::System.DBNull.Value; } - if ((TCAssegnato.HasValue == true)) { - command.Parameters[4].Value = ((decimal)(TCAssegnato.Value)); + else { + command.Parameters[3].Value = ((string)(IdxMacchina)); + } + if ((NumPezzi.HasValue == true)) { + command.Parameters[4].Value = ((int)(NumPezzi.Value)); } else { command.Parameters[4].Value = global::System.DBNull.Value; } - if ((PzPallet.HasValue == true)) { - command.Parameters[5].Value = ((int)(PzPallet.Value)); + if ((TCAssegnato.HasValue == true)) { + command.Parameters[5].Value = ((decimal)(TCAssegnato.Value)); } else { command.Parameters[5].Value = global::System.DBNull.Value; } - if ((DataInizio.HasValue == true)) { - command.Parameters[6].Value = ((System.DateTime)(DataInizio.Value)); + if ((PzPallet.HasValue == true)) { + command.Parameters[6].Value = ((int)(PzPallet.Value)); } else { command.Parameters[6].Value = global::System.DBNull.Value; } - if ((DataFine.HasValue == true)) { - command.Parameters[7].Value = ((System.DateTime)(DataFine.Value)); + if ((DataInizio.HasValue == true)) { + command.Parameters[7].Value = ((System.DateTime)(DataInizio.Value)); } else { command.Parameters[7].Value = global::System.DBNull.Value; } - if ((Note == null)) { + if ((DataFine.HasValue == true)) { + command.Parameters[8].Value = ((System.DateTime)(DataFine.Value)); + } + else { command.Parameters[8].Value = global::System.DBNull.Value; } + if ((Note == null)) { + command.Parameters[9].Value = global::System.DBNull.Value; + } else { - command.Parameters[8].Value = ((string)(Note)); + command.Parameters[9].Value = ((string)(Note)); } if ((Original_IdxODL.HasValue == true)) { - command.Parameters[9].Value = ((int)(Original_IdxODL.Value)); + command.Parameters[10].Value = ((int)(Original_IdxODL.Value)); } else { - command.Parameters[9].Value = global::System.DBNull.Value; + 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) @@ -17180,7 +17223,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int updateSetup(global::System.Nullable idxODL, global::System.Nullable TCRichAttr, string Note) { + public virtual int updateSetup(global::System.Nullable idxODL, global::System.Nullable MatrOpr, global::System.Nullable TCRichAttr, string Note) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); @@ -17188,17 +17231,23 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile else { command.Parameters[1].Value = global::System.DBNull.Value; } - if ((TCRichAttr.HasValue == true)) { - command.Parameters[2].Value = ((decimal)(TCRichAttr.Value)); + if ((MatrOpr.HasValue == true)) { + command.Parameters[2].Value = ((int)(MatrOpr.Value)); } else { command.Parameters[2].Value = global::System.DBNull.Value; } - if ((Note == null)) { - command.Parameters[3].Value = global::System.DBNull.Value; + if ((TCRichAttr.HasValue == true)) { + command.Parameters[3].Value = ((decimal)(TCRichAttr.Value)); } else { - command.Parameters[3].Value = ((string)(Note)); + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Note == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Note)); } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd index 6e1aaa78..41488dc5 100644 --- a/MapoDb/DS_ProdTempi.xsd +++ b/MapoDb/DS_ProdTempi.xsd @@ -320,6 +320,7 @@ ORDER BY idxODL DESC + @@ -334,6 +335,7 @@ ORDER BY idxODL DESC + @@ -348,6 +350,7 @@ ORDER BY idxODL DESC + @@ -363,6 +366,7 @@ ORDER BY idxODL DESC + @@ -392,6 +396,7 @@ ORDER BY idxODL DESC + @@ -420,6 +425,7 @@ ORDER BY idxODL DESC + @@ -439,6 +445,7 @@ ORDER BY idxODL DESC + @@ -2563,7 +2570,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + @@ -2644,7 +2651,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + @@ -2673,7 +2680,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + @@ -2685,7 +2692,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + @@ -2710,7 +2717,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + @@ -2748,7 +2755,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + @@ -2787,7 +2794,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + @@ -2853,7 +2860,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + @@ -2872,7 +2879,7 @@ SELECT idxPromessa, KeyRichiesta, Attivabile, IdxODL, CodArticolo, CodGruppo, Id - + diff --git a/MapoDb/DS_ProdTempi.xss b/MapoDb/DS_ProdTempi.xss index 21a3cc02..041b86b2 100644 --- a/MapoDb/DS_ProdTempi.xss +++ b/MapoDb/DS_ProdTempi.xss @@ -4,10 +4,10 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + @@ -28,7 +28,7 @@ - + \ No newline at end of file