From fd4887ecf0efa3a0e09b77bc9c4350c2d838660a Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 17:18:43 +0200 Subject: [PATCH] rimozione pagina utility x SIM --- NKC_WF/site/Utility.aspx | 30 ------- NKC_WF/site/Utility.aspx.cs | 114 --------------------------- NKC_WF/site/Utility.aspx.designer.cs | 60 -------------- 3 files changed, 204 deletions(-) delete mode 100644 NKC_WF/site/Utility.aspx delete mode 100644 NKC_WF/site/Utility.aspx.cs delete mode 100644 NKC_WF/site/Utility.aspx.designer.cs diff --git a/NKC_WF/site/Utility.aspx b/NKC_WF/site/Utility.aspx deleted file mode 100644 index 1aae83a..0000000 --- a/NKC_WF/site/Utility.aspx +++ /dev/null @@ -1,30 +0,0 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Utility.aspx.cs" Inherits="NKC_WF.Utility" %> - - -
-

Utility

-
-
- Cod Takt:
- -
-
- Num Stacks:
- -
-
- Num Panels per stack:
- -
-
-
- Crea dati -
-
-
-
- -
-
-
-
diff --git a/NKC_WF/site/Utility.aspx.cs b/NKC_WF/site/Utility.aspx.cs deleted file mode 100644 index 734620f..0000000 --- a/NKC_WF/site/Utility.aspx.cs +++ /dev/null @@ -1,114 +0,0 @@ -using AppData; -using NKC_SDK; -using System; -using System.Collections.Generic; -using System.Web.UI; - -namespace NKC_WF -{ - public partial class Utility : System.Web.UI.Page - { - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - txtCodTakt.Text = $"{DateTime.Now:yyyyMMdd}.1"; - txtNumStaks.Text = "3"; - txtNumPanels.Text = "5"; - } - } - - protected int numStackReq - { - get - { - int answ = 0; - Int32.TryParse(txtNumStaks.Text, out answ); - return answ; - } - } - protected int numPanels - { - get - { - int answ = 0; - Int32.TryParse(txtNumPanels.Text, out answ); - return answ; - } - } - - - protected void lbtMakeSim_Click(object sender, EventArgs e) - { - // creazione degli stack e dei pannelli... - List stackList = new List(); - List panelList; - ProdBunk currStack; - ProdSheet currPanel; - MaterialData currMaterial; - WorkData currPrintData; - WorkData currMachiningData; - WorkData currUnloadData; - for (int i = 1; i <= numStackReq; i++) - { - // devo creare fino a maxNumPanels - panelList = new List(); - for (int j = 1; j <= numPanels; j++) - { - currMaterial = new MaterialData() - { - MaterialId = 1, - MaterialPN = "6120", - MaterialDescription = "BOARD, WAFER, 1/4 X 48 X 96" - }; - currPrintData = new WorkData() - { - ProgramPath = @"c:\temp\PrintProgram.cnc" - }; - currMachiningData = new WorkData() - { - ProgramPath = @"c:\temp\MachiningProgram.cnc" - }; - currUnloadData = new WorkData() - { - ProgramPath = @"" - }; - currPanel = new ProdSheet() - { - SheetId = j, - Status = PStatus.Programmed, - Material = currMaterial, - Printing = currPrintData, - Machining = currMachiningData, - Unloading = currUnloadData - }; - panelList.Add(currPanel); - } - - currStack = new ProdBunk() - { - DataMatrix = $"DM{txtCodTakt.Text}.{i}", - BunkId = i, - Status = CStatus.Programmed, - SheetList = panelList - }; - stackList.Add(currStack); - } - // creazione oggetto takt - ComLib.Takt currTakt = new ComLib.Takt() - { - TaktId = txtCodTakt.Text, - Status = CStatus.Programmed, - StackList = stackList - }; - // serializzo - //string jsonData = JsonConvert.SerializeObject(currTakt); - string jsonData = ComLib.serializeTakt(currTakt); - - // scrivo su label - lblOut.Text = jsonData; - // salvo in redis / DB - ComLib.saveTakt("SERV", currTakt); - } - } -} \ No newline at end of file diff --git a/NKC_WF/site/Utility.aspx.designer.cs b/NKC_WF/site/Utility.aspx.designer.cs deleted file mode 100644 index 6d228ac..0000000 --- a/NKC_WF/site/Utility.aspx.designer.cs +++ /dev/null @@ -1,60 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. -// -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// -//------------------------------------------------------------------------------ - -namespace NKC_WF { - - - public partial class Utility { - - /// - /// Controllo txtCodTakt. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtCodTakt; - - /// - /// Controllo txtNumStaks. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtNumStaks; - - /// - /// Controllo txtNumPanels. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtNumPanels; - - /// - /// Controllo lbtMakeSim. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtMakeSim; - - /// - /// Controllo lblOut. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.Label lblOut; - } -}