diff --git a/MP-TAB/MP-TAB.csproj b/MP-TAB/MP-TAB.csproj index f5681e2c..466cf18e 100644 --- a/MP-TAB/MP-TAB.csproj +++ b/MP-TAB/MP-TAB.csproj @@ -707,6 +707,7 @@ + @@ -1040,6 +1041,13 @@ cmp_newODL.ascx + + cmp_selOdlOrd.ascx + ASPXCodeBehind + + + cmp_selOdlOrd.ascx + cmp_selPODL.ascx ASPXCodeBehind diff --git a/MP-TAB/WebUserControls/BaseUserControl.cs b/MP-TAB/WebUserControls/BaseUserControl.cs index da5d8efa..fedaa762 100644 --- a/MP-TAB/WebUserControls/BaseUserControl.cs +++ b/MP-TAB/WebUserControls/BaseUserControl.cs @@ -86,6 +86,9 @@ namespace MoonProTablet.WebUserControls /// public bool enableTabSetPzPallet = memLayer.ML.cdvb("enableTabSetPzPallet"); + public string kSearchKeyExt = "keySearchOdl"; + public string kSearchOdl = "keySearchOdl"; + #endregion Public Fields #region Public Events @@ -228,7 +231,7 @@ namespace MoonProTablet.WebUserControls { memLayer.ML.setSessionVal("idxODL", value); // resetto cache redis - if(value==0) + if (value == 0) { DataLayerObj.emptyCurrODL(idxMacchina); } diff --git a/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx b/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx new file mode 100644 index 00000000..8ba3c937 --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx @@ -0,0 +1,38 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_selOdlOrd.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_selOdlOrd" %> +
+
+
+
+ Ultimi +
+ +
+
+
+
+
+ COMMESSA +
+ + + + + + + + +
+ +
+
+
+
+ ODL +
+ +
+ +
+
+
+
\ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx.cs b/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx.cs new file mode 100644 index 00000000..f0beab88 --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MoonProTablet.WebUserControls +{ + public partial class cmp_selOdlOrd : BaseUserControl + { + #region Protected Properties + + protected int numRec + { + get + { + int answ = 10; + int.TryParse(txtNumLast.Text.Trim(), out answ); + return answ; + } + set + { + txtNumLast.Text = $"{value}"; + } + } + + protected string reqKeyKext + { + get + { + return txtKeyExt.Text.Trim(); + } + set + { + txtKeyExt.Text = value; + } + } + + protected string reqOdl + { + get + { + return txtOdl.Text.Trim(); + } + set + { + txtOdl.Text = value; + } + } + + protected string searchKeyKext + { + get + { + return SteamWare.memLayer.ML.StringSessionObj(kSearchKeyExt); + } + set + { + SteamWare.memLayer.ML.setSessionVal(kSearchKeyExt, value); + } + } + + protected string searchOdl + { + get + { + return SteamWare.memLayer.ML.StringSessionObj(kSearchOdl); + } + set + { + SteamWare.memLayer.ML.setSessionVal(kSearchOdl, value); + } + } + + #endregion Protected Properties + + #region Protected Methods + + protected void lbtResetKeyExt_Click(object sender, EventArgs e) + { + searchKeyKext = ""; + reqKeyKext = ""; + } + + protected void lbtResetOdl_Click(object sender, EventArgs e) + { + searchOdl = ""; + reqOdl = ""; + } + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + numRec = 10; + } + } + + protected void txtKeyExt_TextChanged(object sender, EventArgs e) + { + searchKeyKext = reqKeyKext; + } + + protected void txtNumLast_TextChanged(object sender, EventArgs e) + { + // aggiorna DDL + } + + protected void txtOdl_TextChanged(object sender, EventArgs e) + { + searchOdl = reqOdl; + } + + #endregion Protected Methods + } +} \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx.designer.cs new file mode 100644 index 00000000..e8231654 --- /dev/null +++ b/MP-TAB/WebUserControls/cmp_selOdlOrd.ascx.designer.cs @@ -0,0 +1,80 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MoonProTablet.WebUserControls +{ + + + public partial class cmp_selOdlOrd + { + + /// + /// txtNumLast control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtNumLast; + + /// + /// ddlOdl control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlOdl; + + /// + /// odl control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odl; + + /// + /// txtKeyExt control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtKeyExt; + + /// + /// lbtResetKeyExt control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtResetKeyExt; + + /// + /// txtOdl control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtOdl; + + /// + /// lbtResetOdl control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtResetOdl; + } +} diff --git a/MP-TAB/WebUserControls/mod_elencoScarti.ascx b/MP-TAB/WebUserControls/mod_elencoScarti.ascx index 58be22c8..c62600f4 100644 --- a/MP-TAB/WebUserControls/mod_elencoScarti.ascx +++ b/MP-TAB/WebUserControls/mod_elencoScarti.ascx @@ -1,62 +1,61 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoScarti.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_elencoScarti" %> <%@ Register Src="~/WebUserControls/mod_selPeriodo.ascx" TagPrefix="uc1" TagName="mod_selPeriodo" %> +<%@ Register Src="~/WebUserControls/cmp_selOdlOrd.ascx" TagPrefix="uc1" TagName="cmp_selOdlOrd" %>
-
- - - - Nessun record trovato - - - - -
-
-
- Art: - -
-
- <%# Eval("Descrizione") %>' -
-
-
- - <%# Eval("Qta") %> - pz -
-
-
- - -
-
+
+ + + + + Nessun record trovato + + + + +
+
+
+ Art: + +
+
+ <%# Eval("Descrizione") %>' +
+
+
+ + <%# Eval("Qta") %> + pz +
+
+
+ + +
+
+ + + +
+
+
+ Nota: - - -
-
-
- Nota: - - -
-
- - - - - - - - - - - - -
-
- - - + +
+
+ + + + + + + + + + + + +
+ \ No newline at end of file diff --git a/MP-TAB/WebUserControls/mod_elencoScarti.ascx.designer.cs b/MP-TAB/WebUserControls/mod_elencoScarti.ascx.designer.cs index 3ced51f7..80819fe3 100644 --- a/MP-TAB/WebUserControls/mod_elencoScarti.ascx.designer.cs +++ b/MP-TAB/WebUserControls/mod_elencoScarti.ascx.designer.cs @@ -1,41 +1,52 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ -namespace MoonProTablet.WebUserControls { - - - public partial class mod_elencoScarti { - +namespace MoonProTablet.WebUserControls +{ + + + public partial class mod_elencoScarti + { + /// - /// Controllo mod_selPeriodo. + /// cmp_selOdlOrd control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::MoonProTablet.WebUserControls.cmp_selOdlOrd cmp_selOdlOrd; + + /// + /// mod_selPeriodo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::MoonProTablet.WebUserControls.mod_selPeriodo mod_selPeriodo; - + /// - /// Controllo grView. + /// grView control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.GridView grView; - + /// - /// Controllo ods. + /// ods control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; } diff --git a/MP-TAB/WebUserControls/mod_selPeriodo.ascx b/MP-TAB/WebUserControls/mod_selPeriodo.ascx index 114a5215..9d8b45b8 100644 --- a/MP-TAB/WebUserControls/mod_selPeriodo.ascx +++ b/MP-TAB/WebUserControls/mod_selPeriodo.ascx @@ -1,40 +1,5 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selPeriodo.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_selPeriodo" %> -<%if (false) - { %> - -<%} %> -
@@ -46,8 +11,8 @@
- - + +
diff --git a/MP-TAB/WebUserControls/mod_selPeriodo.ascx.designer.cs b/MP-TAB/WebUserControls/mod_selPeriodo.ascx.designer.cs index 11f574d7..17152f2b 100644 --- a/MP-TAB/WebUserControls/mod_selPeriodo.ascx.designer.cs +++ b/MP-TAB/WebUserControls/mod_selPeriodo.ascx.designer.cs @@ -14,15 +14,6 @@ namespace MoonProTablet.WebUserControls public partial class mod_selPeriodo { - /// - /// BundleReference1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1; - /// /// ddlSelPeriodo control. /// diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd index 451e5532..65d6542b 100644 --- a/MapoDb/DS_ProdTempi.xsd +++ b/MapoDb/DS_ProdTempi.xsd @@ -399,6 +399,18 @@ FROM v_ODL_exp ORDER BY IdxODL DESC + + + + dbo.stp_ODL_getLastByMacchinaNum + + + + + + + + @@ -2932,7 +2944,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3013,7 +3025,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3025,7 +3037,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3050,7 +3062,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3088,7 +3100,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3127,7 +3139,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3193,7 +3205,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3270,7 +3282,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3305,7 +3317,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + @@ -3327,7 +3339,7 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + diff --git a/MapoDb/DS_ProdTempi.xss b/MapoDb/DS_ProdTempi.xss index 35d74843..f80f28e7 100644 --- a/MapoDb/DS_ProdTempi.xss +++ b/MapoDb/DS_ProdTempi.xss @@ -8,13 +8,13 @@ - + - + diff --git a/MapoDb/DS_ProdTempi1.Designer.cs b/MapoDb/DS_ProdTempi1.Designer.cs index 23fa9682..4a3d1c41 100644 --- a/MapoDb/DS_ProdTempi1.Designer.cs +++ b/MapoDb/DS_ProdTempi1.Designer.cs @@ -17519,7 +17519,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[26]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[27]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ODL_exp ORDER BY IdxODL DESC"; @@ -17619,26 +17619,22 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile 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[14] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[14].Connection = this.Connection; - this._commandCollection[14].CommandText = "dbo.stp_ODL_needAppr"; + this._commandCollection[14].CommandText = "dbo.stp_ODL_getLastByMacchinaNum"; 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("@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("@numRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[15].Connection = this.Connection; - this._commandCollection[15].CommandText = "dbo.stp_ODL_inizioSetup"; + this._commandCollection[15].CommandText = "dbo.stp_ODL_needAppr"; 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("@idxODL", 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("@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("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", 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("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[16].Connection = this.Connection; - this._commandCollection[16].CommandText = "dbo.stp_ODL_inizioSetupPromessa"; + this._commandCollection[16].CommandText = "dbo.stp_ODL_inizioSetup"; this._commandCollection[16].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[16].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[16].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[16].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[16].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[16].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[16].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, "", "", "")); @@ -17646,26 +17642,26 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[16].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, "", "", "")); this._commandCollection[17] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[17].Connection = this.Connection; - this._commandCollection[17].CommandText = "dbo.stp_ODL_inizioSetupPromessaPostuma"; + this._commandCollection[17].CommandText = "dbo.stp_ODL_inizioSetupPromessa"; 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("@idxPromessa", 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("@PzPallet", 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("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[18] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[18].Connection = this.Connection; - this._commandCollection[18].CommandText = "dbo.stp_ODL_insertProvv"; + this._commandCollection[18].CommandText = "dbo.stp_ODL_inizioSetupPromessaPostuma"; this._commandCollection[18].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[18].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[18].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[18].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[18].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[18].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[18].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[18].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, "", "", "")); - this._commandCollection[18].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, "", "", "")); this._commandCollection[19] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[19].Connection = this.Connection; - this._commandCollection[19].CommandText = "dbo.stp_ODL_insertQuery"; + this._commandCollection[19].CommandText = "dbo.stp_ODL_insertProvv"; 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, "", "", "")); @@ -17673,68 +17669,79 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile 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, "", "", "")); - this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", 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("@ToAs400", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CommessaAs400", 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("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[20] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[20].Connection = this.Connection; - this._commandCollection[20].CommandText = "dbo.stp_ODL_insPostumo"; + this._commandCollection[20].CommandText = "dbo.stp_ODL_insertQuery"; 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("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].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[20].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, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", 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("@ToAs400", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CommessaAs400", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[21] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[21].Connection = this.Connection; - this._commandCollection[21].CommandText = "dbo.stp_ODL_reopenOdlMacc"; + this._commandCollection[21].CommandText = "dbo.stp_ODL_insPostumo"; this._commandCollection[21].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[21].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[21].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[21].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[22] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[22].Connection = this.Connection; - this._commandCollection[22].CommandText = "dbo.stp_ODL_split"; + this._commandCollection[22].CommandText = "dbo.stp_ODL_reopenOdlMacc"; this._commandCollection[22].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[22].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[22].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[22].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[22].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[22].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[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[22].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, "", "", "")); - this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[23] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[23].Connection = this.Connection; - this._commandCollection[23].CommandText = "dbo.stp_ODL_updateQta"; + this._commandCollection[23].CommandText = "dbo.stp_ODL_split"; this._commandCollection[23].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[23].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[23].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[23].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[23].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[23].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[23].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[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].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, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[24] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[24].Connection = this.Connection; - this._commandCollection[24].CommandText = "dbo.stp_ODL_update"; + this._commandCollection[24].CommandText = "dbo.stp_ODL_updateQta"; this._commandCollection[24].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[24].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[24].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[24].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[24].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[24].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[24].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, "", "", "")); this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].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, "", "", "")); this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[25] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[25].Connection = this.Connection; - this._commandCollection[25].CommandText = "dbo.stp_ODL_updateSetup"; + this._commandCollection[25].CommandText = "dbo.stp_ODL_update"; this._commandCollection[25].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[25].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[25].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[25].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[25].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[25].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[25].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[25].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[25].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, "", "", "")); this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[25].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, "", "", "")); + this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[26] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[26].Connection = this.Connection; + this._commandCollection[26].CommandText = "dbo.stp_ODL_updateSetup"; + this._commandCollection[26].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[26].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[26].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[26].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[26].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[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[26].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, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17920,8 +17927,31 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_ProdTempi.ODLDataTable getNeedAppr() { + public virtual DS_ProdTempi.ODLDataTable getLastByMaccNum(string IdxMacchina, global::System.Nullable numRec) { this.Adapter.SelectCommand = this.CommandCollection[14]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((numRec.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(numRec.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.ODLDataTable getNeedAppr() { + this.Adapter.SelectCommand = this.CommandCollection[15]; DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -17932,7 +17962,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable reopenGetLast(string IdxMacchina) { - this.Adapter.SelectCommand = this.CommandCollection[21]; + this.Adapter.SelectCommand = this.CommandCollection[22]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -18171,7 +18201,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int inizioSetup(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[15]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[16]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18229,7 +18259,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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, global::System.Nullable PzPallet, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[16]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17]; if ((idxPromessa.HasValue == true)) { command.Parameters[1].Value = ((int)(idxPromessa.Value)); } @@ -18287,7 +18317,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int inizioSetupPromessaPostuma(global::System.Nullable idxPromessa, global::System.Nullable MatrOpr, string IdxMacchina) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[18]; if ((idxPromessa.HasValue == true)) { command.Parameters[1].Value = ((int)(idxPromessa.Value)); } @@ -18327,7 +18357,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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[18]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19]; if ((CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -18386,7 +18416,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] 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[19]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20]; if ((CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -18456,7 +18486,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int insPostumo(global::System.Nullable idxODL, string IdxMacchina) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18490,7 +18520,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int splitODL(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note, global::System.Nullable StartNewOdl, global::System.Nullable QtyRich) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[22]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[23]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18560,7 +18590,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateQta(global::System.Nullable NumPezzi, global::System.Nullable PzPallet, global::System.Nullable Original_IdxODL) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[23]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[24]; if ((NumPezzi.HasValue == true)) { command.Parameters[1].Value = ((int)(NumPezzi.Value)); } @@ -18601,7 +18631,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] 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[24]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[25]; if ((CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -18683,7 +18713,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateSetup(global::System.Nullable idxODL, global::System.Nullable MatrOpr, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[25]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[26]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } diff --git a/MapoDb/DS_Utility.Designer.cs b/MapoDb/DS_Utility.Designer.cs index 035eacd6..b456de32 100644 --- a/MapoDb/DS_Utility.Designer.cs +++ b/MapoDb/DS_Utility.Designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ // -// Il codice è stato generato da uno strumento. -// Versione runtime:4.0.30319.42000 +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 // -// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se -// il codice viene rigenerato. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. // //------------------------------------------------------------------------------ @@ -4784,7 +4784,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableStatoMacchine.InizioStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'InizioStato\' nella tabella \'StatoMacchine\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'InizioStato\' in table \'StatoMacchine\' is DBNull.", e); } } set { @@ -4800,7 +4800,7 @@ namespace MapoDb { return ((string)(this[this.tableStatoMacchine.ValueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Value\' nella tabella \'StatoMacchine\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'StatoMacchine\' is DBNull.", e); } } set { @@ -4816,7 +4816,7 @@ namespace MapoDb { return ((double)(this[this.tableStatoMacchine.TempoCicloBaseColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'TempoCicloBase\' nella tabella \'StatoMacchine\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'StatoMacchine\' is DBNull.", e); } } set { @@ -4832,7 +4832,7 @@ namespace MapoDb { return ((int)(this[this.tableStatoMacchine.PzPalletProdColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'PzPalletProd\' nella tabella \'StatoMacchine\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'PzPalletProd\' in table \'StatoMacchine\' is DBNull.", e); } } set { @@ -4848,7 +4848,7 @@ namespace MapoDb { return ((int)(this[this.tableStatoMacchine.MatrOprColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'MatrOpr\' nella tabella \'StatoMacchine\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'StatoMacchine\' is DBNull.", e); } } set { @@ -4864,7 +4864,7 @@ namespace MapoDb { return ((string)(this[this.tableStatoMacchine.palletColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'pallet\' nella tabella \'StatoMacchine\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'StatoMacchine\' is DBNull.", e); } } set { @@ -4880,7 +4880,7 @@ namespace MapoDb { return ((string)(this[this.tableStatoMacchine.CodArticoloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo\' nella tabella \'StatoMacchine\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'StatoMacchine\' is DBNull.", e); } } set { @@ -5006,7 +5006,7 @@ namespace MapoDb { return ((string)(this[this.tablev_selArticoli.labelColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selArticoli\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selArticoli\' is DBNull.", e); } } set { @@ -5060,7 +5060,7 @@ namespace MapoDb { return ((string)(this[this.tablev_selOperatori.labelColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selOperatori\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selOperatori\' is DBNull.", e); } } set { @@ -5114,7 +5114,7 @@ namespace MapoDb { return ((string)(this[this.tablev_selODL.labelColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selODL\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selODL\' is DBNull.", e); } } set { @@ -5130,7 +5130,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tablev_selODL.conditioColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'conditio\' nella tabella \'v_selODL\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'conditio\' in table \'v_selODL\' is DBNull.", e); } } set { @@ -5196,7 +5196,7 @@ namespace MapoDb { return ((string)(this[this.tablev_selEventiBCode.labelColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selEventiBCode\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selEventiBCode\' is DBNull.", e); } } set { @@ -5250,7 +5250,7 @@ namespace MapoDb { return ((string)(this[this.tablev_selMacchine.labelColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selMacchine\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selMacchine\' is DBNull.", e); } } set { @@ -5304,8 +5304,7 @@ namespace MapoDb { return ((string)(this[this.tablestp_statusCorrente.CodMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodMacchina\' nella tabella \'stp_statusCorrente\' è DBNull" + - ".", e); + throw new global::System.Data.StrongTypingException("The value for column \'CodMacchina\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5332,7 +5331,7 @@ namespace MapoDb { return ((string)(this[this.tablestp_statusCorrente.NomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Nome\' nella tabella \'stp_statusCorrente\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5348,8 +5347,7 @@ namespace MapoDb { return ((string)(this[this.tablestp_statusCorrente.DescrizioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Descrizione\' nella tabella \'stp_statusCorrente\' è DBNull" + - ".", e); + throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5365,7 +5363,7 @@ namespace MapoDb { return ((string)(this[this.tablestp_statusCorrente.urlColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'url\' nella tabella \'stp_statusCorrente\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'url\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5381,7 +5379,7 @@ namespace MapoDb { return ((string)(this[this.tablestp_statusCorrente.locazioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'locazione\' nella tabella \'stp_statusCorrente\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'locazione\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5397,8 +5395,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tablestp_statusCorrente.DataOraServerColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataOraServer\' nella tabella \'stp_statusCorrente\' è DBNu" + - "ll.", e); + throw new global::System.Data.StrongTypingException("The value for column \'DataOraServer\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5414,8 +5411,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tablestp_statusCorrente.DataOraMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataOraMacchina\' nella tabella \'stp_statusCorrente\' è DB" + - "Null.", e); + throw new global::System.Data.StrongTypingException("The value for column \'DataOraMacchina\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5431,8 +5427,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tablestp_statusCorrente.DataOraStartColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataOraStart\' nella tabella \'stp_statusCorrente\' è DBNul" + - "l.", e); + throw new global::System.Data.StrongTypingException("The value for column \'DataOraStart\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5448,7 +5443,7 @@ namespace MapoDb { return ((string)(this[this.tablestp_statusCorrente.IPv4Column])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'IPv4\' nella tabella \'stp_statusCorrente\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'IPv4\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5464,8 +5459,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tablestp_statusCorrente.lastRebootColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'lastReboot\' nella tabella \'stp_statusCorrente\' è DBNull." + - "", e); + throw new global::System.Data.StrongTypingException("The value for column \'lastReboot\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5481,7 +5475,7 @@ namespace MapoDb { return ((string)(this[this.tablestp_statusCorrente.uptimeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'uptime\' nella tabella \'stp_statusCorrente\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'uptime\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5497,7 +5491,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tablestp_statusCorrente.lastEventColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'lastEvent\' nella tabella \'stp_statusCorrente\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'lastEvent\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5513,7 +5507,7 @@ namespace MapoDb { return ((int)(this[this.tablestp_statusCorrente.idxStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxStato\' nella tabella \'stp_statusCorrente\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'idxStato\' in table \'stp_statusCorrente\' is DBNull.", e); } } set { @@ -5744,7 +5738,7 @@ namespace MapoDb { return ((string)(this[this.tableCommenti.ValueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Value\' nella tabella \'Commenti\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'Commenti\' is DBNull.", e); } } set { @@ -5760,7 +5754,7 @@ namespace MapoDb { return ((string)(this[this.tableCommenti.OperatoreColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Operatore\' nella tabella \'Commenti\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'Operatore\' in table \'Commenti\' is DBNull.", e); } } set { @@ -5837,7 +5831,7 @@ namespace MapoDb { return ((string)(this[this.tableFermiNonQual.MacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Macchina\' nella tabella \'FermiNonQual\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'Macchina\' in table \'FermiNonQual\' is DBNull.", e); } } set { @@ -5864,7 +5858,7 @@ namespace MapoDb { return ((string)(this[this.tableFermiNonQual.StatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Stato\' nella tabella \'FermiNonQual\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'Stato\' in table \'FermiNonQual\' is DBNull.", e); } } set { @@ -5880,7 +5874,7 @@ namespace MapoDb { return ((string)(this[this.tableFermiNonQual.SemaforoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Semaforo\' nella tabella \'FermiNonQual\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'Semaforo\' in table \'FermiNonQual\' is DBNull.", e); } } set { @@ -5896,7 +5890,7 @@ namespace MapoDb { return ((double)(this[this.tableFermiNonQual.DurataMinutiColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'DurataMinuti\' nella tabella \'FermiNonQual\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'DurataMinuti\' in table \'FermiNonQual\' is DBNull.", e); } } set { @@ -5912,7 +5906,7 @@ namespace MapoDb { return ((string)(this[this.tableFermiNonQual.ValueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Value\' nella tabella \'FermiNonQual\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'FermiNonQual\' is DBNull.", e); } } set { @@ -5928,7 +5922,7 @@ namespace MapoDb { return ((string)(this[this.tableFermiNonQual.CodArticoloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo\' nella tabella \'FermiNonQual\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'FermiNonQual\' is DBNull.", e); } } set { @@ -6031,7 +6025,7 @@ namespace MapoDb { return ((long)(this[this.tablev_selTally.labelColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selTally\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selTally\' is DBNull.", e); } } set { @@ -6047,7 +6041,7 @@ namespace MapoDb { return ((long)(this[this.tablev_selTally.valueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'value\' nella tabella \'v_selTally\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_selTally\' is DBNull.", e); } } set { @@ -6209,7 +6203,7 @@ namespace MapoDb { return ((string)(this[this.tablev_selListVal.valueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'value\' nella tabella \'v_selListVal\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_selListVal\' is DBNull.", e); } } set { @@ -6225,7 +6219,7 @@ namespace MapoDb { return ((string)(this[this.tablev_selListVal.labelColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selListVal\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selListVal\' is DBNull.", e); } } set { @@ -7826,19 +7820,26 @@ SELECT IdxMacchina, IdxStato, InizioStato, Value, CodArticolo, TempoCicloBase, P [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT * FROM v_selODL"; 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_vsODL_getUnused"; + this._commandCollection[1].CommandText = "dbo.stp_vsODL_getLastByMacc"; 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("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showAll", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numDayAdd", 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("@numRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, 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_vsODL_getUnused"; + 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("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showAll", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numDayAdd", 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()] @@ -7869,7 +7870,7 @@ SELECT IdxMacchina, IdxStato, InizioStato, Value, CodArticolo, TempoCicloBase, P [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_Utility.v_selODLDataTable getUnused(string IdxMacchina, global::System.Nullable showAll, global::System.Nullable numDayAdd) { + public virtual DS_Utility.v_selODLDataTable getLastByMacc(string IdxMacchina, global::System.Nullable numRec) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -7877,6 +7878,29 @@ SELECT IdxMacchina, IdxStato, InizioStato, Value, CodArticolo, TempoCicloBase, P else { this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); } + if ((numRec.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(numRec.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_Utility.v_selODLDataTable dataTable = new DS_Utility.v_selODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selODLDataTable getUnused(string IdxMacchina, global::System.Nullable showAll, global::System.Nullable numDayAdd) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } if ((showAll.HasValue == true)) { this.Adapter.SelectCommand.Parameters[2].Value = ((bool)(showAll.Value)); } @@ -9997,14 +10021,13 @@ SELECT IdxMacchina, IdxStato, InizioStato, Value, CodArticolo, TempoCicloBase, P } if (((this._statoMacchineTableAdapter != null) && (this.MatchTableAdapterConnection(this._statoMacchineTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + - "a stessa stringa di connessione."); + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { - throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" + - "età TableAdapter di ciascun oggetto TableAdapterManager su un\'istanza TableAdapt" + - "er valida."); + throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + + "ger TableAdapter property to a valid TableAdapter instance."); } bool workConnOpened = false; if (((workConnection.State & global::System.Data.ConnectionState.Broken) @@ -10017,8 +10040,8 @@ SELECT IdxMacchina, IdxStato, InizioStato, Value, CodArticolo, TempoCicloBase, P } global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); if ((workTransaction == null)) { - throw new global::System.ApplicationException("Impossibile avviare la transazione. La connessione dati corrente non supporta le " + - "transazioni oppure lo stato corrente non consente l\'avvio della transazione."); + throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + + "ctions or the current state is not allowing the transaction to begin."); } global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); diff --git a/MapoDb/DS_Utility.xsd b/MapoDb/DS_Utility.xsd index 2380a017..18beba05 100644 --- a/MapoDb/DS_Utility.xsd +++ b/MapoDb/DS_Utility.xsd @@ -180,6 +180,18 @@ ORDER BY label + + + + dbo.stp_vsODL_getLastByMacc + + + + + + + + @@ -583,7 +595,7 @@ FROM dbo.v_selCauScarto - + @@ -597,7 +609,7 @@ FROM dbo.v_selCauScarto - + @@ -612,7 +624,7 @@ FROM dbo.v_selCauScarto - + @@ -626,7 +638,7 @@ FROM dbo.v_selCauScarto - + @@ -646,7 +658,7 @@ FROM dbo.v_selCauScarto - + @@ -715,7 +727,7 @@ FROM dbo.v_selCauScarto - + @@ -751,7 +763,7 @@ FROM dbo.v_selCauScarto - + @@ -802,7 +814,7 @@ FROM dbo.v_selCauScarto - + @@ -810,7 +822,7 @@ FROM dbo.v_selCauScarto - + @@ -844,7 +856,7 @@ FROM dbo.v_selCauScarto - + @@ -871,7 +883,7 @@ FROM dbo.v_selCauScarto - + diff --git a/MapoDb/DS_Utility.xss b/MapoDb/DS_Utility.xss index a9e07e05..7978145c 100644 --- a/MapoDb/DS_Utility.xss +++ b/MapoDb/DS_Utility.xss @@ -9,7 +9,7 @@ - +