diff --git a/AppData/ComLib.cs b/AppData/ComLib.cs index af1a26c..edde4b1 100644 --- a/AppData/ComLib.cs +++ b/AppData/ComLib.cs @@ -357,7 +357,7 @@ namespace AppData /// /// /// - private static ProdBunk getBunkFromDb(DS_App.StackListRow currBunk) + private static ProdBunk getBunkFromDb(DS_App.StackListRow currBunk, string machine) { DataLayer DLMan = new DataLayer(); ProdBunk answ; @@ -373,7 +373,7 @@ namespace AppData } List elSheet = new List(); // recupero gli sheets di questo stack... - DS_App.SheetListDataTable tabSheets = DLMan.taSHL.getByStack(currBunk.StackID); + DS_App.SheetListDataTable tabSheets = DLMan.taSHL.getByStack(currBunk.StackID, machine); DateTime dataStart = DateTime.Now; ProdSheet currPanel; string nestBasePath = memLayer.ML.CRS("nestBasePath").ToLower(); @@ -730,14 +730,15 @@ namespace AppData /// /// /// + /// /// - protected int getSheetIdByBatch(int BatchID, int minVal, int maxVal) + protected int getSheetIdByBatch(int BatchID, int minVal, int maxVal, string machine) { int answ = 0; try { DataLayer DLMan = new DataLayer(); - var tabSheet = DLMan.taSHL.getByMLStatus(BatchID, minVal, maxVal); + var tabSheet = DLMan.taSHL.getByMLStatus(BatchID, minVal, maxVal, machine); if (tabSheet.Count > 0) { answ = tabSheet[0].SheetID; @@ -1306,7 +1307,7 @@ namespace AppData { // recupero sheet corrente da Bunk... DataLayer DLMan = new DataLayer(); - tabSheets = DLMan.taSHL.getByMLStatus(BatchID, 5, 5); + tabSheets = DLMan.taSHL.getByMLStatus(BatchID, 5, 5, machine); // salvo in redis setCurrSheetTab(machine, tabSheets); } @@ -1730,8 +1731,9 @@ namespace AppData /// Recupera e transcodifica DA DB i dati di UN SINGOLO bunk /// /// + /// /// - public static ProdBunk prodGetBunk(int StackID) + public static ProdBunk prodGetBunk(int StackID, string machine) { DataLayer DLMan = new DataLayer(); ProdBunk answ = null; @@ -1751,7 +1753,7 @@ namespace AppData currSt = CStatus.Done; } // recupero gli sheets di questo stack... - DS_App.SheetListDataTable tabSheets = DLMan.taSHL.getByStack(StackID); + DS_App.SheetListDataTable tabSheets = DLMan.taSHL.getByStack(StackID, machine); DateTime dataStart = DateTime.Now; ProdSheet currPanel; string nestBasePath = memLayer.ML.CRS("nestBasePath").ToLower(); @@ -1834,7 +1836,7 @@ namespace AppData if (tabBunks.Count > 0) { DS_App.StackListRow currBunk = tabBunks[0]; - answ = getBunkFromDb(currBunk); + answ = getBunkFromDb(currBunk, machine); // se ho qualcosa salvo su REDIS redisFirstBunk = answ; } @@ -1881,7 +1883,7 @@ namespace AppData // se c'รจ un bunk trovato --> carico if (currBunk != null) { - answ = getBunkFromDb(currBunk); + answ = getBunkFromDb(currBunk, machine); // salvo su redis setRedisNextBunk(BunkID, answ); } @@ -3000,10 +3002,10 @@ namespace AppData int batchId = getNextBatch(machineCod); // se non trovo creo un oggetto NUOVO e vuoto x ogni oggetto... e salvo... answ.Add("BatchID", batchId.ToString()); - answ.Add("SheetID_load", getSheetIdByBatch(batchId, 0, 1).ToString()); - answ.Add("SheetID_print", getSheetIdByBatch(batchId, 1, 2).ToString()); - answ.Add("SheetID_work", getSheetIdByBatch(batchId, 2, 3).ToString()); - answ.Add("SheetID_unload", getSheetIdByBatch(batchId, 3, 5).ToString()); + answ.Add("SheetID_load", getSheetIdByBatch(batchId, 0, 1, machineCod).ToString()); + answ.Add("SheetID_print", getSheetIdByBatch(batchId, 1, 2, machineCod).ToString()); + answ.Add("SheetID_work", getSheetIdByBatch(batchId, 2, 3, machineCod).ToString()); + answ.Add("SheetID_unload", getSheetIdByBatch(batchId, 3, 5, machineCod).ToString()); // serializzo e salvo! saveMachineData(machineCod, answ); } diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 7799dd3..215d31f 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -29849,12 +29849,14 @@ namespace AppData.DS_AppTableAdapters { 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("@BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Machine", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].CommandText = "dbo.stp_Sheets_getByItemID"; this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Machine", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; this._commandCollection[4].CommandText = "dbo.stp_Sheets_getByMLStatus"; @@ -29863,18 +29865,21 @@ namespace AppData.DS_AppTableAdapters { this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShStatusStart", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ShStatusEnd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Machine", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; this._commandCollection[5].CommandText = "dbo.stp_Sheets_getBySheetID"; this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SheetID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Machine", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[6].Connection = this.Connection; this._commandCollection[6].CommandText = "dbo.stp_Sheets_getByStack"; this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StackID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Machine", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[7].Connection = this.Connection; this._commandCollection[7].CommandText = "dbo.stp_Sheets_getByStackRedux"; @@ -29882,6 +29887,7 @@ namespace AppData.DS_AppTableAdapters { this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StackID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Redux", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Machine", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[8].Connection = this.Connection; this._commandCollection[8].CommandText = "dbo.stp_Sheets_getCurrentByBatch"; @@ -29961,7 +29967,7 @@ namespace AppData.DS_AppTableAdapters { [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_App.SheetListDataTable getByBatch(global::System.Nullable BatchID) { + public virtual DS_App.SheetListDataTable getByBatch(global::System.Nullable BatchID, string Machine) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((BatchID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BatchID.Value)); @@ -29969,6 +29975,12 @@ namespace AppData.DS_AppTableAdapters { else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } + if ((Machine == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Machine)); + } DS_App.SheetListDataTable dataTable = new DS_App.SheetListDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -29978,7 +29990,7 @@ namespace AppData.DS_AppTableAdapters { [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_App.SheetListDataTable getByItemID(global::System.Nullable ItemID) { + public virtual DS_App.SheetListDataTable getByItemID(global::System.Nullable ItemID, string Machine) { this.Adapter.SelectCommand = this.CommandCollection[3]; if ((ItemID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(ItemID.Value)); @@ -29986,6 +29998,12 @@ namespace AppData.DS_AppTableAdapters { else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } + if ((Machine == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Machine)); + } DS_App.SheetListDataTable dataTable = new DS_App.SheetListDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -29995,7 +30013,7 @@ namespace AppData.DS_AppTableAdapters { [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_App.SheetListDataTable getByMLStatus(global::System.Nullable BatchID, global::System.Nullable ShStatusStart, global::System.Nullable ShStatusEnd) { + public virtual DS_App.SheetListDataTable getByMLStatus(global::System.Nullable BatchID, global::System.Nullable ShStatusStart, global::System.Nullable ShStatusEnd, string Machine) { this.Adapter.SelectCommand = this.CommandCollection[4]; if ((BatchID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(BatchID.Value)); @@ -30015,6 +30033,12 @@ namespace AppData.DS_AppTableAdapters { else { this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; } + if ((Machine == null)) { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Machine)); + } DS_App.SheetListDataTable dataTable = new DS_App.SheetListDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -30024,7 +30048,7 @@ namespace AppData.DS_AppTableAdapters { [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_App.SheetListDataTable getBySheetId(global::System.Nullable SheetID) { + public virtual DS_App.SheetListDataTable getBySheetId(global::System.Nullable SheetID, string Machine) { this.Adapter.SelectCommand = this.CommandCollection[5]; if ((SheetID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(SheetID.Value)); @@ -30032,6 +30056,12 @@ namespace AppData.DS_AppTableAdapters { else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } + if ((Machine == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Machine)); + } DS_App.SheetListDataTable dataTable = new DS_App.SheetListDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -30041,7 +30071,7 @@ namespace AppData.DS_AppTableAdapters { [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_App.SheetListDataTable getByStack(global::System.Nullable StackID) { + public virtual DS_App.SheetListDataTable getByStack(global::System.Nullable StackID, string Machine) { this.Adapter.SelectCommand = this.CommandCollection[6]; if ((StackID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(StackID.Value)); @@ -30049,6 +30079,12 @@ namespace AppData.DS_AppTableAdapters { else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } + if ((Machine == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Machine)); + } DS_App.SheetListDataTable dataTable = new DS_App.SheetListDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -30058,7 +30094,7 @@ namespace AppData.DS_AppTableAdapters { [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_App.SheetListDataTable getByStackRedux(global::System.Nullable StackID, global::System.Nullable Redux) { + public virtual DS_App.SheetListDataTable getByStackRedux(global::System.Nullable StackID, global::System.Nullable Redux, string Machine) { this.Adapter.SelectCommand = this.CommandCollection[7]; if ((StackID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(StackID.Value)); @@ -30072,6 +30108,12 @@ namespace AppData.DS_AppTableAdapters { else { this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; } + if ((Machine == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Machine)); + } DS_App.SheetListDataTable dataTable = new DS_App.SheetListDataTable(); this.Adapter.Fill(dataTable); return dataTable; diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 42a0b20..e9797df 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -540,6 +540,7 @@ FROM v_SheetList + @@ -551,6 +552,7 @@ FROM v_SheetList + @@ -564,6 +566,7 @@ FROM v_SheetList + @@ -575,6 +578,7 @@ FROM v_SheetList + @@ -586,6 +590,7 @@ FROM v_SheetList + @@ -598,6 +603,7 @@ FROM v_SheetList + @@ -3633,7 +3639,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -3691,7 +3697,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -3716,7 +3722,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -3771,7 +3777,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -3844,7 +3850,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -3913,7 +3919,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -3946,7 +3952,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4018,7 +4024,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4037,7 +4043,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4068,7 +4074,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4076,7 +4082,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4093,7 +4099,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4102,7 +4108,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4133,7 +4139,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4141,7 +4147,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4157,7 +4163,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4165,7 +4171,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4193,7 +4199,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4229,7 +4235,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4245,7 +4251,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4255,7 +4261,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4272,7 +4278,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4285,7 +4291,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4334,7 +4340,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4363,7 +4369,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4405,7 +4411,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4516,7 +4522,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4579,7 +4585,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4624,7 +4630,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4650,7 +4656,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4743,7 +4749,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4806,7 +4812,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4865,7 +4871,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4914,7 +4920,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -4953,7 +4959,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -5006,7 +5012,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -5023,7 +5029,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -5036,7 +5042,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -5058,7 +5064,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -5086,7 +5092,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -5123,7 +5129,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -5157,7 +5163,7 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - + @@ -5369,18 +5375,18 @@ SELECT AppName, ManifestUrl, IsAuth, LocalRepo, PackName, LicenseKey FROM Update - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 7d74c22..c80ed9a 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,52 +4,53 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + 1189 @@ -61,7 +62,7 @@ - + 1028 @@ -73,7 +74,7 @@ - + 828 @@ -85,7 +86,7 @@ - + 1116 @@ -101,7 +102,7 @@ - + 721 @@ -113,7 +114,7 @@ - + 482 @@ -125,7 +126,7 @@ - + 1113 @@ -137,7 +138,7 @@ - + 1364 @@ -149,7 +150,7 @@ - + 1153 @@ -161,7 +162,7 @@ - + 115 @@ -173,7 +174,7 @@ - + 284 @@ -185,7 +186,7 @@ - + 1042 diff --git a/NKC_WF/Controllers/BunkController.cs b/NKC_WF/Controllers/BunkController.cs index 0864f1a..3a4c7e9 100644 --- a/NKC_WF/Controllers/BunkController.cs +++ b/NKC_WF/Controllers/BunkController.cs @@ -62,7 +62,7 @@ namespace NKC_WF.Controllers } else { - answ = ComLib.prodGetBunk(id); + answ = ComLib.prodGetBunk(id, CodPost); } } catch diff --git a/NKC_WF/WebUserControls/cmp_MU_svgViewer.ascx.cs b/NKC_WF/WebUserControls/cmp_MU_svgViewer.ascx.cs index 5852501..f46f701 100644 --- a/NKC_WF/WebUserControls/cmp_MU_svgViewer.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_MU_svgViewer.ascx.cs @@ -69,7 +69,7 @@ namespace NKC_WF.WebUserControls string baseCurr = memLayer.ML.CRS("servBasePath").ToLower(); try { - var tabSheets = DLMan.taSHL.getBySheetId(SheetId); + var tabSheets = DLMan.taSHL.getBySheetId(SheetId, ""); if (tabSheets.Count > 0) { filename = tabSheets[0].DrawFilePath.ToLower().Replace(baseOrig, baseCurr); diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs index 67a101d..f48effc 100644 --- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs @@ -811,7 +811,7 @@ namespace NKC_WF.WebUserControls protected void lbtResetSel_Click(object sender, EventArgs e) { - var tabSheet = DLMan.taSHL.getByItemID(itemIdSelected); + var tabSheet = DLMan.taSHL.getByItemID(itemIdSelected, PlaceCod); if (tabSheet.Count == 1) { resetShowData(); @@ -858,7 +858,7 @@ namespace NKC_WF.WebUserControls { // FORSE 5/5?!? DataLayer DLMan = new DataLayer(); - var sheetList = DLMan.taSHL.getByMLStatus(PackListID, 3, 5); + var sheetList = DLMan.taSHL.getByMLStatus(PackListID, 3, 5, PlaceCod); if (sheetList.Count > 0) { SheetID = sheetList[0].SheetID; diff --git a/NKC_WF/WebUserControls/cmp_labelsPrint.ascx.cs b/NKC_WF/WebUserControls/cmp_labelsPrint.ascx.cs index 9d0e9fb..57c7adb 100644 --- a/NKC_WF/WebUserControls/cmp_labelsPrint.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_labelsPrint.ascx.cs @@ -66,7 +66,7 @@ namespace NKC_WF.WebUserControls { // FORSE 5/5?!? DataLayer DLMan = new DataLayer(); - var sheetList = DLMan.taSHL.getByMLStatus(PackListID, 3, 5); + var sheetList = DLMan.taSHL.getByMLStatus(PackListID, 3, 5, MachineSel); if (sheetList.Count > 0) { SheetID = sheetList[0].SheetID; diff --git a/NKC_WF/WebUserControls/cmp_svgFull.ascx.cs b/NKC_WF/WebUserControls/cmp_svgFull.ascx.cs index b459335..d287476 100644 --- a/NKC_WF/WebUserControls/cmp_svgFull.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_svgFull.ascx.cs @@ -61,7 +61,7 @@ namespace NKC_WF.WebUserControls { if (SheetId > 0) { - var tabSheets = DLMan.taSHL.getBySheetId(SheetId); + var tabSheets = DLMan.taSHL.getBySheetId(SheetId, ""); if (tabSheets.Count > 0) { filename = tabSheets[0].DrawFilePath.ToLower().Replace(baseOrig, baseCurr); diff --git a/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs index ab7ae51..7b5be94 100644 --- a/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs @@ -729,7 +729,7 @@ namespace NKC_WF.WebUserControls protected void lbtResetSel_Click(object sender, EventArgs e) { - var tabSheet = DLMan.taSHL.getByItemID(itemIdSelected); + var tabSheet = DLMan.taSHL.getByItemID(itemIdSelected, PlaceCod); if (tabSheet.Count == 1) { resetShowData(); @@ -836,7 +836,7 @@ namespace NKC_WF.WebUserControls { // FORSE 5/5?!? DataLayer DLMan = new DataLayer(); - var sheetList = DLMan.taSHL.getByMLStatus(BatchId, 3, 5); + var sheetList = DLMan.taSHL.getByMLStatus(BatchId, 3, 5, PlaceCod); if (sheetList.Count > 0) { SheetID = sheetList[0].SheetID; diff --git a/NKC_WF/site/BatchPreview.aspx.cs b/NKC_WF/site/BatchPreview.aspx.cs index dc2044a..43f4257 100644 --- a/NKC_WF/site/BatchPreview.aspx.cs +++ b/NKC_WF/site/BatchPreview.aspx.cs @@ -97,7 +97,7 @@ namespace NKC_WF.site string rawData = memLayer.ML.getRSV(tabSheetKey); if (string.IsNullOrEmpty(rawData)) { - answ = DLMan.taSHL.getByBatch(BatchId); + answ = DLMan.taSHL.getByBatch(BatchId, ""); tabSheets = answ; } else