+
-
diff --git a/NKC_WF/WebUserControls/cmp_kittingCart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingCart.ascx.cs
index 9bdeefe..4cce933 100644
--- a/NKC_WF/WebUserControls/cmp_kittingCart.ascx.cs
+++ b/NKC_WF/WebUserControls/cmp_kittingCart.ascx.cs
@@ -14,9 +14,24 @@ namespace NKC_WF.WebUserControls
}
- public string getCss(object val)
+ public string getCssByNums(object _numWait, object _numReady)
{
- return "";
+ string answ = "alert-success border-success";
+ int numWait = 0;
+ int numReady = 0;
+ int.TryParse(_numWait.ToString(), out numWait);
+ int.TryParse(_numReady.ToString(), out numReady);
+ if (numWait > 0)
+ {
+ answ = "alert-danger border-danger";
+ }
+ else if (numReady > 0)
+ { answ = "alert-warning border-warning"; }
+ else
+ {
+ answ = "alert-success border-success";
+ }
+ return answ;
}
public string getTitle(object val)
{
diff --git a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs
index e4d502b..fbcfcd3 100644
--- a/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs
+++ b/NKC_WF/WebUserControls/cmp_kittingSmart.ascx.cs
@@ -213,15 +213,17 @@ namespace NKC_WF.WebUserControls
doRaiseEv = true;
break;
case codeType.Item:
- tryPickup(decoData.rawData);
cmp_barcode.showOutput("badge badge-success", $"Valid IT Code: {decoData.rawData}");
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
break;
case codeType.ItemGeneric:
- tryPickup(decoData.rawData);
cmp_barcode.showOutput("badge badge-success", $"Valid IG Code: {decoData.rawData}");
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
break;
+ case codeType.OtherItem:
+ cmp_barcode.showOutput("badge badge-success", $"Valid Generic PART Code: {decoData.rawData}");
+ processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
+ break;
case codeType.Material:
cmp_barcode.showOutput("badge badge-warning", $"Material - ignored: {decoData.description}");
doRaiseEv = true;
@@ -254,16 +256,7 @@ namespace NKC_WF.WebUserControls
return doRaiseEv;
}
- ///
- /// Prova a fare pickup (SOLO SE il mio item è nel foglio corrente...)
- ///
- ///
- protected void tryPickup(string itemDtmx)
- {
- // salvo in item sel...
- updateCurrData();
- ComLib.saveItemPickup(SheetID, DeviceId, itemDtmx);
- }
+
///
/// Processo il DataMatrix letto
@@ -277,6 +270,13 @@ namespace NKC_WF.WebUserControls
// processo suggerimenti x ITEM / cart / bin dato suo RawData (Dtmx) e Cod univoco (intero)
switch (tipoCod)
{
+ case codeType.OtherItem:
+ var tabOtherItem = DataLayer.man.taOtItem.getByKey(codeInt);
+ if (tabOtherItem.Count == 1)
+ {
+ showOtherItemDetail(true, tabOtherItem[0], false);
+ }
+ break;
case codeType.Item:
tabItem = DataLayer.man.taIL.getBySearch(codeInt, rawData, 0, 999);
if (tabItem.Count == 1)
@@ -357,7 +357,7 @@ namespace NKC_WF.WebUserControls
break;
default:
break;
- }
+ }
// cerco su DB
@@ -412,8 +412,9 @@ namespace NKC_WF.WebUserControls
///
/// Mostra o nasconde dettaglio su ITEM letto
///
- ///
+ ///
///
+ ///
private void showItemDetail(bool showItem, DS_App.ItemListRow itemRow, bool showError)
{
resetShowData();
@@ -470,6 +471,68 @@ namespace NKC_WF.WebUserControls
}
lbtResetSel.Visible = (itemIdSelected != 0);
}
+ ///
+ /// Mostra o nasconde dettaglio su OTHER ITEM letto
+ ///
+ ///
+ ///
+ ///
+ private void showOtherItemDetail(bool showItem, DS_App.OtherItemRow otherItemRow, bool showError)
+ {
+ resetShowData();
+ divItemDet.Visible = showItem;
+ divItemError.Visible = showError;
+ if (showError)
+ {
+ displError("Other Item not found", true);
+ }
+ if (showItem)
+ {
+ lblItemCode.Text = otherItemRow.OtherItemExtCode;
+ lblItemDesc.Text = otherItemRow.OtherItemDesc;
+ lblItemDtmx.Text = otherItemRow.OtherItemDtmx;
+ itemIdSelected = otherItemRow.OtherItemID;
+ //// CONTROLLO SIA in stato 1 --> worked, 2--> selected, 100--> parked...
+ //switch (otherItemRow.StatusID)
+ //{
+ // case 0:
+ // displError("ERROR: Item not ready", false);
+ // break;
+ // case 1:
+ // case 2:
+ // case 100:
+ // // salvo che è in STATO 2 (picked up)
+ // DataLayer.man.taIL.updateStatus(otherItemRow.ItemID, 2, PlaceId);
+ // // verifico cosa devo mostrare come PROX passaggio...
+ // showCart = otherItemRow.ProcessesReq == "";
+ // showBin = (otherItemRow.ProcessesReq.Contains("PaintFlag"));
+ // secOp = otherItemRow.PostProcList;
+ // showSecOp = (secOp != "");
+ // doUpdate();
+ // break;
+ // case 3:
+ // displError("Item already on CART!", false);
+ // break;
+ // case 4:
+ // // fino a concorrenza qta richiesta sposto, POI do errori
+ // displError("ALL Item already scanned on BIN!", false);
+ // break;
+ // case 5:
+ // displError("Item already at KIT STATION!", false);
+ // break;
+ // case 990:
+ // displError("Item declared SCRAP!", false);
+ // break;
+ // case 991:
+ // displError("Item declared SCRAP with CNC program created!", false);
+ // break;
+ // default:
+ // displError("ERROR: Item status UNKNOWN!", false);
+ // break;
+ //}
+ }
+ lbtResetSel.Visible = (itemIdSelected != 0);
+ }
public int itemIdSelected
{
diff --git a/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs
index 86b7d2e..843164b 100644
--- a/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs
+++ b/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs
@@ -234,6 +234,10 @@ namespace NKC_WF.WebUserControls
cmp_barcode.showOutput("badge badge-warning", $"BUNK - ignored: {decoData.description}");
doRaiseEv = true;
break;
+ case codeType.OtherItem:
+ cmp_barcode.showOutput("badge badge-warning", $"Generic PART - ignored: {decoData.description}");
+ doRaiseEv = true;
+ break;
case codeType.Batch:
cmp_barcode.showOutput("badge badge-warning", $"Batch - ignored: {decoData.description}");
doRaiseEv = true;