Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b22579ca6e | |||
| 691ae3f123 | |||
| 47b85f98b3 | |||
| 26234bce04 | |||
| e7eb09e44a | |||
| 669f5d8478 | |||
| ae1fd38bbb | |||
| 00cb127ac4 | |||
| c34b0d6768 | |||
| ac50e00c85 | |||
| c6bf8db9ef | |||
| 3e65a59ae6 |
@@ -271,10 +271,6 @@
|
||||
<Content Include="Core\Compression\Snappy\lib\win\snappy32.dll" />
|
||||
<Content Include="Core\Compression\Snappy\lib\win\snappy64.dll" />
|
||||
<Content Include="Core\Compression\Zstandard\lib\win\libzstd.dll" />
|
||||
<Content Include="libzstd.dll" />
|
||||
<Content Include="mongocrypt.dll" />
|
||||
<Content Include="snappy32.dll" />
|
||||
<Content Include="snappy64.dll" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
|
||||
+117
-3
@@ -2235,6 +2235,118 @@ namespace AppData
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Invia una richiesta di esecuzione di Nesting x un Batch ANCESTOR
|
||||
/// </summary>
|
||||
/// <param name="BatchID">Batch di cui si chiede processing</param>
|
||||
/// <returns></returns>
|
||||
public static bool checkSendBatchSplit(int BatchID)
|
||||
{
|
||||
int nextIndex = 1;
|
||||
bool batchSent = false;
|
||||
bool batchProcessed = false;
|
||||
DataLayer DLMan = new DataLayer();
|
||||
var currType = ComLib.BType(BatchID);
|
||||
|
||||
// NKC2: controllo SE sia un batch tipo ancestor (1° invio)
|
||||
if (currType == BatchType.Ancestor)
|
||||
{
|
||||
nextIndex = 10;
|
||||
// recupero batch descendant
|
||||
var tabDesc = ComLib.BatchDescendant(BatchID);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
batchSent = false;
|
||||
// ciclo fino a trovare un batch VALIDO (= contiene ordini)
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
batchProcessed = false;
|
||||
// 2021.07.19 FIX x caso batch vuoto: se non ho pezzi --> approvo direttamente e passo al successivo...
|
||||
var tabItems = DLMan.taIL.getByBatch(item.BatchID);
|
||||
if (tabItems != null)
|
||||
{
|
||||
// --> invio batch
|
||||
if (tabItems.Count > 0)
|
||||
{
|
||||
// primo parto da indice 10...
|
||||
ComLib.sendBatchReq(item.BatchID, "Nesting", 2, false, nextIndex);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.NestRequested, "", -1);
|
||||
batchProcessed = true;
|
||||
batchSent = true;
|
||||
}
|
||||
}
|
||||
|
||||
//--> approvo direttamente e passo al successivo... (annullo batch)
|
||||
if (!batchProcessed)
|
||||
{
|
||||
// registro su DB batch DISCARDED (NON HA PEZZI...)
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Discarded, "", -1);
|
||||
}
|
||||
|
||||
// se ho fatto --> esco
|
||||
if (batchSent)
|
||||
break;
|
||||
}
|
||||
#if false
|
||||
int BatchDescId = tabDesc[0].BatchID;
|
||||
ComLib.sendBatchReq(BatchDescId, "Nesting", 2, false);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(BatchDescId, (int)BatchStatus.NestRequested, "", -1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
// NKC2: se è un batch ti dipo descendant (invii successivi)
|
||||
if (currType == BatchType.Descendant)
|
||||
{
|
||||
// verifico se ce ne siano altri NON validati (ma splitted)
|
||||
var tabDesc = ComLib.BatchOtherDescendant(BatchID);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
batchSent = false;
|
||||
// ciclo x tutte le righe che NON fossero con nesting effettuato
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
nextIndex += 50;
|
||||
batchProcessed = false;
|
||||
// se c'è qualcosa da processare lo richiede
|
||||
if (item.STATUS == 2)
|
||||
{
|
||||
// 2021.07.19 FIX x caso batch vuoto: se non ho pezzi --> approvo direttamente e passo al successivo...
|
||||
var tabItems = DLMan.taIL.getByBatch(item.BatchID);
|
||||
if (tabItems != null)
|
||||
{
|
||||
// --> invio batch
|
||||
if (tabItems.Count > 0)
|
||||
{
|
||||
ComLib.sendBatchReq(item.BatchID, "Nesting", 2, false, nextIndex);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.NestRequested, "", -1);
|
||||
batchProcessed = true;
|
||||
batchSent = true;
|
||||
}
|
||||
}
|
||||
|
||||
//--> approvo direttamente e passo al successivo... (annullo batch)
|
||||
if (!batchProcessed)
|
||||
{
|
||||
// registro su DB batch DISCARDED (NON HA PEZZI...)
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Discarded, "", -1);
|
||||
}
|
||||
|
||||
// se ho fatto --> esco
|
||||
if (batchSent)
|
||||
break;
|
||||
}
|
||||
// se non ha trovato nulla --> prova update Batch Ancestor...
|
||||
}
|
||||
}
|
||||
}
|
||||
return batchSent;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Invia una richiesta di esecuzione di Nesting x un Batch
|
||||
/// </summary>
|
||||
@@ -2242,8 +2354,9 @@ namespace AppData
|
||||
/// <param name="note">note opzionali</param>
|
||||
/// <param name="pType">Tipo processo: 1 = stima, 2 = nesting, 3 = stima EXTENDED</param>
|
||||
/// <param name="isValidation">Indica se sia validaizone (part o disegno) --> in tal caso MaxTime = 1</param>
|
||||
/// <param name="numIndexStart">Numero di indice richiesto con cui partire x creare CART/BIN</param>
|
||||
/// <returns></returns>
|
||||
public static bool sendBatchReq(int BatchID, string note, int pType, bool isValidation)
|
||||
public static bool sendBatchReq(int BatchID, string note, int pType, bool isValidation, int numIndexStart)
|
||||
{
|
||||
DataLayer DLMan = new DataLayer();
|
||||
bool answ = false;
|
||||
@@ -2336,7 +2449,8 @@ namespace AppData
|
||||
ProcType = pType,
|
||||
MachineType = mType.Multiax,
|
||||
OrderType = oType.BatchRequest,
|
||||
OrderList = listOrder
|
||||
OrderList = listOrder,
|
||||
NumIndexStart = numIndexStart
|
||||
};
|
||||
|
||||
// serializzo
|
||||
@@ -2390,7 +2504,7 @@ namespace AppData
|
||||
if (nextBatchId > 0)
|
||||
{
|
||||
// richiedo!
|
||||
sendBatchReq(nextBatchId, "Estimation", 1, true);
|
||||
sendBatchReq(nextBatchId, "Estimation", 1, true, 1);
|
||||
// registro su DB nesting iniziato... QUANDO MI RISPONDE dovrò verificare che era un batch x VALIDAZIONE
|
||||
DLMan.taBL.updateStatus(nextBatchId, (int)BatchStatus.EstimationRequested, "", 0);
|
||||
answ = true;
|
||||
|
||||
@@ -113,6 +113,12 @@ namespace NKC_SDK
|
||||
/// </summary>
|
||||
public int ProcType { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Indice di aprtenza (per carrelli, bins...)
|
||||
/// </summary>
|
||||
public int NumIndexStart { get; set; } = 1;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
|
||||
@@ -457,6 +457,7 @@ namespace NKC_WF.Controllers
|
||||
ComLib.updateBinsFromNesting(rispNest.BatchID, rispNest.BinList);
|
||||
ComLib.updateCartsFromNesting(rispNest.BatchID, rispNest.CartList);
|
||||
|
||||
#if false
|
||||
// NKC2: se è un batch ti dipo descendant
|
||||
if (ComLib.BType(rispNest.BatchID) == BatchType.Descendant)
|
||||
{
|
||||
@@ -481,7 +482,9 @@ namespace NKC_WF.Controllers
|
||||
// se non ha trovato nulla --> prova update Batch Ancestor...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
isSplitReq = ComLib.checkSendBatchSplit(rispNest.BatchID);
|
||||
}
|
||||
|
||||
// registro OK
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
<asp:HiddenField ID="hfQrSize" runat="server" Value="32" />
|
||||
<asp:HiddenField ID="hfShowPrint" runat="server" Value="false" />
|
||||
<asp:HiddenField ID="hfPrintQueue" runat="server" Value="queueND" />
|
||||
<asp:HiddenField ID="hfMachineSel" runat="server" Value="#" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -82,12 +82,27 @@ namespace NKC_WF.WebUserControls
|
||||
hfPrintQueue.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Macchina selezionata
|
||||
/// </summary>
|
||||
public string MachineSel
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfMachineSel.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfMachineSel.Value = value;
|
||||
currQueue = DLMan.getPrinter($"{value}-UNLOAD2");
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
currQueue = DLMan.getPrinter("PC-MACHINE-UNLOAD2");
|
||||
currQueue = DLMan.getPrinter($"{MachineSel}-UNLOAD2");
|
||||
}
|
||||
}
|
||||
public void doUpdate()
|
||||
|
||||
+35
-26
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace NKC_WF.WebUserControls
|
||||
@@ -15,66 +15,75 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfBatchID.
|
||||
/// hfBatchID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfBatchID;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfShowQr.
|
||||
/// hfShowQr control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfShowQr;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfQrSize.
|
||||
/// hfQrSize control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfQrSize;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfShowPrint.
|
||||
/// hfShowPrint control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfShowPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfPrintQueue.
|
||||
/// hfPrintQueue control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfPrintQueue;
|
||||
|
||||
/// <summary>
|
||||
/// hfMachineSel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfMachineSel;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
<asp:HiddenField ID="hfQrSize" runat="server" Value="32" />
|
||||
<asp:HiddenField ID="hfShowPrint" runat="server" Value="false" />
|
||||
<asp:HiddenField ID="hfPrintQueue" runat="server" Value="queueND" />
|
||||
<asp:HiddenField ID="hfMachineSel" runat="server" Value="#" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -99,11 +99,26 @@ namespace NKC_WF.WebUserControls
|
||||
hfPrintQueue.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Macchina selezionata
|
||||
/// </summary>
|
||||
public string MachineSel
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfMachineSel.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfMachineSel.Value = value;
|
||||
currQueue = DLMan.getPrinter($"{value}-UNLOAD");
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if(!Page.IsPostBack)
|
||||
{
|
||||
currQueue= DLMan.getPrinter("PC-MACHINE-UNLOAD");
|
||||
currQueue = DLMan.getPrinter($"{MachineSel}-UNLOAD");
|
||||
}
|
||||
}
|
||||
public void doUpdate()
|
||||
|
||||
+35
-26
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace NKC_WF.WebUserControls
|
||||
@@ -15,66 +15,75 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfBatchID.
|
||||
/// hfBatchID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfBatchID;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfShowQr.
|
||||
/// hfShowQr control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfShowQr;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfQrSize.
|
||||
/// hfQrSize control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfQrSize;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfShowPrint.
|
||||
/// hfShowPrint control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfShowPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfPrintQueue.
|
||||
/// hfPrintQueue control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfPrintQueue;
|
||||
|
||||
/// <summary>
|
||||
/// hfMachineSel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfMachineSel;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,10 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
#region Protected Properties
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// verifica se il batch sia di tipo ancestor (da splittare su macchine)
|
||||
/// </summary>
|
||||
protected bool BatchIsAncestor
|
||||
{
|
||||
get
|
||||
@@ -101,7 +105,7 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
// invia a redis una richiesta...
|
||||
ComLib.sendMaterials();
|
||||
ComLib.sendBatchReq(BatchId, "Estimation", 3, false);
|
||||
ComLib.sendBatchReq(BatchId, "Estimation", 3, false, 0);
|
||||
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(BatchId, (int)BatchStatus.EstimationRequested, "", 0);
|
||||
@@ -118,20 +122,45 @@ namespace NKC_WF.WebUserControls
|
||||
// effettuo VERA ri-assegnazione ordini/kit a nuovi batch
|
||||
DLMan.taOLT.setBatchSplit(BatchId, true);
|
||||
|
||||
#if false
|
||||
// invio il PRIMO batch descendant
|
||||
var tabDesc = ComLib.BatchDescendant(BatchId);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
int BatchDescId = tabDesc[0].BatchID;
|
||||
ComLib.sendBatchReq(BatchDescId, "Nesting", 2, false);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(BatchDescId, (int)BatchStatus.NestRequested, "", -1);
|
||||
}
|
||||
bool batchSent = false;
|
||||
// ciclo fino a trovare un batch VALIDO (= contiene ordini)
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
// 2021.07.19 FIX x caso batch vuoto: se non ho pezzi --> approvo direttamente e passo al successivo...
|
||||
var tabItems = DLMan.taIL.getByBatch(item.BatchID);
|
||||
if (tabItems != null)
|
||||
{
|
||||
//--> approvo direttamente e passo al successivo...
|
||||
if (tabItems.Count == 0)
|
||||
{
|
||||
// registro su DB batch DISCARDED (NON HA PEZZI...)
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Discarded, "", -1);
|
||||
}
|
||||
// --> invio batch
|
||||
else
|
||||
{
|
||||
ComLib.sendBatchReq(item.BatchID, "Nesting", 2, false);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.NestRequested, "", -1);
|
||||
batchSent = true;
|
||||
}
|
||||
}
|
||||
if (batchSent)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
bool fatto = ComLib.checkSendBatchSplit(BatchId);
|
||||
}
|
||||
else
|
||||
{
|
||||
// invio il batch corrente
|
||||
ComLib.sendBatchReq(BatchId, "Nesting", 2, false);
|
||||
ComLib.sendBatchReq(BatchId, "Nesting", 2, false, 1);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(BatchId, (int)BatchStatus.NestRequested, "", -1);
|
||||
}
|
||||
|
||||
@@ -11,13 +11,20 @@
|
||||
<b><%: traduci("BatchSplit") %></b> <i class="fa fa-balance-scale" aria-hidden="true"></i>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="col-4"></div>
|
||||
<div class="col-1 font-weight-bold">
|
||||
<asp:Label runat="server" ID="lblRatio01" />
|
||||
</div>
|
||||
<div class="col-10">
|
||||
<asp:HiddenField runat="server" ID="hfBatchId" />
|
||||
<asp:HiddenField runat="server" ID="hfNeedSave" />
|
||||
<asp:HiddenField runat="server" ID="hfLastRatio" />
|
||||
<asp:HiddenField runat="server" ID="hfFullTime" />
|
||||
<asp:TextBox runat="server" ID="txtRatio" TextMode="Range" CssClass="form-control-range" AutoPostBack="true" OnTextChanged="txtRatio_TextChanged" />
|
||||
</div>
|
||||
<div class="col-1 font-weight-bold">
|
||||
<asp:Label runat="server" ID="lblRatio02" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-1">
|
||||
@@ -33,7 +40,7 @@
|
||||
<b>NE01</b>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<asp:Label runat="server" ID="lblRatio01" />
|
||||
<asp:Label runat="server" ID="lblNumOrd01" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -54,7 +61,7 @@
|
||||
<b>NE02</b>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<asp:Label runat="server" ID="lblRatio02" />
|
||||
<asp:Label runat="server" ID="lblNumOrd02" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -66,4 +73,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -147,10 +147,10 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
txtRatio.Text = $"{value}";
|
||||
// scrivo ANCHE i valori assoluti
|
||||
lblRatio01.Text = $"{valRatio} %";
|
||||
lblRatio02.Text = $"{100 - valRatio} %";
|
||||
lblTime01.Text = $"{fullTime * value / (100 * 60):N2} h";
|
||||
lblTime02.Text = $"{fullTime * (100 - value) / (100 * 60):N2} h";
|
||||
lblRatio01.Text = $"{100 - valRatio} %";
|
||||
lblRatio02.Text = $"{valRatio} %";
|
||||
lblTime01.Text = $"{fullTime * (100 - value) / (100 * 60):N2} h";
|
||||
lblTime02.Text = $"{fullTime * value / (100 * 60):N2} h";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ namespace NKC_WF.WebUserControls
|
||||
double tmpTime = totTime01 + totTime02;
|
||||
fullTime = tmpTime > 0 ? tmpTime : 1;
|
||||
// sistemazione ratio calcolata...
|
||||
double newRatio = (totTime01 * 100 / fullTime);
|
||||
double newRatio = (totTime02 * 100 / fullTime);
|
||||
valRatio = (int)newRatio;
|
||||
lastValRatio = valRatio;
|
||||
}
|
||||
@@ -284,16 +284,16 @@ namespace NKC_WF.WebUserControls
|
||||
FullSet.OrderSet = OrderedList;
|
||||
// lavoro sull'ottimizzare il MINORE
|
||||
double ValRatioP = (double)valRatio / 100;
|
||||
// se uno è zero
|
||||
if (valRatio == 0)
|
||||
// ...è 100%...
|
||||
if (valRatio >= 99)
|
||||
{
|
||||
// vuoto
|
||||
SetNe01.OrderSet = new Dictionary<int, double>();
|
||||
// tutto
|
||||
SetNe02.OrderSet = OrderedList;
|
||||
}
|
||||
// ...oppure è 100%...
|
||||
else if (valRatio >= 99)
|
||||
// se uno è zero
|
||||
else if (valRatio == 0)
|
||||
{
|
||||
// tutto
|
||||
SetNe01.OrderSet = OrderedList;
|
||||
@@ -303,18 +303,7 @@ namespace NKC_WF.WebUserControls
|
||||
// altrimenti se è minore...
|
||||
else if (valRatio <= 50)
|
||||
{
|
||||
SetNe01.TargetValue = FullSet.ActualValue * ValRatioP;
|
||||
SetNe01.OrderSet = findLocalMin(OrderedList, SetNe01.TargetValue, maxDepth);
|
||||
// l'altro è la differenza
|
||||
SetNe02.OrderSet = OrderedList;
|
||||
foreach (var item in SetNe01.OrderSet)
|
||||
{
|
||||
SetNe02.OrderSet.Remove(item.Key);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SetNe02.TargetValue = FullSet.ActualValue * (1 - ValRatioP);
|
||||
SetNe02.TargetValue = FullSet.ActualValue * ValRatioP;
|
||||
SetNe02.OrderSet = findLocalMin(OrderedList, SetNe02.TargetValue, maxDepth);
|
||||
// l'altro è la differenza
|
||||
SetNe01.OrderSet = OrderedList;
|
||||
@@ -323,6 +312,17 @@ namespace NKC_WF.WebUserControls
|
||||
SetNe01.OrderSet.Remove(item.Key);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SetNe01.TargetValue = FullSet.ActualValue * (1 - ValRatioP);
|
||||
SetNe01.OrderSet = findLocalMin(OrderedList, SetNe01.TargetValue, maxDepth);
|
||||
// l'altro è la differenza
|
||||
SetNe02.OrderSet = OrderedList;
|
||||
foreach (var item in SetNe01.OrderSet)
|
||||
{
|
||||
SetNe02.OrderSet.Remove(item.Key);
|
||||
}
|
||||
}
|
||||
// riorganizzo tabOrders...
|
||||
foreach (var orderItem in TabOrders)
|
||||
{
|
||||
|
||||
+22
-4
@@ -23,6 +23,15 @@ namespace NKC_WF.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtBalance;
|
||||
|
||||
/// <summary>
|
||||
/// lblRatio01 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRatio01;
|
||||
|
||||
/// <summary>
|
||||
/// hfBatchId control.
|
||||
/// </summary>
|
||||
@@ -68,6 +77,15 @@ namespace NKC_WF.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtRatio;
|
||||
|
||||
/// <summary>
|
||||
/// lblRatio02 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRatio02;
|
||||
|
||||
/// <summary>
|
||||
/// lblTime01 control.
|
||||
/// </summary>
|
||||
@@ -78,13 +96,13 @@ namespace NKC_WF.WebUserControls
|
||||
protected global::System.Web.UI.WebControls.Label lblTime01;
|
||||
|
||||
/// <summary>
|
||||
/// lblRatio01 control.
|
||||
/// lblNumOrd01 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRatio01;
|
||||
protected global::System.Web.UI.WebControls.Label lblNumOrd01;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_orderExtListNE01 control.
|
||||
@@ -114,13 +132,13 @@ namespace NKC_WF.WebUserControls
|
||||
protected global::System.Web.UI.WebControls.Label lblTime02;
|
||||
|
||||
/// <summary>
|
||||
/// lblRatio02 control.
|
||||
/// lblNumOrd02 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRatio02;
|
||||
protected global::System.Web.UI.WebControls.Label lblNumOrd02;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_orderExtListNE02 control.
|
||||
|
||||
@@ -1,62 +1,61 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_labelsPrint.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_labelsPrint" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/cmp_barcode.ascx" TagPrefix="uc1" TagName="cmp_barcode" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_MachSelSmart.ascx" TagPrefix="uc1" TagName="cmp_MachSelSmart" %>
|
||||
|
||||
<div class="mx-0">
|
||||
<asp:HiddenField ID="hfBatchID" runat="server" />
|
||||
<asp:HiddenField ID="hfSheetID" runat="server" />
|
||||
<asp:HiddenField ID="hfDeviceId" runat="server" />
|
||||
<div class="card text-center" style="width: 100%;">
|
||||
<h4 class="card-header p-1 bg-secondary text-light"><%: traduci("LabelPrintSmart") %></h4>
|
||||
<div class="card-body py-1">
|
||||
<div class="row mt-2" style="min-height: 25rem;">
|
||||
<div class="col-12 px-0">
|
||||
<uc1:cmp_barcode runat="server" ID="cmp_barcode" />
|
||||
<asp:HiddenField runat="server" ID="hfLastBCode" />
|
||||
<asp:HiddenField runat="server" ID="hfLastObject" />
|
||||
<asp:HiddenField runat="server" ID="hfLastValidBCode" />
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<asp:LinkButton runat="server" ID="lbtPrintLabels" CssClass="btn btn-info btn-block text-uppercase" OnClick="lbtPrintLabels_Click"><i class="fa fa-print" aria-hidden="true"></i> <%: traduci("DoPrintLabel") %></asp:LinkButton>
|
||||
<div class="row mt-2">
|
||||
<div class="col-12 px-0 table-secondary">
|
||||
<uc1:cmp_MachSelSmart runat="server" ID="cmp_MachSelSmart" />
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<uc1:cmp_barcode runat="server" ID="cmp_barcode" />
|
||||
<asp:HiddenField runat="server" ID="hfLastBCode" />
|
||||
<asp:HiddenField runat="server" ID="hfLastObject" />
|
||||
<asp:HiddenField runat="server" ID="hfLastValidBCode" />
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<asp:LinkButton runat="server" ID="lbtPrintLabels" CssClass="btn btn-info btn-block text-uppercase" OnClick="lbtPrintLabels_Click"><i class="fa fa-print" aria-hidden="true"></i> <%: traduci("DoPrintLabel") %></asp:LinkButton>
|
||||
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<div runat="server" id="divItemDet" class="bg-success text-warning small" visible="false">
|
||||
<asp:HiddenField runat="server" ID="hfItemID" />
|
||||
<div class="row">
|
||||
<div class="col-3 pr-0">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblItemCode" /></b>
|
||||
</div>
|
||||
<div class="col-6 px-1">
|
||||
<asp:Label runat="server" ID="lblItemDesc" />
|
||||
</div>
|
||||
<div class="col-3 pl-0">
|
||||
<asp:Label runat="server" ID="lblItemDtmx" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<div runat="server" id="divItemDet" class="bg-success text-warning small" visible="false">
|
||||
<asp:HiddenField runat="server" ID="hfItemID" />
|
||||
<div class="row">
|
||||
<div class="col-3 pr-0">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblItemCode" /></b>
|
||||
</div>
|
||||
<div runat="server" id="divError" class="bg-danger text-warning" visible="false">
|
||||
<div class="col-12 px-1">
|
||||
<asp:Label runat="server" ID="lblErrorMsg" />
|
||||
</div>
|
||||
<div class="col-6 px-1">
|
||||
<asp:Label runat="server" ID="lblItemDesc" />
|
||||
</div>
|
||||
<div runat="server" id="divInfo" class="bg-info text-light" visible="false">
|
||||
<div class="col-12 px-1">
|
||||
<asp:Label runat="server" ID="lblSuccessMsg" />
|
||||
</div>
|
||||
<div class="col-3 pl-0">
|
||||
<asp:Label runat="server" ID="lblItemDtmx" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-block btn-warning text-uppercase" OnClick="lbtCancel_Click"><i class="fa fa-ban" aria-hidden="true"></i> <%: traduci("cancel") %></asp:LinkButton>
|
||||
</div>
|
||||
<div runat="server" id="divError" class="bg-danger text-warning" visible="false">
|
||||
<div class="col-12 px-1">
|
||||
<asp:Label runat="server" ID="lblErrorMsg" />
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblLastBCode" /></b><br />
|
||||
<asp:Label runat="server" ID="lblMessage" /><br />
|
||||
<asp:Label runat="server" ID="lblDestination" />
|
||||
</div>
|
||||
<div runat="server" id="divInfo" class="bg-info text-light" visible="false">
|
||||
<div class="col-12 px-1">
|
||||
<asp:Label runat="server" ID="lblSuccessMsg" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-block btn-warning text-uppercase" OnClick="lbtCancel_Click"><i class="fa fa-ban" aria-hidden="true"></i> <%: traduci("cancel") %></asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblLastBCode" /></b><br />
|
||||
<asp:Label runat="server" ID="lblMessage" /><br />
|
||||
<asp:Label runat="server" ID="lblDestination" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,22 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
public partial class cmp_labelsPrint : BaseUserControl
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Macchina letta
|
||||
/// </summary>
|
||||
public string MachineSel
|
||||
{
|
||||
get
|
||||
{
|
||||
return cmp_MachSelSmart.MachineSel;
|
||||
}
|
||||
set
|
||||
{
|
||||
cmp_MachSelSmart.MachineSel = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ID univoco da IP
|
||||
/// </summary>
|
||||
@@ -177,9 +193,16 @@ namespace NKC_WF.WebUserControls
|
||||
decodedData decoData = DLMan.decodeBcode(lastCmd);
|
||||
switch (decoData.codeType)
|
||||
{
|
||||
case codeType.Item:
|
||||
cmp_barcode.showOutput(cssClass.success, $"IT {traduci("ValidCode")}: {decoData.rawData}");
|
||||
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
|
||||
case codeType.Item:// verifico SE HO una macchina selezionata sennò NON accetto
|
||||
if (string.IsNullOrEmpty(MachineSel))
|
||||
{
|
||||
cmp_barcode.showOutput(cssClass.danger, $"{traduci("MissingMachineSel")}: {decoData.rawData} --> {traduci("NoValiAction")}");
|
||||
}
|
||||
else
|
||||
{
|
||||
cmp_barcode.showOutput(cssClass.success, $"IT {traduci("ValidCode")}: {decoData.rawData}");
|
||||
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
|
||||
}
|
||||
break;
|
||||
case codeType.ItemGeneric:
|
||||
cmp_barcode.showOutput(cssClass.success, $"{traduci("ItemGeneric")} - {traduci("Ignored")}: {decoData.rawData}");
|
||||
@@ -226,6 +249,12 @@ namespace NKC_WF.WebUserControls
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
|
||||
case codeType.MachSelection:
|
||||
MachineSel = decoData.code;
|
||||
cmp_barcode.showOutput(cssClass.success, $"{ traduci("MachineSel")}: {decoData.code}");
|
||||
break;
|
||||
|
||||
case codeType.UNK:
|
||||
default:
|
||||
cmp_barcode.showOutput(cssClass.danger, $"{traduci("UnknownData")}: {decoData.rawData} --> {traduci("NoValiAction")}");
|
||||
@@ -278,7 +307,7 @@ namespace NKC_WF.WebUserControls
|
||||
protected void lbtPrintLabels_Click(object sender, EventArgs e)
|
||||
{
|
||||
// chiamo procedura stampa report x etichette dei pezzi lavorati offline
|
||||
string printer = DLMan.getPrinter("PC-MACHINE-PARTS");
|
||||
string printer = DLMan.getPrinter($"{MachineSel}-PARTS");
|
||||
// mando stampa....
|
||||
bool fatto = DLMan.stampaDoc(itemIdSelected.ToString(), printer, tipoDocumento.docPart, Request.UserHostName);
|
||||
|
||||
|
||||
+77
-68
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace NKC_WF.WebUserControls
|
||||
@@ -15,191 +15,200 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfBatchID.
|
||||
/// hfBatchID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfBatchID;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfSheetID.
|
||||
/// hfSheetID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfSheetID;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfDeviceId.
|
||||
/// hfDeviceId control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfDeviceId;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_barcode.
|
||||
/// cmp_MachSelSmart control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::NKC_WF.WebUserControls.cmp_MachSelSmart cmp_MachSelSmart;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_barcode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::NKC_WF.WebUserControls.cmp_barcode cmp_barcode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfLastBCode.
|
||||
/// hfLastBCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfLastBCode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfLastObject.
|
||||
/// hfLastObject control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfLastObject;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfLastValidBCode.
|
||||
/// hfLastValidBCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfLastValidBCode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtPrintLabels.
|
||||
/// lbtPrintLabels control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtPrintLabels;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divItemDet.
|
||||
/// divItemDet control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divItemDet;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfItemID.
|
||||
/// hfItemID control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfItemID;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblItemCode.
|
||||
/// lblItemCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblItemCode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblItemDesc.
|
||||
/// lblItemDesc control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblItemDesc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblItemDtmx.
|
||||
/// lblItemDtmx control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblItemDtmx;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divError.
|
||||
/// divError control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divError;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblErrorMsg.
|
||||
/// lblErrorMsg control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblErrorMsg;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divInfo.
|
||||
/// divInfo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divInfo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblSuccessMsg.
|
||||
/// lblSuccessMsg control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblSuccessMsg;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtCancel.
|
||||
/// lbtCancel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtCancel;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblLastBCode.
|
||||
/// lblLastBCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblLastBCode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblMessage.
|
||||
/// lblMessage control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblMessage;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblDestination.
|
||||
/// lblDestination control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblDestination;
|
||||
}
|
||||
|
||||
@@ -5,6 +5,15 @@
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container px-1">
|
||||
<uc1:cmp_labelsPrint runat="server" ID="cmp_labelsPrint" />
|
||||
<div class="card text-center" style="width: 100%;">
|
||||
<h4 class="card-header p-1 bg-secondary text-light"><%: traduci("LabelPrintSmart") %></h4>
|
||||
<div class="card-body py-1">
|
||||
<div class="row">
|
||||
<div class="col-12 mb-2">
|
||||
<uc1:cmp_labelsPrint runat="server" ID="cmp_labelsPrint" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
Generated
+8
-8
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace NKC_WF.site
|
||||
@@ -15,11 +15,11 @@ namespace NKC_WF.site
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_labelsPrint.
|
||||
/// cmp_labelsPrint control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.
|
||||
/// </remarks>
|
||||
protected global::NKC_WF.WebUserControls.cmp_labelsPrint cmp_labelsPrint;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace NKC_WF
|
||||
{
|
||||
get
|
||||
{
|
||||
return ComLib.getCurrBatchId(PlaceCod);
|
||||
return ComLib.getCurrBatchId(MachineSel);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace NKC_WF
|
||||
{
|
||||
get
|
||||
{
|
||||
return ComLib.getCurrSheetId(PlaceCod);
|
||||
return ComLib.getCurrSheetId(MachineSel);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace NKC_WF
|
||||
set
|
||||
{
|
||||
hfBatchID.Value = value.ToString();
|
||||
ComLib.setCurrBatchId(PlaceCod, value);
|
||||
ComLib.setCurrBatchId(MachineSel, value);
|
||||
}
|
||||
get
|
||||
{
|
||||
@@ -86,7 +86,7 @@ namespace NKC_WF
|
||||
set
|
||||
{
|
||||
hfSheetID.Value = value.ToString();
|
||||
ComLib.setCurrSheetId(PlaceCod, value);
|
||||
ComLib.setCurrSheetId(MachineSel, value);
|
||||
}
|
||||
get
|
||||
{
|
||||
@@ -118,6 +118,21 @@ namespace NKC_WF
|
||||
|
||||
#region Private Methods
|
||||
|
||||
protected string MachineSel
|
||||
{
|
||||
get
|
||||
{
|
||||
return PlaceCod;
|
||||
}
|
||||
set
|
||||
{
|
||||
PlaceCod = value;
|
||||
cmp_MU_bins.MachineSel = value;
|
||||
cmp_MU_carts.MachineSel = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Aggiorna componente principale e child components
|
||||
/// </summary>
|
||||
@@ -127,11 +142,11 @@ namespace NKC_WF
|
||||
if (string.IsNullOrEmpty(cmp_MachSem.currMachine))
|
||||
{
|
||||
divMain.Visible = false;
|
||||
PlaceCod = "#";
|
||||
MachineSel = "#";
|
||||
}
|
||||
else
|
||||
{
|
||||
PlaceCod = cmp_MachSem.currMachine;
|
||||
MachineSel = cmp_MachSem.currMachine;
|
||||
divMain.Visible = true;
|
||||
// imposto dati correnti
|
||||
bool doUpdate = setCurrData();
|
||||
@@ -160,7 +175,7 @@ namespace NKC_WF
|
||||
{
|
||||
bool needUpdate = false;
|
||||
// recupero bunk corrente...
|
||||
DS_App.StackListRow currBunk = ComLib.getCurrBunk(PlaceCod);
|
||||
DS_App.StackListRow currBunk = ComLib.getCurrBunk(MachineSel);
|
||||
if (currBunk != null)
|
||||
{
|
||||
bool chgBtLocal = BatchId != currBunk.BatchID;
|
||||
@@ -172,7 +187,7 @@ namespace NKC_WF
|
||||
needUpdate = true;
|
||||
}
|
||||
|
||||
DS_App.SheetListRow currSheet = ComLib.getCurrSheet(BatchId, PlaceCod);
|
||||
DS_App.SheetListRow currSheet = ComLib.getCurrSheet(BatchId, MachineSel);
|
||||
if (currSheet != null)
|
||||
{
|
||||
bool chgShLocal = SheetId != currSheet.SheetID;
|
||||
@@ -188,7 +203,7 @@ namespace NKC_WF
|
||||
{
|
||||
BatchId = 0;
|
||||
SheetId = 0;
|
||||
ComLib.setCurrBunkId(PlaceCod, 0);
|
||||
ComLib.setCurrBunkId(MachineSel, 0);
|
||||
ComLib.man.resetSheetUnload(0);
|
||||
}
|
||||
// se sheet/bunk 0 --> update!
|
||||
|
||||
@@ -40,37 +40,6 @@
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="AppData.DS_AppTableAdapters.UpdManTableAdapter"></asp:ObjectDataSource>
|
||||
|
||||
<%--<div class="col-4 col-md-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2 class="text-center">NKC <i class="fa fa-download"></i></h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<asp:LinkButton runat="server" ID="lbtDownloadNKC" class="btn btn-info text-light btn-lg btn-block" OnClientClick='<%: SteamWare.jsUtils.getCBE("DownloadConfirm")%>' OnClick="lbtDownload_Click" CommandArgument="NKC"><strong><%: Version("NKC", true) %></strong></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4 col-md-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2 class="text-center">ZCode <i class="fa fa-download"></i></h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<asp:LinkButton runat="server" ID="lbtDownloadZCode" class="btn btn-info text-light btn-lg btn-block" OnClientClick='<%: SteamWare.jsUtils.getCBE("DownloadConfirm")%>' OnClick="lbtDownload_Click" CommandArgument="ZCODE"><strong><%: Version("ZCode", true) %></strong></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4 col-md-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2 class="text-center">LPA <i class="fa fa-download"></i></h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<asp:HyperLink runat="server" ID="hlLPA" class="btn btn-info text-light btn-lg btn-block text-uppercase" Target="_blank" NavigateUrl="http://nexus.steamware.net/repository/utility/LPA/LPA/stable/LPA-stable.zip" OnClientClick='<%: SteamWare.jsUtils.getCBE("DownloadConfirm")%>'><strong><%: traduci("stable") %></strong></asp:HyperLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>--%>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12 text-center">
|
||||
|
||||
@@ -87,7 +87,8 @@ namespace NKC_WF.site
|
||||
doDownload(caller, riga);
|
||||
// calcolo elapsed time come TimeSpan value.
|
||||
TimeSpan ts = stopWatch.Elapsed;
|
||||
resultsMsg = $"OK: {caller} downloaded, {ts.TotalSeconds:0.000} sec | {updateUrl(caller)} --> {localDownloadPath(caller)}";
|
||||
string updUrl = riga.IsAuth ? updateUrlAuth(riga.AppName) : updateUrl(riga.AppName);
|
||||
resultsMsg = $"OK: {caller} downloaded, {ts.TotalSeconds:0.000} sec | {updUrl} --> {localDownloadPath(riga.PackName)}";
|
||||
}
|
||||
}
|
||||
// aggiorno messaggio
|
||||
@@ -127,7 +128,7 @@ namespace NKC_WF.site
|
||||
else
|
||||
{
|
||||
UpdateMan.obj.downloadLatest(updateUrl(caller), localDownloadPath(caller), caller);
|
||||
numDone++;
|
||||
numDone++;
|
||||
}
|
||||
}
|
||||
return numDone;
|
||||
@@ -165,7 +166,7 @@ namespace NKC_WF.site
|
||||
protected UpdateMan updManAuth = new UpdateMan("SWDownloader", "viaD@nte16");
|
||||
|
||||
/// <summary>
|
||||
/// URLK stringa di UPDATE...
|
||||
/// URL stringa di UPDATE...
|
||||
/// </summary>
|
||||
protected string updateUrl(string package)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user