Start new dev version
This commit is contained in:
@@ -1,19 +1,31 @@
|
||||
using AppData;
|
||||
using NKC_SDK;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace NKC_WF.WebUserControls
|
||||
{
|
||||
public partial class cmp_stackBuilding : BaseUserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Comando barcode letto
|
||||
/// </summary>
|
||||
protected string lastCmd
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfLastBCode.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfLastBCode.Value = value;
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// svuoto input barcode...
|
||||
cmp_barcode.inputAcquired = "";
|
||||
lastCmd = "";
|
||||
// pulisco dir temp dai file dei cartellini stampati
|
||||
reportPrinter.obj.pulisciDir();
|
||||
}
|
||||
@@ -30,35 +42,31 @@ namespace NKC_WF.WebUserControls
|
||||
divPrint.Visible = (nextTbl.Count == 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Comando barcode letto
|
||||
/// </summary>
|
||||
protected string lastCmd
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfBarcode.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfBarcode.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
// processo evento..
|
||||
bool doRaiseEv = false;
|
||||
lastCmd = cmp_barcode.inputAcquired.ToUpper();
|
||||
processLastCmd(doRaiseEv);
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
private bool processLastCmd(bool doRaiseEv)
|
||||
{
|
||||
// verifico il datamatrix dei BIN da pitturare
|
||||
if (string.IsNullOrEmpty(lastCmd)) doRaiseEv = true;
|
||||
// processiamo barcode letto
|
||||
decodedData decoData = DataLayer.man.decodeBcode(lastCmd);
|
||||
switch (decoData.codeType)
|
||||
{
|
||||
case codeType.UNK:
|
||||
cmp_barcode.showOutput("text-danger", "Unknown Data");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Item:
|
||||
case codeType.ItemGeneric:
|
||||
cmp_barcode.showOutput("text-warning", "Item - ignored");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Material:
|
||||
// verifico SE il materiale SIA quello dello sheet richiesto dallo stack/bunk corrente...
|
||||
@@ -86,20 +94,20 @@ namespace NKC_WF.WebUserControls
|
||||
break;
|
||||
case codeType.Sheet:
|
||||
cmp_barcode.showOutput("badge badge-warning", "Sheet - ignored");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Stack:
|
||||
cmp_barcode.showOutput("badge badge-warning", "Stack - ignored");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Batch:
|
||||
cmp_barcode.showOutput("badge badge-warning", "Batch - ignored");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
// reset comando
|
||||
cmp_barcode.resetInput();
|
||||
// aggiorno...
|
||||
doUpdate();
|
||||
return doRaiseEv;
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
|
||||
Reference in New Issue
Block a user