From e5e4d2d3cff57a0d64476e8346ac08a003f389af Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 2 Jul 2018 12:21:28 +0200 Subject: [PATCH] Inizio pagine creazione/consumo KIT anime --- GMW/GMW.csproj | 24 ++++++ GMW/TK_KA_cons.aspx | 8 ++ GMW/TK_KA_cons.aspx.cs | 17 ++++ GMW/TK_KA_cons.aspx.designer.cs | 15 ++++ GMW/TK_KA_crea.aspx | 39 +++++++++ GMW/TK_KA_crea.aspx.cs | 128 +++++++++++++++++++++++++++++ GMW/TK_KA_crea.aspx.designer.cs | 78 ++++++++++++++++++ GMW/TK_KA_creaExt.aspx | 8 ++ GMW/TK_KA_creaExt.aspx.cs | 17 ++++ GMW/TK_KA_creaExt.aspx.designer.cs | 15 ++++ 10 files changed, 349 insertions(+) create mode 100644 GMW/TK_KA_cons.aspx create mode 100644 GMW/TK_KA_cons.aspx.cs create mode 100644 GMW/TK_KA_cons.aspx.designer.cs create mode 100644 GMW/TK_KA_crea.aspx create mode 100644 GMW/TK_KA_crea.aspx.cs create mode 100644 GMW/TK_KA_crea.aspx.designer.cs create mode 100644 GMW/TK_KA_creaExt.aspx create mode 100644 GMW/TK_KA_creaExt.aspx.cs create mode 100644 GMW/TK_KA_creaExt.aspx.designer.cs diff --git a/GMW/GMW.csproj b/GMW/GMW.csproj index 9a357923..bfc44e35 100644 --- a/GMW/GMW.csproj +++ b/GMW/GMW.csproj @@ -570,6 +570,9 @@ + + + @@ -1288,6 +1291,27 @@ test.aspx + + TK_KA_cons.aspx + ASPXCodeBehind + + + TK_KA_cons.aspx + + + TK_KA_crea.aspx + ASPXCodeBehind + + + TK_KA_crea.aspx + + + TK_KA_creaExt.aspx + ASPXCodeBehind + + + TK_KA_creaExt.aspx + Trattamenti.aspx ASPXCodeBehind diff --git a/GMW/TK_KA_cons.aspx b/GMW/TK_KA_cons.aspx new file mode 100644 index 00000000..31dec0b8 --- /dev/null +++ b/GMW/TK_KA_cons.aspx @@ -0,0 +1,8 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="TK_KA_cons.aspx.cs" Inherits="GMW.TK_KA_cons" %> + + + + + + consumo anime + diff --git a/GMW/TK_KA_cons.aspx.cs b/GMW/TK_KA_cons.aspx.cs new file mode 100644 index 00000000..5ddd1968 --- /dev/null +++ b/GMW/TK_KA_cons.aspx.cs @@ -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 GMW +{ + public partial class TK_KA_cons : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GMW/TK_KA_cons.aspx.designer.cs b/GMW/TK_KA_cons.aspx.designer.cs new file mode 100644 index 00000000..94aa37ae --- /dev/null +++ b/GMW/TK_KA_cons.aspx.designer.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// 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 GMW { + + + public partial class TK_KA_cons { + } +} diff --git a/GMW/TK_KA_crea.aspx b/GMW/TK_KA_crea.aspx new file mode 100644 index 00000000..d6c823fb --- /dev/null +++ b/GMW/TK_KA_crea.aspx @@ -0,0 +1,39 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="TK_KA_crea.aspx.cs" Inherits="GMW.TK_KA_crea" %> + +<%@ Register Src="WebUserControls/mod_selLineaNtDt.ascx" TagName="mod_selLineaNtDt" TagPrefix="uc1" %> +<%@ Register Src="WebUserControls/mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc2" %> +<%@ Register Src="WebUserControls/mod_anime.ascx" TagName="mod_anime" TagPrefix="uc3" %> + + + + + + + + +
+ +
+
+ +
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+
+
+
diff --git a/GMW/TK_KA_crea.aspx.cs b/GMW/TK_KA_crea.aspx.cs new file mode 100644 index 00000000..bcd19f98 --- /dev/null +++ b/GMW/TK_KA_crea.aspx.cs @@ -0,0 +1,128 @@ +using GMW_data; +using SteamWare; +using System; +using System.Web.UI; + +namespace GMW +{ + /// + /// Gestione creazione KIT anime come AL + /// + public partial class TK_KA_crea : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + updatePrinterPostazione(); + // fix css... + Postazione.CssClass = "stileAttesa"; + // imposto pos abilitata x cancellazione + mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneAnime"); + // pulisco dir temp dai file dei cartellini stampati + reportPrinter.obj.pulisciDir(); + } + // update vari... + doUpdate(); + mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa); + mod_anime1.doUpdate(); + mod_anime1.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate; + mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh; + mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico; + } + /// + /// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control. + /// + /// The source of the event. + /// The instance containing the event data. + private void mod_selLineaNtDt1_eh_showHideStorico(object sender, EventArgs e) + { + fixStorico(); + } + /// + /// Handles the doRefresh event of the mod_selLineaNtDt1_eh control. + /// + /// The source of the event. + /// The instance containing the event data. + private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e) + { + doUpdate(); + mod_anime1.doUpdate(); + } + /// + /// richiesta update del controllo SAO + /// + /// + /// + void mod_PostRX_NT1_eh_reqUpdate(object sender, EventArgs e) + { + doUpdate(); + } + /// + /// aggiorna messaggi e css + /// + private void updateMessCss() + { + lblWarning.Text = Postazione.warningText; + lblMessaggi.Text = Postazione.messaggiText; + pnlAll.CssClass = Postazione.CssClass; + } + /// + /// richiesta (ri)stampa UDC + /// + /// + /// + void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e) + { + mod_anime1.ristampa(); + } + /// + /// sistemo visualizzazione pannelli + /// + private void fixPanels() + { + // default: moduli visibili (non serve linea).. + bool enableBtn = true; + mod_anime1.Visible = enableBtn; + fixStorico(); + } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } + /// + /// toggle controllo storico + /// + private void fixStorico() + { + pnlSAO.Visible = Postazione.showStorico; + } + /// + /// update generale controlli + /// + private void doUpdate() + { + updateMessCss(); + fixPanels(); + mod_storicoAzioniOperatore1.doUpdate(); + } + /// + /// calcola postazione corrente (ip, name, printer) + /// + private void updatePrinterPostazione() + { + Postazione.IP = Request.UserHostName; + Postazione.setupPrinter(); + // mostro warning se postazione non configurata... + if (Postazione.printer == "n.d.") + { + lblWarning.Text = traduci("lblWarnPostNonConf"); + } + } + } +} diff --git a/GMW/TK_KA_crea.aspx.designer.cs b/GMW/TK_KA_crea.aspx.designer.cs new file mode 100644 index 00000000..40fe2d9f --- /dev/null +++ b/GMW/TK_KA_crea.aspx.designer.cs @@ -0,0 +1,78 @@ +//------------------------------------------------------------------------------ +// +// 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 GMW { + + + public partial class TK_KA_crea { + + /// + /// Controllo mod_selLineaNtDt1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GMW.WebUserControls.mod_selLineaNtDt mod_selLineaNtDt1; + + /// + /// Controllo pnlAll. + /// + /// + /// 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.Panel pnlAll; + + /// + /// Controllo pnlSAO. + /// + /// + /// 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.Panel pnlSAO; + + /// + /// Controllo mod_storicoAzioniOperatore1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1; + + /// + /// Controllo lblMessaggi. + /// + /// + /// 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 lblMessaggi; + + /// + /// Controllo lblWarning. + /// + /// + /// 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 lblWarning; + + /// + /// Controllo mod_anime1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GMW.WebUserControls.mod_anime mod_anime1; + } +} diff --git a/GMW/TK_KA_creaExt.aspx b/GMW/TK_KA_creaExt.aspx new file mode 100644 index 00000000..e37a9a46 --- /dev/null +++ b/GMW/TK_KA_creaExt.aspx @@ -0,0 +1,8 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="TK_KA_creaExt.aspx.cs" Inherits="GMW.TK_KA_creaExt" %> + + + + + + creazione anime EXT + diff --git a/GMW/TK_KA_creaExt.aspx.cs b/GMW/TK_KA_creaExt.aspx.cs new file mode 100644 index 00000000..0b021a10 --- /dev/null +++ b/GMW/TK_KA_creaExt.aspx.cs @@ -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 GMW +{ + public partial class TK_KA_creaExt : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GMW/TK_KA_creaExt.aspx.designer.cs b/GMW/TK_KA_creaExt.aspx.designer.cs new file mode 100644 index 00000000..46a4c857 --- /dev/null +++ b/GMW/TK_KA_creaExt.aspx.designer.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// 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 GMW { + + + public partial class TK_KA_creaExt { + } +}