Update x gestione KIT finale

This commit is contained in:
Samuele E. Locatelli
2020-02-17 18:44:09 +01:00
parent ab18f22345
commit 284f5ef84e
10 changed files with 189 additions and 18 deletions
+16
View File
@@ -362,6 +362,7 @@
<Content Include="Images\WIP.png" />
<Content Include="site\KitRequestImporter.aspx" />
<Content Include="site\Kitting.aspx" />
<Content Include="site\KittingSmart.aspx" />
<Content Include="site\LabelsPrint.aspx" />
<Content Include="site\Login.aspx" />
<Content Include="site\MachineLoad.aspx" />
@@ -388,6 +389,7 @@
<Content Include="WebUserControls\cmp_fileUpload.ascx" />
<Content Include="WebUserControls\cmp_kitImpCheck.ascx" />
<Content Include="WebUserControls\cmp_kitList.ascx" />
<Content Include="WebUserControls\cmp_kitting.ascx" />
<Content Include="WebUserControls\cmp_login.ascx" />
<Content Include="WebUserControls\cmp_ML_ShDet.ascx" />
<Content Include="WebUserControls\cmp_MU_carts.ascx" />
@@ -639,6 +641,13 @@
<Compile Include="site\Kitting.aspx.designer.cs">
<DependentUpon>Kitting.aspx</DependentUpon>
</Compile>
<Compile Include="site\KittingSmart.aspx.cs">
<DependentUpon>KittingSmart.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="site\KittingSmart.aspx.designer.cs">
<DependentUpon>KittingSmart.aspx</DependentUpon>
</Compile>
<Compile Include="site\LabelsPrint.aspx.cs">
<DependentUpon>LabelsPrint.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -863,6 +872,13 @@
<Compile Include="WebUserControls\cmp_kitList.ascx.designer.cs">
<DependentUpon>cmp_kitList.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_kitting.ascx.cs">
<DependentUpon>cmp_kitting.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\cmp_kitting.ascx.designer.cs">
<DependentUpon>cmp_kitting.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_login.ascx.cs">
<DependentUpon>cmp_login.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+15
View File
@@ -0,0 +1,15 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_kitting.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_kitting" %>
<div class="row border border-info rounded m-2 text-center">
<div class="col-12">
<h2>BIN LIST</h2>
elenco BIN (small)
</div>
</div>
<div class="row border border-success rounded m-2 text-center">
<div class="col-12">
<h2>CART LIST</h2>
elenco cart
</div>
</div>
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace NKC_WF.WebUserControls
{
public partial class cmp_kitting : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+17
View File
@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace NKC_WF.WebUserControls
{
public partial class cmp_kitting
{
}
}
+3 -3
View File
@@ -1,7 +1,7 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/SiteContent.master" AutoEventWireup="true" CodeBehind="Kitting.aspx.cs" Inherits="NKC_WF.Kitting" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Kitting.aspx.cs" Inherits="NKC_WF.Kitting" %>
<%@ Register Src="~/WebUserControls/tpl_WIP.ascx" TagPrefix="uc1" TagName="tpl_WIP" %>
<%@ Register Src="~/WebUserControls/cmp_kitting.ascx" TagPrefix="uc1" TagName="cmp_kitting" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<uc1:tpl_WIP runat="server" ID="tpl_WIP" />
<uc1:cmp_kitting runat="server" id="cmp_kitting" />
</asp:Content>
+1 -1
View File
@@ -13,7 +13,7 @@ namespace NKC_WF
{
if (!Page.IsPostBack)
{
((SiteContent)this.Master).showSearch = false;
((SiteMaster)this.Master).showSearch = false;
}
}
}
+16 -14
View File
@@ -7,18 +7,20 @@
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace NKC_WF {
public partial class Kitting {
/// <summary>
/// Controllo tpl_WIP.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::NKC_WF.WebUserControls.tpl_WIP tpl_WIP;
}
namespace NKC_WF
{
public partial class Kitting
{
/// <summary>
/// Controllo cmp_kitting.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::NKC_WF.WebUserControls.cmp_kitting cmp_kitting;
}
}
+10
View File
@@ -0,0 +1,10 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="KittingSmart.aspx.cs" Inherits="NKC_WF.site.KittingSmart" %>
<%@ Register Src="~/WebUserControls/cmp_unloadSmart.ascx" TagPrefix="uc1" TagName="cmp_unloadSmart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<asp:HiddenField ID="hfBatchID" runat="server" />
<uc1:cmp_unloadSmart runat="server" ID="cmp_unloadSmart" />
</asp:Content>
+59
View File
@@ -0,0 +1,59 @@
using AppData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace NKC_WF.site
{
public partial class KittingSmart : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((SiteMaster)this.Master).showSearch = false;
doUpdate();
}
}
/// <summary>
/// Batch corrente...
/// </summary>
public int BatchId
{
set
{
hfBatchID.Value = value.ToString();
}
get
{
int answ = 0;
int.TryParse(hfBatchID.Value, out answ);
return answ;
}
}
/// <summary>
/// Aggiorna componente principale e child components
/// </summary>
private void doUpdate()
{
setCurrData();
// aggiorno child
cmp_unloadSmart.BatchId = BatchId;
}
/// <summary>
/// Imposta dati correnti (Bunk / Sheet)
/// </summary>
private void setCurrData()
{
// recupero bunk corrente...
DS_App.StackListRow currBunk = ComLib.getCurrBunk();
if (currBunk != null)
{
BatchId = currBunk.BatchID;
}
}
}
}
+35
View File
@@ -0,0 +1,35 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace NKC_WF.site
{
public partial class KittingSmart
{
/// <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 cmp_unloadSmart.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::NKC_WF.WebUserControls.cmp_unloadSmart cmp_unloadSmart;
}
}