FIX gestione KART SMART
This commit is contained in:
@@ -32,5 +32,10 @@ namespace NKC_WF.WebUserControls
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
internal void doUpdate()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -158,7 +158,7 @@ namespace NKC_WF.WebUserControls
|
||||
protected void lbtDoAction_Click(object sender, EventArgs e)
|
||||
{
|
||||
// in base a cosa ho in memoria procedo con successivo step
|
||||
if (checkOk && !imported)
|
||||
if (!checkOk || !imported)
|
||||
{
|
||||
tryImport(false);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
grView.DataBind();
|
||||
fixVisibility();
|
||||
cmp_KR_cart.doUpdate();
|
||||
}
|
||||
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
|
||||
@@ -30,6 +30,13 @@ namespace NKC_WF.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
internal void doUpdate()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
lblTitle.Focus();
|
||||
}
|
||||
|
||||
private void fixSchedOrd()
|
||||
{
|
||||
numRows = DataLayer.man.taPL.getToSchedule().Count * 10;
|
||||
|
||||
@@ -45,15 +45,15 @@
|
||||
<b>
|
||||
<asp:Label ID="lblPartsTot" runat="server" Text='<%# Eval("TotItem") %>' /></b>
|
||||
</div>
|
||||
<div class="col-4 text-left">
|
||||
<div class="col-4 text-left pr-0">
|
||||
Wait:
|
||||
<asp:Label runat="server" ID="lblWait" CssClass="font-weight-bold" Text='<%# Eval("NumPzWaiting") %>' />
|
||||
</div>
|
||||
<div class="col-4 text-center">
|
||||
<div class="col-4 text-center px-0">
|
||||
Ready:
|
||||
<asp:Label runat="server" ID="Label3" CssClass="font-weight-bold" Text='<%# Eval("NumPzBinAvail") %>' />
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
<div class="col-4 text-right pl-0">
|
||||
Cart:
|
||||
<asp:Label runat="server" ID="Label4" CssClass="font-weight-bold" Text='<%# Eval("TotItemCart") %>' />
|
||||
</div>
|
||||
|
||||
@@ -200,7 +200,7 @@ namespace NKC_WF.WebUserControls
|
||||
break;
|
||||
case codeType.Item:
|
||||
cmp_barcode.showOutput("badge badge-success", $"Valid IT Code: {decoData.rawData}");
|
||||
//processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
|
||||
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
|
||||
break;
|
||||
case codeType.ItemGeneric:
|
||||
cmp_barcode.showOutput("badge badge-success", $"Valid IG Code: {decoData.rawData}");
|
||||
@@ -441,6 +441,72 @@ namespace NKC_WF.WebUserControls
|
||||
}
|
||||
}
|
||||
break;
|
||||
case codeType.Item:
|
||||
// recupero la tab ITEMS x iniziare a controllare i dati...
|
||||
tabItem = DataLayer.man.taIL.getBySearch(codeInt, rawData, 0, 999);
|
||||
if (tabItem.Count == 0)
|
||||
{
|
||||
displError($"PART: Code not found {rawData}, please retry", true);
|
||||
showItemDetail(false, null, true);
|
||||
}
|
||||
else if (tabItem.Count == 1)
|
||||
{
|
||||
showItemDetail(true, tabItem[0], false);
|
||||
// verifico se ITEM sia o meno stato caricato sul CART x delivery finale
|
||||
|
||||
// se caricato --> mostro che è già a posto
|
||||
|
||||
// se non caricato --> controllo SecOp
|
||||
|
||||
|
||||
// se non caricato --> controllo PAINT
|
||||
|
||||
// gestione doppia lettura x conferma OnCart
|
||||
|
||||
// salvataggio di OnCartDate
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#if false
|
||||
ar tabOKI = DataLayer.man.taOKOI.getByOtherItemDtmx(rawData);
|
||||
// PRIMO: verifico SE ho delle righe valide...
|
||||
if (tabOKI.Count == 0)
|
||||
{
|
||||
displError($"PART: Code not found {rawData}, please retry", true);
|
||||
// reset preliminare
|
||||
resetOtherItem();
|
||||
}
|
||||
else
|
||||
{
|
||||
var listAvailable = tabOKI.Where(x => x.IsOnCartDateNull()).ToList();
|
||||
if (listAvailable.Count == 0)
|
||||
{
|
||||
displError($"PART: No item available for pickup on target CART for code {rawData} | item {tabOKI[0].OtherItemDesc} | order {tabOKI[0].OrderExtCode}, please retry", true);
|
||||
// reset preliminare
|
||||
resetOtherItem();
|
||||
}
|
||||
else
|
||||
{
|
||||
// verifico SE ci sia ALMENO UN CART in postazione (iniziato KIT ma NON finito)...
|
||||
var listCartAvailable = tabOKI.Where(x => !x.IsCartKitStartNull() && x.IsCartKitEndNull()).ToList();
|
||||
if (listCartAvailable.Count == 0)
|
||||
{
|
||||
displError($"PART: No CART available to proceed: {rawData} | item {tabOKI[0].OtherItemDesc} | order {tabOKI[0].OrderExtCode}", true);
|
||||
// reset preliminare
|
||||
resetOtherItem();
|
||||
}
|
||||
else
|
||||
{
|
||||
// mostro OtherItem!
|
||||
setOtherItem(rawData, codeInt);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case codeType.OtherItem:
|
||||
// recupero la tab OKOI x iniziare a controllare i dati...
|
||||
var tabOKOI = DataLayer.man.taOKOI.getByOtherItemDtmx(rawData);
|
||||
|
||||
Reference in New Issue
Block a user