Inizio pagine creazione/consumo KIT anime

This commit is contained in:
Samuele E. Locatelli
2018-07-02 12:21:28 +02:00
parent b79cd68631
commit e5e4d2d3cf
10 changed files with 349 additions and 0 deletions
+24
View File
@@ -570,6 +570,9 @@
<Content Include="Scripts\jquery-ui-1.12.1.min.js" />
<Content Include="Scripts\jSteamware.js" />
<Content Include="Scripts\modernizr-2.8.3.js" />
<Content Include="TK_KA_cons.aspx" />
<Content Include="TK_KA_crea.aspx" />
<Content Include="TK_KA_creaExt.aspx" />
<Content Include="UpdateVoc.aspx" />
<Content Include="VerificaDmtx.aspx" />
<Content Include="WebUserControls\mod_anagFormatiDtx.ascx" />
@@ -1288,6 +1291,27 @@
<Compile Include="test.aspx.designer.cs">
<DependentUpon>test.aspx</DependentUpon>
</Compile>
<Compile Include="TK_KA_cons.aspx.cs">
<DependentUpon>TK_KA_cons.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="TK_KA_cons.aspx.designer.cs">
<DependentUpon>TK_KA_cons.aspx</DependentUpon>
</Compile>
<Compile Include="TK_KA_crea.aspx.cs">
<DependentUpon>TK_KA_crea.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="TK_KA_crea.aspx.designer.cs">
<DependentUpon>TK_KA_crea.aspx</DependentUpon>
</Compile>
<Compile Include="TK_KA_creaExt.aspx.cs">
<DependentUpon>TK_KA_creaExt.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="TK_KA_creaExt.aspx.designer.cs">
<DependentUpon>TK_KA_creaExt.aspx</DependentUpon>
</Compile>
<Compile Include="Trattamenti.aspx.cs">
<DependentUpon>Trattamenti.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+8
View File
@@ -0,0 +1,8 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="TK_KA_cons.aspx.cs" Inherits="GMW.TK_KA_cons" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
consumo anime
</asp:Content>
+17
View File
@@ -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)
{
}
}
}
+15
View File
@@ -0,0 +1,15 @@
//------------------------------------------------------------------------------
// <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 GMW {
public partial class TK_KA_cons {
}
}
+39
View File
@@ -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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
<uc1:mod_selLineaNtDt ID="mod_selLineaNtDt1" runat="server" showSelNtDt="false" showSelPostazione="false" preCodLineNT="0" preCodLineDT="1" cssNormal="btn btn-default btn-lg" cssSelected="btn btn-primary btn-lg active" />
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
<div class="container-fluid">
<asp:Panel ID="pnlSAO" runat="server" ScrollBars="None" CssClass="nav sidebar ombra" BackColor="#696969">
<div style="float: left; height: 100%; min-height: 300px; min-width: 240px; margin: -15px;">
<div style="background-color: #696969; margin: 4px;">
<uc2:mod_storicoAzioniOperatore ID="mod_storicoAzioniOperatore1" runat="server" showDelete="true" />
</div>
</div>
</asp:Panel>
<div class="row">
<div class="col-xs-12">
<div class="msgBoxBarcode">
<div class="message">
<asp:Label runat="server" ID="lblMessaggi" Text=".." />
</div>
<div class="warning">
<asp:Label runat="server" ID="lblWarning" Text="" />
</div>
</div>
</div>
<div class="col-xs-12">
<uc3:mod_anime ID="mod_anime1" runat="server" />
</div>
</div>
</div>
</asp:Panel>
</asp:Content>
+128
View File
@@ -0,0 +1,128 @@
using GMW_data;
using SteamWare;
using System;
using System.Web.UI;
namespace GMW
{
/// <summary>
/// Gestione creazione KIT anime come AL
/// </summary>
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;
}
/// <summary>
/// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
private void mod_selLineaNtDt1_eh_showHideStorico(object sender, EventArgs e)
{
fixStorico();
}
/// <summary>
/// Handles the doRefresh event of the mod_selLineaNtDt1_eh control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e)
{
doUpdate();
mod_anime1.doUpdate();
}
/// <summary>
/// richiesta update del controllo SAO
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_PostRX_NT1_eh_reqUpdate(object sender, EventArgs e)
{
doUpdate();
}
/// <summary>
/// aggiorna messaggi e css
/// </summary>
private void updateMessCss()
{
lblWarning.Text = Postazione.warningText;
lblMessaggi.Text = Postazione.messaggiText;
pnlAll.CssClass = Postazione.CssClass;
}
/// <summary>
/// richiesta (ri)stampa UDC
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
{
mod_anime1.ristampa();
}
/// <summary>
/// sistemo visualizzazione pannelli
/// </summary>
private void fixPanels()
{
// default: moduli visibili (non serve linea)..
bool enableBtn = true;
mod_anime1.Visible = enableBtn;
fixStorico();
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
/// <summary>
/// toggle controllo storico
/// </summary>
private void fixStorico()
{
pnlSAO.Visible = Postazione.showStorico;
}
/// <summary>
/// update generale controlli
/// </summary>
private void doUpdate()
{
updateMessCss();
fixPanels();
mod_storicoAzioniOperatore1.doUpdate();
}
/// <summary>
/// calcola postazione corrente (ip, name, printer)
/// </summary>
private void updatePrinterPostazione()
{
Postazione.IP = Request.UserHostName;
Postazione.setupPrinter();
// mostro warning se postazione non configurata...
if (Postazione.printer == "n.d.")
{
lblWarning.Text = traduci("lblWarnPostNonConf");
}
}
}
}
+78
View File
@@ -0,0 +1,78 @@
//------------------------------------------------------------------------------
// <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 GMW {
public partial class TK_KA_crea {
/// <summary>
/// Controllo mod_selLineaNtDt1.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::GMW.WebUserControls.mod_selLineaNtDt mod_selLineaNtDt1;
/// <summary>
/// Controllo pnlAll.
/// </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.Panel pnlAll;
/// <summary>
/// Controllo pnlSAO.
/// </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.Panel pnlSAO;
/// <summary>
/// Controllo mod_storicoAzioniOperatore1.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1;
/// <summary>
/// Controllo lblMessaggi.
/// </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.Label lblMessaggi;
/// <summary>
/// Controllo lblWarning.
/// </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.Label lblWarning;
/// <summary>
/// Controllo mod_anime1.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::GMW.WebUserControls.mod_anime mod_anime1;
}
}
+8
View File
@@ -0,0 +1,8 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="TK_KA_creaExt.aspx.cs" Inherits="GMW.TK_KA_creaExt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
creazione anime EXT
</asp:Content>
+17
View File
@@ -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)
{
}
}
}
+15
View File
@@ -0,0 +1,15 @@
//------------------------------------------------------------------------------
// <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 GMW {
public partial class TK_KA_creaExt {
}
}