diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 8a3629a..c420285 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -518,6 +518,7 @@ + @@ -1429,6 +1430,13 @@ cmp_login.ascx + + cmp_MachSelSmart.ascx + ASPXCodeBehind + + + cmp_MachSelSmart.ascx + cmp_MachSem.ascx ASPXCodeBehind diff --git a/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx b/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx new file mode 100644 index 0000000..23998a0 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx @@ -0,0 +1,7 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_MachSelSmart.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_MachSelSmart" %> + + + + + <%: hfMachine.Value %> + \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx.cs new file mode 100644 index 0000000..7aed419 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx.cs @@ -0,0 +1,84 @@ +using SteamWare; +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_MachSelSmart : BaseUserControl + { + #region Public Properties + + public string currPage + { + get + { + string url = HttpContext.Current.Request.Url.PathAndQuery; + if (url.Contains("?mach=")) + { + url = url.Substring(0, url.IndexOf("?mach=")); + } + return url; + } + } + + public string MachineSel + { + get + { + string answ = ""; + answ = memLayer.ML.QSS("mach"); + return answ; + } + set + { + if (!string.IsNullOrEmpty(value)) + { + string url = $"{currPage}?mach={value}"; + Response.Redirect(url); + } + } + } + + #endregion Public Properties + + #region Private Methods + + private void checkVisibility() + { + string cssClass = "warning"; + if (MachineSel == "NE01") + { + cssClass = "dark"; + } + else if (MachineSel == "NE02") + { + cssClass = "light"; + } + hfMachine.Value = MachineSel; + hfMachClass.Value = cssClass; + lbtReset.Attributes.Remove("class"); + lbtReset.Attributes.Add("class", $"btn btn-block text-center btn-{hfMachClass.Value}"); + lbtReset.DataBind(); + } + + #endregion Private Methods + + #region Protected Methods + + protected void lbtReset_Click(object sender, EventArgs e) + { + Response.Redirect(currPage); + } + + protected void Page_Load(object sender, EventArgs e) + { + checkVisibility(); + } + + #endregion Protected Methods + } +} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx.designer.cs new file mode 100644 index 0000000..adff169 --- /dev/null +++ b/NKC_WF/WebUserControls/cmp_MachSelSmart.ascx.designer.cs @@ -0,0 +1,44 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF.WebUserControls +{ + + + public partial class cmp_MachSelSmart + { + + /// + /// hfMachClass control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfMachClass; + + /// + /// hfMachine control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfMachine; + + /// + /// lbtReset control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtReset; + } +} diff --git a/NKC_WF/WebUserControls/cmp_MachSem.ascx.cs b/NKC_WF/WebUserControls/cmp_MachSem.ascx.cs index 409c0cb..7e8ea0b 100644 --- a/NKC_WF/WebUserControls/cmp_MachSem.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_MachSem.ascx.cs @@ -72,15 +72,18 @@ namespace NKC_WF.WebUserControls try { var currInfo = currState.Where(x => x.Machine == currMachine).FirstOrDefault(); - var lastState = currInfo.Records.Where(x => x.Station == name).OrderByDescending(x => x.DtRecord).FirstOrDefault(); - if (lastState == null) + if (currInfo != null) { - // aggiungo ND - } - else - { - // verifico la decodifica x ognuno - thisState = ComLib.checkStationDecode(name, lastState.Code); + var lastState = currInfo.Records.Where(x => x.Station == name).OrderByDescending(x => x.DtRecord).FirstOrDefault(); + if (lastState == null) + { + // aggiungo ND + } + else + { + // verifico la decodifica x ognuno + thisState = ComLib.checkStationDecode(name, lastState.Code); + } } } catch diff --git a/NKC_WF/WebUserControls/cmp_stackLoading.ascx b/NKC_WF/WebUserControls/cmp_stackLoading.ascx index 9ae9b8a..4b93245 100644 --- a/NKC_WF/WebUserControls/cmp_stackLoading.ascx +++ b/NKC_WF/WebUserControls/cmp_stackLoading.ascx @@ -1,6 +1,7 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_stackLoading.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_stackLoading" %> <%@ Register Src="~/WebUserControls/cmp_barcode.ascx" TagPrefix="uc1" TagName="cmp_barcode" %> <%@ Register Src="~/WebUserControls/cmp_stackNextloading.ascx" TagPrefix="uc1" TagName="cmp_stackNextloading" %> +<%@ Register Src="~/WebUserControls/cmp_MachSelSmart.ascx" TagPrefix="uc1" TagName="cmp_MachSelSmart" %>
@@ -13,6 +14,9 @@
+
+ +
@@ -55,4 +59,4 @@
-
+ \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs b/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs index b4cb40f..4d4c184 100644 --- a/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs @@ -7,236 +7,8 @@ namespace NKC_WF.WebUserControls { public partial class cmp_stackLoading : BaseUserControl { - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - // svuoto input barcode... - if (enableBCode) - { - cmp_barcode.inputAcquired = ""; - lastCmd = ""; - } - cmp_stackNextloading.BatchId = BatchIdCurr; - raiseEvent(); - doUpdate(); - } - if (enableBCode) - { - cmp_barcode.eh_doRefresh += Cmp_barcode_eh_doRefresh; - } - fixDisplay(); - } + #region Protected Properties - private void fixDisplay() - { - cmp_barcode.Visible = enableBCode; - } - - public bool enableBCode - { - get - { - bool answ = false; - bool.TryParse(hfEnableBCode.Value, out answ); - return answ; - } - set - { - hfEnableBCode.Value = value.ToString(); - } - } - - - /// - /// Comando barcode letto - /// - protected string lastCmd - { - get - { - return hfBarcode.Value; - } - set - { - hfBarcode.Value = value; - } - } - public int BatchIdCurr - { - get - { - int answ = 0; - try - { - if (frmView.SelectedValue != null) - { - string selBatch = $"{frmView.SelectedValue}"; - if (!string.IsNullOrEmpty(selBatch)) - { - int.TryParse(selBatch, out answ); - } - } - } - catch - { } - return answ; - } - } - public int StackId - { - set - { - hfStackId.Value = value.ToString(); - lastCmd = ""; - cmp_barcode.resetMessage(); - doUpdate(); - } - get - { - int answ = 0; - int.TryParse(hfStackId.Value, out answ); - return answ; - } - } - private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e) - { - - bool doRaiseEv = false; - // processo evento.. - lastCmd = cmp_barcode.inputAcquired.ToUpper(); - doRaiseEv = processLastCmd(doRaiseEv); - // reset comando - cmp_barcode.inputAcquired = ""; - // aggiorno... - doUpdate(); - // se richiesto faccio raiseEvent - if (doRaiseEv) - { - cmp_stackNextloading.doUpdate(); - } - } - - private bool processLastCmd(bool doRaiseEv) - { - if (string.IsNullOrEmpty(lastCmd)) - { - doRaiseEv = true; - } - // processiamo barcode letto - decodedData decoData = DLMan.decodeBcode(lastCmd); - switch (decoData.codeType) - { - case codeType.Stack: - // verifico SE lo stack esista... - DS_App.StackListDataTable tabStack = null; - try - { - tabStack = DLMan.taSTL.getByKey(decoData.codeInt); - } - catch - { } - if (tabStack != null && tabStack.Count == 0) - { - cmp_barcode.showOutput(cssClass.danger, $"{traduci("ErrBunkNotFound")}: {decoData.description}"); - doRaiseEv = true; - } - else - { - // verifico non sia già in lavorazione - if (currentBunkAlreadyWorking(decoData.codeInt)) - { - cmp_barcode.showOutput(cssClass.success, $"{traduci("ErrBunkInProc")}: {decoData.rawData}"); - doRaiseEv = true; - } - else - { - // controllo sia quello RICHIESTO - if (decoData.codeInt == cmp_stackNextloading.StackIdReq) - { - // controllo se il bunk richiesto sia stato caricato coi materiali... - if (!isBunkFilled(decoData.codeInt)) - { - cmp_barcode.showOutput(cssClass.danger, $"{traduci("ErrNextBunkNotReady")}: {decoData.rawData}"); - doRaiseEv = true; - } - else - { - // verifico SE i BUNKS correnti siano tutti stati completati (NumSheet == NumWorking) - if (currentBunkPrinted) - { - cmp_barcode.showOutput(cssClass.success, $"{traduci("BunkOK")}: {decoData.rawData}"); - ComLib.resetCurrBunk(); - ComLib.taktMLCurrBunk = decoData.codeInt.ToString(); - // processo DB e salvo che lo stack è stato caricato in MACHINE LOAD - int stackId = 0; - try - { - var tabStacks = DLMan.taSTL.getByDtmx(decoData.rawData); - if (tabStack.Count == 1) - { - stackId = tabStack[0].StackID; - } - } - catch - { } - // SE HO uno stackId valido (>0)... - if (stackId > 0) - { - DLMan.taSTL.updatePos(stackId, 5); - lgInfo($"cmp_stackLoading| taSTL.updatePos | POS --> 5 | stackId: {stackId}"); - - // controllo status del bunk nel suo insieme... - ComLib.updateBatchPositionByBunk(stackId); - lgInfo($"cmp_stackLoading| updateBatchPositionByBunk | stackId: {stackId}"); - doRaiseEv = true; - } - ComLib.setReloadMU(); - } - // altrimenti segnalo NON pronto x caricare prossimo - else - { - cmp_barcode.showOutput(cssClass.danger, $"{traduci("ErrPrevBunkNotReady")}: {decoData.rawData}"); - doRaiseEv = true; - } - } - } - else - { - cmp_barcode.showOutput(cssClass.danger, $"{traduci("ErrWrongBunk")}: {decoData.rawData}"); - doRaiseEv = true; - } - } - } - break; - default: - cmp_barcode.showOutput(cssClass.danger, $"{traduci("UnknownData")}: {decoData.rawData} --> {traduci("NoValiAction")}"); - doRaiseEv = true; - break; - } - - return doRaiseEv; - } - - protected bool currentBunkAlreadyWorking(int StackIdRequested) - { - bool answ = false; - // leggo i dati del bunk... - var currBunks = DLMan.taSTL.getCurrByBatch(BatchIdCurr); - if (currBunks.Count > 0) - { - // verifico x ogni bunk corrente - foreach (var item in currBunks) - { - // verifico se numSheet = NumWorging - bool checkFound = item.StackID == StackIdRequested; - - // update answ - answ = answ || checkFound; - } - } - return answ; - } protected bool currentBunkPrinted { get @@ -259,6 +31,273 @@ namespace NKC_WF.WebUserControls return answ; } } + + /// + /// Comando barcode letto + /// + protected string lastCmd + { + get + { + return hfBarcode.Value; + } + set + { + hfBarcode.Value = value; + } + } + + #endregion Protected Properties + + #region Public Properties + + public int BatchIdCurr + { + get + { + int answ = 0; + try + { + if (frmView.SelectedValue != null) + { + string selBatch = $"{frmView.SelectedValue}"; + if (!string.IsNullOrEmpty(selBatch)) + { + int.TryParse(selBatch, out answ); + } + } + } + catch + { } + return answ; + } + } + + public bool enableBCode + { + get + { + bool answ = false; + bool.TryParse(hfEnableBCode.Value, out answ); + return answ; + } + set + { + hfEnableBCode.Value = value.ToString(); + } + } + + /// + /// Macchina letta + /// + public string MachineSel + { + get + { + return cmp_MachSelSmart.MachineSel; + } + set + { + cmp_MachSelSmart.MachineSel = value; + } + } + + public int StackId + { + set + { + hfStackId.Value = value.ToString(); + lastCmd = ""; + cmp_barcode.resetMessage(); + doUpdate(); + } + get + { + int answ = 0; + int.TryParse(hfStackId.Value, out answ); + return answ; + } + } + + #endregion Public Properties + + #region Private Methods + + private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e) + { + bool doRaiseEv = false; + // processo evento.. + lastCmd = cmp_barcode.inputAcquired.ToUpper(); + doRaiseEv = processLastCmd(doRaiseEv); + // reset comando + cmp_barcode.inputAcquired = ""; + // aggiorno... + doUpdate(); + // se richiesto faccio raiseEvent + if (doRaiseEv) + { + cmp_stackNextloading.doUpdate(); + } + } + + private void fixDisplay() + { + cmp_barcode.Visible = enableBCode; + } + + private bool processLastCmd(bool doRaiseEv) + { + if (string.IsNullOrEmpty(lastCmd)) + { + doRaiseEv = true; + } + // processiamo barcode letto + decodedData decoData = DLMan.decodeBcode(lastCmd); + switch (decoData.codeType) + { + case codeType.Stack: + // verifico SE HO una macchina selezionata sennò NON accetto + if (string.IsNullOrEmpty(MachineSel)) + { + cmp_barcode.showOutput(cssClass.danger, $"{traduci("MissingMachineSel")}: {decoData.rawData} --> {traduci("NoValiAction")}"); + } + else + { + // verifico SE lo stack esista... + DS_App.StackListDataTable tabStack = null; + try + { + tabStack = DLMan.taSTL.getByKey(decoData.codeInt); + } + catch + { } + if (tabStack != null && tabStack.Count == 0) + { + cmp_barcode.showOutput(cssClass.danger, $"{traduci("ErrBunkNotFound")}: {decoData.description}"); + doRaiseEv = true; + } + else + { + // verifico non sia già in lavorazione + if (currentBunkAlreadyWorking(decoData.codeInt)) + { + cmp_barcode.showOutput(cssClass.success, $"{traduci("ErrBunkInProc")}: {decoData.rawData}"); + doRaiseEv = true; + } + else + { + // controllo sia quello RICHIESTO + if (decoData.codeInt == cmp_stackNextloading.StackIdReq) + { + // controllo se il bunk richiesto sia stato caricato coi materiali... + if (!isBunkFilled(decoData.codeInt)) + { + cmp_barcode.showOutput(cssClass.danger, $"{traduci("ErrNextBunkNotReady")}: {decoData.rawData}"); + doRaiseEv = true; + } + else + { + // verifico SE i BUNKS correnti siano tutti stati completati (NumSheet == NumWorking) + if (currentBunkPrinted) + { + cmp_barcode.showOutput(cssClass.success, $"{traduci("BunkOK")}: {decoData.rawData}"); + ComLib.resetCurrBunk(); + ComLib.taktMLCurrBunk = decoData.codeInt.ToString(); + // processo DB e salvo che lo stack è stato caricato in MACHINE LOAD + int stackId = 0; + try + { + var tabStacks = DLMan.taSTL.getByDtmx(decoData.rawData); + if (tabStack.Count == 1) + { + stackId = tabStack[0].StackID; + } + } + catch + { } + // SE HO uno stackId valido (>0)... + if (stackId > 0) + { + DLMan.taSTL.updatePos(stackId, 5); + lgInfo($"cmp_stackLoading| taSTL.updatePos | POS --> 5 | stackId: {stackId}"); + + // controllo status del bunk nel suo insieme... + ComLib.updateBatchPositionByBunk(stackId); + lgInfo($"cmp_stackLoading| updateBatchPositionByBunk | stackId: {stackId}"); + doRaiseEv = true; + } + ComLib.setReloadMU(); + } + // altrimenti segnalo NON pronto x caricare prossimo + else + { + cmp_barcode.showOutput(cssClass.danger, $"{traduci("ErrPrevBunkNotReady")}: {decoData.rawData}"); + doRaiseEv = true; + } + } + } + else + { + cmp_barcode.showOutput(cssClass.danger, $"{traduci("ErrWrongBunk")}: {decoData.rawData}"); + doRaiseEv = true; + } + } + } + } + break; + + case codeType.MachSelection: + MachineSel = decoData.code; + cmp_barcode.showOutput(cssClass.success, $"{ traduci("MachineSel")}: {decoData.code}"); + break; + + default: + cmp_barcode.showOutput(cssClass.danger, $"{traduci("UnknownData")}: {decoData.rawData} --> {traduci("NoValiAction")}"); + doRaiseEv = true; + break; + } + + return doRaiseEv; + } + + #endregion Private Methods + + #region Protected Methods + + protected void checkVisibility() + { + lblLoaded.Visible = StackId != 0; + frmView.Visible = !lblLoaded.Visible; + // fix div di simulazione + divSim.Visible = (memLayer.ML.CRS("environment") == "DEV" && !enableBCode); + } + + protected bool currentBunkAlreadyWorking(int StackIdRequested) + { + bool answ = false; + // leggo i dati del bunk... + var currBunks = DLMan.taSTL.getCurrByBatch(BatchIdCurr); + if (currBunks.Count > 0) + { + // verifico x ogni bunk corrente + foreach (var item in currBunks) + { + // verifico se numSheet = NumWorging + bool checkFound = item.StackID == StackIdRequested; + + // update answ + answ = answ || checkFound; + } + } + return answ; + } + + protected void frmView_DataBound(object sender, EventArgs e) + { + cmp_stackNextloading.BatchId = BatchIdCurr; + raiseEvent(); + } + /// /// verifica se il bunk sia stato completato come caricamento dei fogli richiesti) /// @@ -274,32 +313,6 @@ namespace NKC_WF.WebUserControls return answ; } - protected void checkVisibility() - { - lblLoaded.Visible = StackId != 0; - frmView.Visible = !lblLoaded.Visible; - // fix div di simulazione - divSim.Visible = (memLayer.ML.CRS("environment") == "DEV" && !enableBCode); - } - - public void doUpdate() - { - checkVisibility(); - } - - - protected void timerLoad_Tick(object sender, EventArgs e) - { - checkVisibility(); - cmp_stackNextloading.doUpdate(); - } - - protected void frmView_DataBound(object sender, EventArgs e) - { - cmp_stackNextloading.BatchId = BatchIdCurr; - raiseEvent(); - } - protected void lbtAdvanceProd_Click(object sender, EventArgs e) { // chiama stored x cambiare dt dei vari processi governati dal prod... @@ -325,5 +338,43 @@ namespace NKC_WF.WebUserControls } } + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + // svuoto input barcode... + if (enableBCode) + { + cmp_barcode.inputAcquired = ""; + lastCmd = ""; + } + cmp_stackNextloading.BatchId = BatchIdCurr; + MachineSel = ""; + raiseEvent(); + doUpdate(); + } + if (enableBCode) + { + cmp_barcode.eh_doRefresh += Cmp_barcode_eh_doRefresh; + } + fixDisplay(); + } + + protected void timerLoad_Tick(object sender, EventArgs e) + { + checkVisibility(); + cmp_stackNextloading.doUpdate(); + } + + #endregion Protected Methods + + #region Public Methods + + public void doUpdate() + { + checkVisibility(); + } + + #endregion Public Methods } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_stackLoading.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_stackLoading.ascx.designer.cs index 2e024b9..8fa8f33 100644 --- a/NKC_WF/WebUserControls/cmp_stackLoading.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_stackLoading.ascx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ namespace NKC_WF.WebUserControls @@ -15,92 +15,101 @@ namespace NKC_WF.WebUserControls { /// - /// Controllo divSim. + /// divSim control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSim; /// - /// Controllo lbtAdvanceProd. + /// lbtAdvanceProd control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.LinkButton lbtAdvanceProd; /// - /// Controllo hfBarcode. + /// cmp_MachSelSmart control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::NKC_WF.WebUserControls.cmp_MachSelSmart cmp_MachSelSmart; + + /// + /// hfBarcode control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HiddenField hfBarcode; /// - /// Controllo hfEnableBCode. + /// hfEnableBCode control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HiddenField hfEnableBCode; /// - /// Controllo hfStackId. + /// hfStackId control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HiddenField hfStackId; /// - /// Controllo lblLoaded. + /// lblLoaded control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblLoaded; /// - /// Controllo frmView. + /// frmView control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.FormView frmView; /// - /// Controllo ods. + /// ods control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; /// - /// Controllo cmp_barcode. + /// cmp_barcode control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::NKC_WF.WebUserControls.cmp_barcode cmp_barcode; /// - /// Controllo cmp_stackNextloading. + /// cmp_stackNextloading control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::NKC_WF.WebUserControls.cmp_stackNextloading cmp_stackNextloading; } diff --git a/NKC_WF/site/MachineLoadSmart.aspx b/NKC_WF/site/MachineLoadSmart.aspx index d4d7fd4..51d9f7e 100644 --- a/NKC_WF/site/MachineLoadSmart.aspx +++ b/NKC_WF/site/MachineLoadSmart.aspx @@ -5,7 +5,9 @@
-

<%: traduci("MachineLoad") %>

+
+

<%: traduci("MachineLoad") %>

+
@@ -15,4 +17,4 @@
- + \ No newline at end of file diff --git a/NKC_WF/site/MachineLoadSmart.aspx.cs b/NKC_WF/site/MachineLoadSmart.aspx.cs index 4d5ce6f..94ec198 100644 --- a/NKC_WF/site/MachineLoadSmart.aspx.cs +++ b/NKC_WF/site/MachineLoadSmart.aspx.cs @@ -9,6 +9,17 @@ namespace NKC_WF.site { public partial class MachineLoadSmart : BasePage { + #region Private Methods + + private void forceRefresh() + { + cmp_stackLoading.doUpdate(); + } + + #endregion Private Methods + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) @@ -18,10 +29,6 @@ namespace NKC_WF.site } } - - private void forceRefresh() - { - cmp_stackLoading.doUpdate(); - } + #endregion Protected Methods } } \ No newline at end of file diff --git a/NKC_WF/site/MachineLoadSmart.aspx.designer.cs b/NKC_WF/site/MachineLoadSmart.aspx.designer.cs index 7d15274..b728314 100644 --- a/NKC_WF/site/MachineLoadSmart.aspx.designer.cs +++ b/NKC_WF/site/MachineLoadSmart.aspx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ namespace NKC_WF.site @@ -15,11 +15,11 @@ namespace NKC_WF.site { /// - /// Controllo cmp_stackLoading. + /// cmp_stackLoading control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::NKC_WF.WebUserControls.cmp_stackLoading cmp_stackLoading; }