Appunti pagine mancanti
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<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="hfBarcode" />
|
||||
</div>
|
||||
<div class="col-12 px-0">
|
||||
<div class="row small">
|
||||
@@ -29,7 +30,8 @@
|
||||
<asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-block btn-warning text-uppercase"><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 />
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblLastBCode" /></b><br />
|
||||
<asp:Label runat="server" ID="lblMessage" /><br />
|
||||
<asp:Label runat="server" ID="lblDestination" />
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AppData;
|
||||
using System;
|
||||
|
||||
namespace NKC_WF
|
||||
{
|
||||
@@ -6,7 +7,80 @@ namespace NKC_WF
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
fixIcons();
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
resetIcons();
|
||||
}
|
||||
cmp_barcode.eh_doRefresh += Cmp_barcode_eh_doRefresh;
|
||||
cmp_barcode.eh_doReset += Cmp_barcode_eh_doReset;
|
||||
}
|
||||
/// <summary>
|
||||
/// Comando barcode letto
|
||||
/// </summary>
|
||||
protected string lastCmd
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfBarcode.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfBarcode.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private void Cmp_barcode_eh_doReset(object sender, EventArgs e)
|
||||
{
|
||||
resetIcons();
|
||||
}
|
||||
|
||||
private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
bool doRaiseEv = false;
|
||||
// processo evento..
|
||||
lastCmd = cmp_barcode.inputAcquired.ToUpper();
|
||||
if (lastCmd == "") doRaiseEv = true;
|
||||
// processiamo barcode letto
|
||||
decodedData decoData = DataLayer.man.decodeBcode(lastCmd);
|
||||
switch (decoData.codeType)
|
||||
{
|
||||
case codeType.UNK:
|
||||
break;
|
||||
case codeType.Item:
|
||||
break;
|
||||
case codeType.Material:
|
||||
break;
|
||||
case codeType.Sheet:
|
||||
break;
|
||||
case codeType.Stack:
|
||||
break;
|
||||
case codeType.Batch:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// reset comando
|
||||
cmp_barcode.inputAcquired = "";
|
||||
// aggiorno...
|
||||
doUpdate();
|
||||
#if false
|
||||
// se richiesto faccio raiseEvent
|
||||
if (doRaiseEv)
|
||||
{
|
||||
cmp_stackNextloading.doUpdate();
|
||||
raiseEvent();
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
private void doUpdate()
|
||||
{
|
||||
lblDestination.CssClass = "text-secondary";
|
||||
lblMessage.Text = "";
|
||||
lblDestination.Text = "";
|
||||
lblLastBCode.Text = "";
|
||||
}
|
||||
|
||||
private void fixIcons()
|
||||
@@ -39,10 +113,7 @@ namespace NKC_WF
|
||||
break;
|
||||
case 3:
|
||||
default:
|
||||
lblDestination.CssClass = "text-secondary";
|
||||
lblMessage.Text = "";
|
||||
lblDestination.Text = "";
|
||||
lblLastBCode.Text = "";
|
||||
resetIcons();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -21,6 +21,15 @@ namespace NKC_WF {
|
||||
/// </remarks>
|
||||
protected global::NKC_WF.WebUserControls.cmp_barcode cmp_barcode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfBarcode.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfBarcode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo icnCart.
|
||||
/// </summary>
|
||||
|
||||
@@ -34,6 +34,12 @@
|
||||
<a href="SecondScreen" class="shortcut">
|
||||
<i class="fa fa-desktop text-secondary shortcut-icon"></i><span class="shortcut-label"><%: traduci("SecondScreen") %></span>
|
||||
</a>
|
||||
<a href="GlobalSearch" class="shortcut">
|
||||
<i class="fa fa-binoculars text-secondary shortcut-icon"></i><span class="shortcut-label"><%: traduci("GlobalSearch") %></span>
|
||||
</a>
|
||||
<a href="LabelsPrint" class="shortcut">
|
||||
<i class="fa fa-print text-secondary shortcut-icon"></i><span class="shortcut-label"><%: traduci("LabelsPrint") %></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user