completato porting grafico creazione F18

This commit is contained in:
Samuele Locatelli
2014-04-22 12:26:22 +02:00
parent 1478187d02
commit 6d9303f2bb
11 changed files with 338 additions and 269 deletions
Binary file not shown.
@@ -1,112 +1,72 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_sanpos_creazioneF18.ascx.cs" Inherits="GMW.WebUserControls.mod_sanpos_creazioneF18" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc1" %>
<% if (false)
{ %>
<link href="../Style.css" rel="stylesheet" type="text/css" />
<% } %>
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa" Height="100%">
<div style="height: 100%;">
<div style="float: none; text-align: center; margin: auto;">
<div class="fullPageHeader">
<div style="float: left; text-align: left;">
<asp:Label runat="server" ID="lblPostazione" />
<br />
<asp:Button runat="server" ID="btnRefresh" Text="" />
<asp:Button runat="server" ID="btnShowHideStorico" OnClick="btnShowHideStorico_Click" Width="242px" />
</div>
<div style="float: right;">
<asp:Label runat="server" ID="lblPrinter" />
<br />
&nbsp;
</div>
<div>
<asp:Label runat="server" ID="lblCurrentPage" Text="Pag Corrente" Font-Size="16pt" ForeColor="White" />
<br />
<asp:HyperLink runat="server" ID="hlMenu" NavigateUrl="~/menu.aspx" Text="Main Menu" />
</div>
<div class="row" style="padding-top: 2px; padding-bottom: 2px;">
<div class="col-sm-4 col-lg-3">
<div id="divNumTratt" runat="server" class="panel panel-warning panel-sm">
<div class="panel-heading">
<b><asp:Label runat="server" ID="lblUDC" /></b>
</div>
</div>
<asp:Panel ID="pnlSAO" runat="server" ScrollBars="None">
<div style="float: left; height: 100%; min-height: 600px; min-width: 240px; border-right: 1px solid #333333; border-bottom: 1px solid #333333; background-color: #6C90FF;">
<div style="background-color: #6C90FF; margin: 4px;">
<uc1:mod_storicoAzioniOperatore ID="mod_storicoAzioniOperatore1" runat="server" canSelPost="false" />
</div>
</div>
</asp:Panel>
<div style="float: none; text-align: center; margin: auto;">
<div>
<asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="36pt" Text="" />
</div>
<div>
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="" ToolTip="particolare" />
&nbsp
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF" Font-Bold="true" ToolTip="disegno" />
</div>
<div class="msgBoxBarcode">
<asp:Label runat="server" ID="lblMessaggi" Text="attesa input utente" Font-Size="18pt" />
<br />
<asp:Label runat="server" ID="lblWarning" Visible="false" Text="ATTENZIONE!!! Postazione non configurata!" Font-Size="XX-Large" ForeColor="Red" />
</div>
</div>
<div>
<div style="float: left; padding: 4px; text-align: left; width: 260px; height: 300px;">
<div>
<asp:Label runat="server" ID="lblUDC" />
</div>
<div class="clearDiv">
</div>
<div style="padding: 2px;">
<div style="float: left;">
<asp:TextBox runat="server" ID="txtUDC" Height="40px" Width="200px" Font-Size="18pt" TabIndex="6" />
<asp:RegularExpressionValidator ID="revNumTratt" runat="server" ErrorMessage="!!! formato non corretto !!!" ValidationExpression="[uU](SPLI)[0-9]{8,8}" ControlToValidate="txtUDC" Display="Dynamic" />
<br />
<asp:Label runat="server" ID="lblWarnUdc" CssClass="errore" />&nbsp;
<div class="panel-body">
<div class="row">
<div class="col-sm-9">
<div style="padding: 2px;">
<asp:TextBox runat="server" ID="txtUDC" Height="40px" Width="200px" Font-Size="18pt" TabIndex="6" />
<asp:RegularExpressionValidator ID="revNumTratt" runat="server" ErrorMessage="!!! formato non corretto !!!" ValidationExpression="[uU](SPLI)[0-9]{8,8}" ControlToValidate="txtUDC" Display="Dynamic" />
<br />
<asp:Label runat="server" ID="lblWarnUdc" CssClass="errore" />&nbsp;
</div>
</div>
<div style="float: right;">
<div class="col-sm-3 text-center">
<asp:Button runat="server" ID="btnAdd" Height="40px" Width="40px" Font-Size="20pt" Text="+" OnClick="btnAdd_Click" TabIndex="7" />
</div>
</div>
<div style="clear: both;">
</div>
<div style="padding: 2px;">
<div style="float: left;">
<div class="row">
<div class="col-sm-9">
<asp:ListBox ID="lbUdc" runat="server" Height="160px" Width="206px" Font-Size="18pt" TabIndex="10" />
</div>
<div style="float: right;">
<div class="col-sm-3 text-center">
<asp:Button runat="server" ID="btnSvuota" Height="40px" Width="40px" Font-Size="20pt" Text="-" OnClick="btnSvuota_Click" TabIndex="8" />
</div>
</div>
<div style="clear: both;">
</div>
</div>
<div style="float: right; padding: 4px; text-align: right; width: 220px; height: 300px;">
<div style="float: right; text-align: center;">
<asp:Label runat="server" ID="lblQta" />
<br />
<asp:TextBox runat="server" ID="txtQta" Height="56px" Width="200px" Font-Size="32pt" Style="text-align: center" TabIndex="4" />
</div>
<div style="clear: both;">
<br />
</div>
<asp:Button runat="server" ID="btnStampa" Height="120px" Width="208px" Font-Size="20pt" OnClick="btnStampa_Click" TabIndex="5" />
</div>
<div style="float: none; padding: 4px; text-align: center; margin: auto;">
<div>
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
<br />
<asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="400px" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtBarcode" ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoParticolari" MinimumPrefixLength="2" CompletionInterval="20" />
</div>
<div>
<asp:Label runat="server" ID="lblNote" />
<br />
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="400px" Font-Size="24pt" TextMode="MultiLine" TabIndex="2" />
<br />
<br />
<asp:Button runat="server" ID="btnEmptyNote" Height="30px" Width="180px" OnClick="btnEmptyNote_Click" TabIndex="3" />
</div>
</div>
</div>
</div>
</asp:Panel>
<div class="col-sm-4 col-lg-6">
<div>
<asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="36pt" Text="" />
</div>
<div>
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="" ToolTip="particolare" />
&nbsp
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF" Font-Bold="true" ToolTip="disegno" />
</div>
<div>
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
<br />
<asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="400px" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
<%--<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtBarcode" ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoParticolari" MinimumPrefixLength="2" CompletionInterval="20" />--%>
</div>
<div>
<asp:Label runat="server" ID="lblNote" />
<br />
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="400px" Font-Size="24pt" TextMode="MultiLine" TabIndex="2" />
<br />
<br />
<asp:Button runat="server" ID="btnEmptyNote" Height="30px" Width="180px" OnClick="btnEmptyNote_Click" TabIndex="3" />
</div>
</div>
<div class="col-sm-4 col-lg-3">
<div style="float: right; padding: 4px; text-align: right; width: 220px; height: 300px;">
<div style="float: right; text-align: center;">
<asp:Label runat="server" ID="lblQta" />
<br />
<asp:TextBox runat="server" ID="txtQta" Height="56px" Width="200px" Font-Size="32pt" Style="text-align: center" TabIndex="4" />
</div>
<div style="clear: both;">
<br />
</div>
<asp:Button runat="server" ID="btnStampa" Height="120px" Width="208px" Font-Size="20pt" OnClick="btnStampa_Click" TabIndex="5" />
</div>
</div>
</div>
@@ -39,12 +39,14 @@ namespace GMW.WebUserControls
{
if (!Page.IsPostBack)
{
calcolaPostazione();
traduciObj();
#if false
calcolaPostazione();
storicoVisibile = false;
fixStorico();
// imposto pos abilitata x cancellazione
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneLiquidi");
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneLiquidi");
#endif
}
doChecks();
if (currParticolare != "")
@@ -70,14 +72,13 @@ namespace GMW.WebUserControls
lblDescrAttivo.Text = "";
lblDisegno.Text = "";
}
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
}
/// <summary>
/// richiesta (ri)stampa UDC
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
public void ristampa()
{
// registro ri-stampa UDC
DateTime adesso = DateTime.Now;
@@ -107,9 +108,9 @@ namespace GMW.WebUserControls
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Controllo Liquidi {0}", udcReq), tipoLog.EXCEPTION);
}
// stampo
MagClass.magazzino.stampaUdc(udcReq, postazione_printer, cart, Request.UserHostName);
MagClass.magazzino.stampaUdc(udcReq, Postazione.printer, cart, Request.UserHostName);
// registro azione
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, postazione_name, postazione_IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC F18");
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC F18");
}
/// <summary>
/// udc da stampare
@@ -135,19 +136,23 @@ namespace GMW.WebUserControls
private void traduciObj()
{
// labels
#if false
lblPostazione.Text = string.Format("{2}: {0} ({1})", postazione_name, postazione_IP, traduci("postazione"));
lblPrinter.Text = string.Format("{1}: {0}", postazione_printer, traduci("stampante"));
lblPrinter.Text = string.Format("{1}: {0}", postazione_printer, traduci("stampante"));
lblCurrentPage.Text = traduci(PagCorrente);
#endif
lblUDC.Text = traduci("lblUDC");
lblQta.Text = traduci("lblQuantita");
lblNote.Text = traduci("lblNote");
lblCurrentPage.Text = traduci(PagCorrente);
//txtBox
txtQta.Text = memLayer.ML.confReadString("QtaImballoLiquidiDaSpedire");
// buttons
btnStampa.Text = traduci("btnStampa");
btnEmptyNote.Text = traduci("btnEmptyNote");
#if false
// fix storico
fixStorico();
fixStorico();
#endif
}
/// <summary>
/// restituisce il nome della pagina corrente
@@ -177,6 +182,7 @@ namespace GMW.WebUserControls
{
return user_std.UtSn.Traduci(lemma.ToString());
}
#if false
/// <summary>
/// calcola postazione corrente (ip, name, printer)
/// </summary>
@@ -203,7 +209,7 @@ namespace GMW.WebUserControls
{ }
// mostro warning se postazione non configurata...
lblWarning.Visible = (postazione_printer == "n.d.");
}
}
/// <summary>
/// indica name della postazione corrente
/// </summary>
@@ -246,6 +252,7 @@ namespace GMW.WebUserControls
memLayer.ML.setSessionVal("postazione_printer", value);
}
}
#endif
/// <summary>
/// indica il codice articolo correntemente selezionato
/// </summary>
@@ -367,7 +374,7 @@ namespace GMW.WebUserControls
{
if (barcodeIn != "")
{
lblMessaggi.Text = string.Format("Barcode digitato: {0}", barcodeIn);
Postazione.messaggiText = string.Format("Barcode digitato: {0}", barcodeIn);
switch (tipoBCode)
{
case tipoCodiceBarcode.Particolare:
@@ -377,13 +384,13 @@ namespace GMW.WebUserControls
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
{
currParticolare = "";
lblMessaggi.Text += " - codice particolare non valido / non trovato in RILPRO.";
pnlAll.CssClass = "stileComandoKo";
Postazione.messaggiText += " - codice particolare non valido / non trovato in RILPRO.";
Postazione.CssClass = "stileComandoKo";
}
else
{
lblMessaggi.Text += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
Postazione.messaggiText += " - impostato particolare!";
Postazione.CssClass = "stileComandoOk";
}
// default: qta a zero
decimal qtaPart = 0;
@@ -415,12 +422,12 @@ namespace GMW.WebUserControls
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
{
currParticolare = "";
lblMessaggi.Text += " - codice particolare da UDC non valido / non trovato in RILPRO.";
Postazione.messaggiText += " - codice particolare da UDC non valido / non trovato in RILPRO.";
pnlAll.CssClass = "stileComandoKo";
}
else
{
lblMessaggi.Text += " - impostato particolare!";
Postazione.messaggiText += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
}
#endif
@@ -429,16 +436,16 @@ namespace GMW.WebUserControls
break;
default:
lblMessaggi.Text += " - codice <b>non riconosciuto</b>!";
pnlAll.CssClass = "stileComandoND";
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
Postazione.CssClass = "stileComandoND";
break;
}
barcodeIn = "";
}
else
{
lblMessaggi.Text = traduci("AttesaBCode");
pnlAll.CssClass = "stileAttesa";
Postazione.messaggiText = traduci("AttesaBCode");
Postazione.CssClass = "stileAttesa";
}
//grView.DataBind();
txtBarcode.Focus();
@@ -497,7 +504,9 @@ namespace GMW.WebUserControls
// controllo esista UDC..
checkUdc4elenco(valore);
}
fixStorico();
#if false
fixStorico();
#endif
doChecks();
}
/// <summary>
@@ -582,10 +591,12 @@ namespace GMW.WebUserControls
/// <param name="e"></param>
protected void btnStampa_Click(object sender, EventArgs e)
{
#if false
// calcolo postazione
calcolaPostazione();
calcolaPostazione();
#endif
// verifico postazione x procedere...
if (postazione_printer != "n.d.")
if (Postazione.printer != "n.d.")
{
string newUdcChild = "";
int qta = memLayer.ML.confReadInt("QtaImballoLiquidiDaSpedire");
@@ -616,7 +627,7 @@ namespace GMW.WebUserControls
// creo nuovo UDC del trattamento liquidi
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoLiquidiDaSpedire"), "U", codSogg, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneLiquidi"), "IdxPosizioneLiquidi", memLayer.ML.confReadString("nuovoUdcLiquidiF18"), noteTrim, "", adesso.Year, Request.UserHostName);
// registro creazione nuovo UDC
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Liquidi F18 - qta:{0} {1}", qta, noteTrim));
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Liquidi F18 - qta:{0} {1}", qta, noteTrim));
}
catch (Exception exc)
{
@@ -632,12 +643,12 @@ namespace GMW.WebUserControls
MagClass.magazzino.associaUdcParent(newUdcChild, kvp.Key);
}
// ora stampo il nuovo cartellino!!!
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartLiquidiF18, Request.UserHostName);
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartLiquidiF18, Request.UserHostName);
// incremento timing...
adesso = DateTime.Now;
adesso = adesso.AddSeconds(1);
// registro stampa nuovo UDC
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Liquidi F18");
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Liquidi F18");
}
}
else
@@ -645,7 +656,9 @@ namespace GMW.WebUserControls
httpLog(string.Format("Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
Response.Redirect("~/login.aspx");
}
mod_storicoAzioniOperatore1.doUpdate();
#if false
mod_storicoAzioniOperatore1.doUpdate();
#endif
}
else
{
@@ -697,6 +710,7 @@ namespace GMW.WebUserControls
{
txtNote.Text = "";
}
#if false
/// <summary>
/// toggle controllo storico
/// </summary>
@@ -711,7 +725,7 @@ namespace GMW.WebUserControls
{
btnShowHideStorico.Text = traduci("btnShowStorico");
}
}
}
/// <summary>
/// imposto visibilità pannelo storico
/// </summary>
@@ -736,5 +750,6 @@ namespace GMW.WebUserControls
storicoVisibile = !storicoVisibile;
fixStorico();
}
#endif
}
}
+35 -134
View File
@@ -13,130 +13,13 @@ namespace GMW.WebUserControls {
public partial class mod_sanpos_creazioneF18 {
/// <summary>
/// pnlAll control.
/// divNumTratt control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlAll;
/// <summary>
/// lblPostazione control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPostazione;
/// <summary>
/// btnRefresh control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnRefresh;
/// <summary>
/// btnShowHideStorico control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnShowHideStorico;
/// <summary>
/// lblPrinter control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPrinter;
/// <summary>
/// lblCurrentPage control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblCurrentPage;
/// <summary>
/// hlMenu control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink hlMenu;
/// <summary>
/// pnlSAO control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlSAO;
/// <summary>
/// mod_storicoAzioniOperatore1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1;
/// <summary>
/// lblParticolareAttivo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblParticolareAttivo;
/// <summary>
/// lblDescrAttivo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDescrAttivo;
/// <summary>
/// lblDisegno control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDisegno;
/// <summary>
/// lblMessaggi control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblMessaggi;
/// <summary>
/// lblWarning control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblWarning;
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divNumTratt;
/// <summary>
/// lblUDC control.
@@ -202,31 +85,31 @@ namespace GMW.WebUserControls {
protected global::System.Web.UI.WebControls.Button btnSvuota;
/// <summary>
/// lblQta control.
/// lblParticolareAttivo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblQta;
protected global::System.Web.UI.WebControls.Label lblParticolareAttivo;
/// <summary>
/// txtQta control.
/// lblDescrAttivo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtQta;
protected global::System.Web.UI.WebControls.Label lblDescrAttivo;
/// <summary>
/// btnStampa control.
/// lblDisegno control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnStampa;
protected global::System.Web.UI.WebControls.Label lblDisegno;
/// <summary>
/// lblBarcode control.
@@ -246,15 +129,6 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtBarcode;
/// <summary>
/// aceParticolare control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.AutoCompleteExtender aceParticolare;
/// <summary>
/// lblNote control.
/// </summary>
@@ -281,5 +155,32 @@ namespace GMW.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnEmptyNote;
/// <summary>
/// lblQta control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblQta;
/// <summary>
/// txtQta control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtQta;
/// <summary>
/// btnStampa control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnStampa;
}
}
BIN
View File
Binary file not shown.
Binary file not shown.
+36 -4
View File
@@ -1,5 +1,37 @@
<%@ Page Title="Creazioen F18" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimpleFull.Master" AutoEventWireup="true" CodeBehind="sanpos_creazioneF18.aspx.cs" Inherits="GMW.sanpos_creazioneF18" %>
<%@ Register src="WebUserControls/mod_sanpos_creazioneF18.ascx" tagname="mod_sanpos_creazioneF18" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<uc1:mod_sanpos_creazioneF18 ID="mod_sanpos_creazioneF181" runat="server" />
<%@ Page Title="Creazioen F18" Language="C#" MasterPageFile="~/FullPage.Master" AutoEventWireup="true" CodeBehind="sanpos_creazioneF18.aspx.cs" Inherits="GMW.sanpos_creazioneF18" %>
<%@ 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_sanpos_creazioneF18.ascx" TagName="mod_sanpos_creazioneF18" 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" cssNormal="btn btn-inverse 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="false" />
</div>
</div>
</asp:Panel>
<div class="row">
<div class="col-xs-12">
<div class="msgBoxBarcode">
<div>
<asp:Label runat="server" ID="lblMessaggi" Text=".." Font-Size="18pt" />
</div>
<div>
<asp:Label runat="server" ID="lblWarning" Text="" Font-Size="XX-Large" ForeColor="Red" />
</div>
</div>
</div>
<div class="col-xs-12">
<uc3:mod_sanpos_creazioneF18 ID="mod_sanpos_creazioneF181" runat="server" />
</div>
</div>
</div>
</asp:Panel>
</asp:Content>
+107
View File
@@ -4,6 +4,8 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
using GMW_data;
namespace GMW
{
@@ -13,6 +15,111 @@ namespace GMW
{
// pulisco dir temp dai file dei cartellini stampati
reportPrinter.obj.pulisciDir();
if (!Page.IsPostBack)
{
updatePrinterPostazione();
// fix css...
Postazione.CssClass = "stileAttesa";
// imposto pos abilitata x cancellazione
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneLiquidi");
}
// update vari...
doUpdate();
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
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();
}
/// <summary>
/// richiesta update del controllo SAO
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_PostRX_DT1_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_sanpos_creazioneF181.ristampa();
}
/// <summary>
/// sistemo visualizzazione pannelli
/// </summary>
private void fixPanels()
{
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");
}
}
}
}
+54
View File
@@ -12,6 +12,60 @@ namespace GMW {
public partial class sanpos_creazioneF18 {
/// <summary>
/// mod_selLineaNtDt1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_selLineaNtDt mod_selLineaNtDt1;
/// <summary>
/// pnlAll control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlAll;
/// <summary>
/// pnlSAO control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlSAO;
/// <summary>
/// mod_storicoAzioniOperatore1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1;
/// <summary>
/// lblMessaggi control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblMessaggi;
/// <summary>
/// lblWarning control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblWarning;
/// <summary>
/// mod_sanpos_creazioneF181 control.
/// </summary>
+2 -2
View File
@@ -5,7 +5,7 @@
using System.Reflection;
[assembly: AssemblyVersion("2.5.670.1572")]
[assembly: AssemblyFileVersion("2.5.670.1572")]
[assembly: AssemblyVersion("2.5.671.1572")]
[assembly: AssemblyFileVersion("2.5.671.1572")]
[assembly: AssemblyCopyright("Steamware © 2007-2014")]
[assembly: AssemblyCompany("Steamware")]
+2 -2
View File
@@ -6,8 +6,8 @@
using System.Reflection;
[assembly: AssemblyVersion("2.5.670.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("2.5.670.<#= this.RevisionNumber #>")]
[assembly: AssemblyVersion("2.5.671.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("2.5.671.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+