OK selezione e deselezione ITEMS
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
<%@ Register Src="~/WebUserControls/cmp_barcode.ascx" TagPrefix="uc1" TagName="cmp_barcode" %>
|
||||
|
||||
<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 bg-secondary text-light"><%: traduci("MachineUnloadSmart") %></h4>
|
||||
<div class="card-body py-1">
|
||||
|
||||
@@ -12,17 +12,34 @@ namespace NKC_WF.WebUserControls
|
||||
/// <summary>
|
||||
/// ID univoco da IP
|
||||
/// </summary>
|
||||
protected string deviceId = "AAA";
|
||||
protected string DeviceId
|
||||
{
|
||||
set
|
||||
{
|
||||
hfDeviceId.Value = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
return hfDeviceId.Value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Batch selezionato
|
||||
/// </summary>
|
||||
protected int BatchID;
|
||||
/// <summary>
|
||||
/// Sheet selezionato...
|
||||
/// </summary>
|
||||
protected int SheetID;
|
||||
|
||||
protected int SheetID
|
||||
{
|
||||
set
|
||||
{
|
||||
hfSheetID.Value = value.ToString();
|
||||
}
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(hfSheetID.Value, out answ);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
protected string secOp
|
||||
{
|
||||
get
|
||||
@@ -39,15 +56,29 @@ namespace NKC_WF.WebUserControls
|
||||
/// </summary>
|
||||
protected void updateCurrData()
|
||||
{
|
||||
//!!!FIXME!!! fare calcolo del VERO batch corrente...
|
||||
BatchID = 242;
|
||||
// FORSE 5/5?!?
|
||||
var sheetList = DataLayer.man.taSHL.getByMLStatus(BatchID, 3, 5);
|
||||
var sheetList = DataLayer.man.taSHL.getByMLStatus(BatchId, 3, 5);
|
||||
if (sheetList.Count > 0)
|
||||
{
|
||||
SheetID = sheetList[0].SheetID;
|
||||
}
|
||||
deviceId = ComLib.GetIPAddress().Replace(".", "0").Replace(":", "0");
|
||||
DeviceId = ComLib.GetIPAddress().Replace(".", "0").Replace(":", "0");
|
||||
}
|
||||
/// <summary>
|
||||
/// Batch corrente...
|
||||
/// </summary>
|
||||
public int BatchId
|
||||
{
|
||||
set
|
||||
{
|
||||
hfBatchID.Value = value.ToString();
|
||||
}
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(hfBatchID.Value, out answ);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -124,7 +155,7 @@ namespace NKC_WF.WebUserControls
|
||||
case codeType.UNK:
|
||||
cmp_barcode.showOutput("text-danger", $"Unknown Data: {decoData.rawData} --> no action");
|
||||
// elimino item sel...
|
||||
ComLib.resetItemPickup(SheetID, deviceId);
|
||||
ComLib.resetItemPickup(SheetID, DeviceId);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Item:
|
||||
@@ -164,7 +195,7 @@ namespace NKC_WF.WebUserControls
|
||||
default:
|
||||
cmp_barcode.showOutput("text-danger", $"Unknown Data: {decoData.rawData} --> no action");
|
||||
// elimino item sel...
|
||||
ComLib.resetItemPickup(SheetID, deviceId);
|
||||
ComLib.resetItemPickup(SheetID, DeviceId);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -178,7 +209,7 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
// salvo in item sel...
|
||||
updateCurrData();
|
||||
ComLib.saveItemPickup(SheetID, deviceId, itemDtmx);
|
||||
ComLib.saveItemPickup(SheetID, DeviceId, itemDtmx);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -237,7 +268,7 @@ namespace NKC_WF.WebUserControls
|
||||
DataLayer.man.taIL.updateStatus(itemIdSelected, 4, "WRK001");
|
||||
lblDestination.Text = $"Item {itemIdSelected} PUT IN CART {rawData}";
|
||||
// elimino item sel...
|
||||
ComLib.resetItemPickup(SheetID, deviceId);
|
||||
ComLib.resetItemPickup(SheetID, DeviceId);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -257,7 +288,7 @@ namespace NKC_WF.WebUserControls
|
||||
DataLayer.man.taIL.updateStatus(itemIdSelected, 5, "WRK001");
|
||||
lblDestination.Text = $"Item {itemIdSelected} PUT IN BIN {rawData}";
|
||||
// elimino item sel...
|
||||
ComLib.resetItemPickup(SheetID, deviceId);
|
||||
ComLib.resetItemPickup(SheetID, DeviceId);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -14,6 +14,33 @@ namespace NKC_WF.WebUserControls
|
||||
public partial class cmp_unloadSmart
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfBatchID.
|
||||
/// </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 hfBatchID;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfSheetID.
|
||||
/// </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 hfSheetID;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfDeviceId.
|
||||
/// </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 hfDeviceId;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_barcode.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user