Update gestione campo PlaceId
This commit is contained in:
@@ -8,6 +8,16 @@ namespace NKC_WF
|
||||
{
|
||||
public class BaseUserControl : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Postazione attuale (per ora cablata)
|
||||
/// </summary>
|
||||
protected string PlaceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "WRK001";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Membro gestione accessi al datalayer (istanza x ogni classe controllo)
|
||||
/// </summary>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
|
||||
<asp:GridView runat="server" ID="grView" CssClass="table table-sm table-striped small" AutoGenerateColumns="False" DataSourceID="ods">
|
||||
<asp:GridView runat="server" ID="grView" CssClass="table table-sm table-striped small" AutoGenerateColumns="False" DataSourceID="ods" DataKeyNames="ItemExtCode" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<Columns>
|
||||
<%--<asp:BoundField DataField="OrderExtCode" HeaderText="OrderExtCode" SortExpression="OrderExtCode" />
|
||||
<asp:BoundField DataField="CartDtmx" HeaderText="CartDtmx" SortExpression="CartDtmx" />--%>
|
||||
@@ -36,6 +36,11 @@
|
||||
<asp:BoundField DataField="TotCur" HeaderText="Scan Qty" ReadOnly="True" SortExpression="TotCur" />
|
||||
<asp:BoundField DataField="MatExtCode" HeaderText="Material" SortExpression="MatExtCode" />
|
||||
<asp:BoundField DataField="MatDesc" HeaderText="Mat Description" SortExpression="MatDesc" />
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtInvalidate" runat="server" CausesValidation="False" CommandName="Select" CssClass="btn btn-sm btn-warning py-0"><i class="fa fa-chain-broken" aria-hidden="true"></i> <%# traduci("Invalidate") %></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
|
||||
</asp:GridView>
|
||||
|
||||
@@ -30,5 +30,27 @@ namespace NKC_WF.WebUserControls
|
||||
//grView.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
protected string ItemExtCode
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (grView.SelectedIndex >= 0)
|
||||
{
|
||||
answ = grView.SelectedValue.ToString();
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ItemExtCode))
|
||||
{
|
||||
// esegue la stored di reset delle PART con quel ExtCode nel cart...
|
||||
DLMan.taIL.invalidateByPartCart(CartID, ItemExtCode, PlaceId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,17 +23,6 @@ namespace NKC_WF.WebUserControls
|
||||
return hfDeviceId.Value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Postazione attuale (per ora cablata)
|
||||
/// </summary>
|
||||
protected string PlaceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "WRK001";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sheet selezionato...
|
||||
/// </summary>
|
||||
|
||||
@@ -38,16 +38,6 @@ namespace NKC_WF.WebUserControls
|
||||
return hfDeviceId.Value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Postazione attuale (per ora cablata)
|
||||
/// </summary>
|
||||
protected string PlaceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "WRK001";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sheet selezionato...
|
||||
|
||||
@@ -27,16 +27,6 @@ namespace NKC_WF.WebUserControls
|
||||
return hfDeviceId.Value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Postazione attuale (per ora cablata)
|
||||
/// </summary>
|
||||
protected string PlaceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "WRK001";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sheet selezionato...
|
||||
|
||||
@@ -11,16 +11,6 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
public partial class cmp_kittingSmartAdvInvalid : BaseUserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Postazione attuale (per ora cablata)
|
||||
/// </summary>
|
||||
protected string PlaceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "WRK001";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Comando barcode letto
|
||||
/// </summary>
|
||||
@@ -375,7 +365,7 @@ namespace NKC_WF.WebUserControls
|
||||
// solo se ho in sessione dati...
|
||||
if (cmp_ItemDet.ItemId > 0 && cmp_KS_Cart.CartID > 0 && !string.IsNullOrEmpty(ItemExtCode))
|
||||
{
|
||||
// esegue la stored di reset dell'intero cart...
|
||||
// esegue la stored di reset delle PART con quel ExtCode nel cart...
|
||||
DLMan.taIL.invalidateByPartCart(cmp_KS_Cart.CartID,ItemExtCode, PlaceId);
|
||||
}
|
||||
// resetto
|
||||
|
||||
@@ -26,16 +26,6 @@ namespace NKC_WF.WebUserControls
|
||||
return hfDeviceId.Value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Postazione attuale (per ora cablata)
|
||||
/// </summary>
|
||||
protected string PlaceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "WRK001";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sheet selezionato...
|
||||
|
||||
@@ -9,16 +9,6 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
public partial class cmp_partMIA_byPLID : BaseUserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Postazione attuale (per ora cablata)
|
||||
/// </summary>
|
||||
protected string PlaceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "WRK001";
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
@@ -62,16 +62,6 @@ namespace NKC_WF.WebUserControls
|
||||
return hfDeviceId.Value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Postazione attuale (per ora cablata)
|
||||
/// </summary>
|
||||
protected string PlaceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return "WRK001";
|
||||
}
|
||||
}
|
||||
|
||||
protected string redMachUnloadTable = "NKC:SERV:MACH_UNLOAD:TABLES";
|
||||
|
||||
@@ -148,7 +138,6 @@ namespace NKC_WF.WebUserControls
|
||||
lblDestination.Text = "--";
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Comando barcode letto
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user