completata sterr taglio IN

This commit is contained in:
Samuele Locatelli
2014-05-07 17:05:19 +02:00
parent 904ec484e0
commit fb1811ce4e
9 changed files with 264 additions and 484 deletions
+38 -4
View File
@@ -1,5 +1,39 @@
<%@ Page Title="Sterr Taglio IN" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimpleFull.Master" AutoEventWireup="true" CodeBehind="SterrTaglioIN.aspx.cs" Inherits="GMW.SterrTaglioIN" EnableEventValidation="false" %>
<%@ Register src="WebUserControls/mod_SterrTagIN.ascx" tagname="mod_SterrTagIN" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<uc1:mod_SterrTagIN ID="mod_SterrTagIN1" runat="server" />
<%@ Page Title="Sterr Taglio IN" Language="C#" MasterPageFile="~/FullPage.Master" AutoEventWireup="true" CodeBehind="SterrTaglioIN.aspx.cs" Inherits="GMW.SterrTaglioIN" EnableEventValidation="false" %>
<%@ 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_SterrTagIN.ascx" TagName="mod_SterrTagIN" 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" urlNT="SterrTaglioIN" urlDT="SterrTaglioOUT" preCodLineNT="W10" preCodLineDT="W10" cssNormal="btn btn-inverse btn-lg" cssSelected="btn btn-primary btn-lg active" showSelNtDt="true" lemmaSx="Ingresso" lemmaDx="Uscita" cssBtnSx="glyphicon glyphicon-import" cssBtnDx="glyphicon glyphicon-export" />
<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_SterrTagIN ID="mod_SterrTagIN1" runat="server" />
</div>
</div>
</div>
</asp:Panel>
</asp:Content>
+114
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
{
@@ -11,6 +13,118 @@ namespace GMW
{
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.confReadInt("IdxPosizioneSterrati");
// 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_SterrTagIN1.doUpdate();
mod_SterrTagIN1.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_SterrTagIN1.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_SterrTagIN1.ristampa();
}
/// <summary>
/// sistemo visualizzazione pannelli
/// </summary>
private void fixPanels()
{
// default: moduli NON visibili SE non ho linea indicata..
bool enableBtn = false;
if (Postazione.currCodCella != "") enableBtn = true;
mod_SterrTagIN1.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");
}
}
}
}
+54
View File
@@ -12,6 +12,60 @@ namespace GMW {
public partial class SterrTaglioIN {
/// <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_SterrTagIN1 control.
/// </summary>
+26 -73
View File
@@ -1,76 +1,37 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_SterrTagIN.ascx.cs" Inherits="GMW.WebUserControls.mod_SterrTagIN" %>
<%@ 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" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/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>
</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; background-color: black; color: white; font-size: 24pt; height: 1.5em;">
<div class="divSx" style="padding-left: 2px; padding-top:2px;">
<asp:Button runat="server" ID="btnIn" Text="INGRESSO" CssClass="btnAdd btnDis" Enabled="false" />
</div>
<div class="divDx" style="padding-right: 2px; padding-top:2px;">
<asp:Button runat="server" ID="btnOut" Text="USCITA" CssClass="btnRemove" OnClick="btnOut_Click" />
</div>
<asp:DropDownList ID="ddlLinea" runat="server" AutoPostBack="True" DataSourceID="odsLinea" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlLinea_SelectedIndexChanged"></asp:DropDownList>
<asp:ObjectDataSource ID="odsLinea" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selLineeTableAdapter">
<SelectParameters>
<asp:Parameter DefaultValue="W10" Name="conditio" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<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 class="row">
<div class="col-sm-4 col-lg-3">
&nbsp;
</div>
<div class="col-sm-4 col-lg-6">
<div>
<asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="36pt" Text="" />
</div>
<div>
<div style="float: left; padding: 4px; text-align: left; width: 220px; height: 300px;">
<div style="float: left; text-align: center;">
<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="100%" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
</div>
</div>
<div class="col-sm-4 col-lg-3">
<div class="panel panel-primary panel-sm">
<div class="panel-heading">
<b><%: traduci("UDC") %></b>
</div>
<div style="float: right; padding: 4px; text-align: right; width: 220px; height: 300px;">
<div style="float: right; text-align: center;">
<div class="panel-body">
<div class="boxRicerca">
<div style="float: left;">
<asp:TextBox ID="txtCerca" runat="server" OnTextChanged="txtCerca_TextChanged" Width="160px" AutoPostBack="True" />
@@ -139,15 +100,7 @@
</FilterParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />
</div>
</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" />
</div>
</div>
</div>
</div>
</asp:Panel>
</div>
+23 -273
View File
@@ -13,6 +13,7 @@ namespace GMW.WebUserControls
public partial class mod_SterrTagIN : System.Web.UI.UserControl
{
public event EventHandler eh_nuovaRicerca;
public event EventHandler eh_reqUpdate;
/// <summary>
/// stringa UID univoca
/// </summary>
@@ -33,20 +34,9 @@ namespace GMW.WebUserControls
if (!Page.IsPostBack)
{
fixRicercaUdc();
calcolaPostazione();
traduciObj();
storicoVisibile = false;
fixStorico();
// imposto pos abilitata x cancellazione
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneSterrati");
// se c'è imposto linea da sessione
if (currCodLinea != "")
{
checkSelDDL(currCodLinea, false);
}
}
doChecks();
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
}
/// <summary>
/// verifica se si debab mostrare un campo ricerca UDC attivo...
@@ -63,9 +53,9 @@ namespace GMW.WebUserControls
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
public void ristampa()
{
MagClass.magazzino.stampaUdc(udcReq, postazione_printer, tipoCartellino.cartSterr, Request.UserHostName);
MagClass.magazzino.stampaUdc(udcReq, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
// registro ri-stampa UDC
DateTime adesso = DateTime.Now;
// calcolo particolare...
@@ -80,7 +70,7 @@ namespace GMW.WebUserControls
{
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Sterrato IN {0}", udcReq), tipoLog.EXCEPTION);
}
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, postazione_name, postazione_IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Sterrato IN");
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Sterrato IN");
}
/// <summary>
/// udc da stampare
@@ -104,13 +94,7 @@ namespace GMW.WebUserControls
/// </summary>
private void traduciObj()
{
// labels
lblPostazione.Text = string.Format("{2}: {0} ({1})", postazione_name, postazione_IP, traduci("postazione"));
lblPrinter.Text = string.Format("{1}: {0}", postazione_printer, traduci("stampante"));
lblCurrentPage.Text = traduci(PagCorrente);
btnCerca.Text = traduci("btnSearch");
// fix storico
fixStorico();
}
/// <summary>
/// restituisce il nome della pagina corrente
@@ -141,75 +125,6 @@ namespace GMW.WebUserControls
return user_std.UtSn.Traduci(lemma.ToString());
}
/// <summary>
/// calcola postazione corrente (ip, name, printer)
/// </summary>
private void calcolaPostazione()
{
postazione_IP = Request.UserHostName;
postazione_name = dnsUtils.DetermineCompName(postazione_IP);
// cerco stampante x postazione
postazione_printer = "n.d.";
try
{
DS_Applicazione.ElencoPostazioniDataTable tabPost = DataProxy.obj.taElPost.getByCod(postazione_name);
if (tabPost.Rows.Count > 0)
{
postazione_printer = tabPost[0].stampante;
}
else
{
tabPost = DataProxy.obj.taElPost.getByCod("default");
postazione_printer = tabPost[0].stampante;
}
}
catch
{ }
// mostro warning se postazione non configurata...
lblWarning.Visible = (postazione_printer == "n.d.");
}
/// <summary>
/// indica name della postazione corrente
/// </summary>
protected string postazione_name
{
get
{
return memLayer.ML.StringSessionObj("postazione_name");
}
set
{
memLayer.ML.setSessionVal("postazione_name", value);
}
}
/// <summary>
/// indica ip della postazione corrente
/// </summary>
protected string postazione_IP
{
get
{
return memLayer.ML.StringSessionObj("postazione_IP");
}
set
{
memLayer.ML.setSessionVal("postazione_IP", value);
}
}
/// <summary>
/// indica stampante associata alla postazione corrente
/// </summary>
protected string postazione_printer
{
get
{
return memLayer.ML.StringSessionObj("postazione_printer");
}
set
{
memLayer.ML.setSessionVal("postazione_printer", value);
}
}
/// <summary>
/// indica se i caratteri vadano forzati a maiuscoli
/// </summary>
public bool forceUppercase
@@ -277,25 +192,15 @@ 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.Comando:
// verifico se il comando sia di tipo "seleziona linea"
string cmdSelLine = memLayer.ML.confReadString("cmdSelLine");
pnlAll.CssClass = "stileComandoOk";
if (barcodeIn.StartsWith(cmdSelLine))
{
// allora provo ad impostare la linea!
checkSelDDL(barcodeIn.Replace(cmdSelLine, ""), true);
}
break;
case tipoCodiceBarcode.UDC:
// se linea non selezionata ERRORE!!!
if (ddlLinea.SelectedValue == "W1000")
if (Postazione.currCodLinea == "W1000")
{
lblMessaggi.Text += " - Attenzione, IMPOSTARE LINEA!";
pnlAll.CssClass = "stileComandoKo";
Postazione.messaggiText += " - Attenzione, IMPOSTARE LINEA!";
Postazione.CssClass = "stileComandoKo";
}
else
{
@@ -314,10 +219,10 @@ namespace GMW.WebUserControls
catch
{ }
// controllo se UDC non sia già stato spostato in posizione... ds magazzino, posiz udc corrente, get By udc
if (idxCellaCurr == idxCella)
if (idxCellaCurr == Postazione.currIdxCella)
{
lblMessaggi.Text += " - Attenzione, UDC già caricato!";
pnlAll.CssClass = "stileComandoKo";
Postazione.messaggiText += " - Attenzione, UDC già caricato!";
Postazione.CssClass = "stileComandoKo";
}
else
{
@@ -342,43 +247,42 @@ namespace GMW.WebUserControls
}
DateTime adesso = DateTime.Now;
// se ho cod cella sposto!
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), barcodeIn, idxCella, memLayer.ML.confReadBool("spostaUdcResettaLdp"), Request.UserHostName);
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), barcodeIn, Postazione.currIdxCella, memLayer.ML.confReadBool("spostaUdcResettaLdp"), Request.UserHostName);
// registro sposstamento UDC
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, barcodeIn, particolare, "spostaUDC", string.Format("Caricato UDC Fusi su linea {2}, qta: {0} {1} ", qta, noteTrim, currCodLinea));
pnlAll.CssClass = "stileComandoOk";
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, barcodeIn, particolare, "spostaUDC", string.Format("Caricato UDC Fusi su linea {2}, qta: {0} {1} ", qta, noteTrim, Postazione.currCodLinea));
Postazione.CssClass = "stileComandoOk";
}
}
else
{
// udc NON corretto, mostro errore...
lblMessaggi.Text += " - Attenzione, UDC NON VALIDO!";
pnlAll.CssClass = "stileComandoKo";
Postazione.messaggiText += " - Attenzione, UDC NON VALIDO!";
Postazione.CssClass = "stileComandoKo";
}
}
}
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";
}
doUpdate();
}
/// <summary>
/// aggiorna tabella + focus a barcode
/// </summary>
private void doUpdate()
public void doUpdate()
{
grView.DataBind();
mod_storicoAzioniOperatore1.doUpdate();
txtBarcode.Focus();
}
/// <summary>
@@ -389,14 +293,7 @@ namespace GMW.WebUserControls
public bool httpLog(string _testoPre)
{
bool answ = false;
string postazione_IP = "";
try
{
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
}
catch
{ }
logger.lg.scriviLog(postazione_IP + _testoPre);
logger.lg.scriviLog(Postazione.IP + _testoPre);
return answ;
}
/// <summary>
@@ -407,14 +304,7 @@ namespace GMW.WebUserControls
public bool httpLog(string testoLog, tipoLog tipo)
{
bool answ = false;
string postazione_IP = "";
try
{
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
}
catch
{ }
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
logger.lg.scriviLog(Postazione.IP + testoLog, tipo);
return answ;
}
/// <summary>
@@ -426,45 +316,6 @@ namespace GMW.WebUserControls
doChecks();
}
/// <summary>
/// toggle controllo storico
/// </summary>
private void fixStorico()
{
pnlSAO.Visible = storicoVisibile;
if (storicoVisibile)
{
btnShowHideStorico.Text = traduci("btnHideStorico");
}
else
{
btnShowHideStorico.Text = traduci("btnShowStorico");
}
}
/// <summary>
/// imposto visibilità pannelo storico
/// </summary>
protected bool storicoVisibile
{
get
{
return memLayer.ML.BoolSessionObj(string.Format("showHist_{0}", this.ID));
}
set
{
memLayer.ML.setSessionVal(string.Format("showHist_{0}", this.ID), value);
}
}
/// <summary>
/// gestisco evento show/hide storico
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnShowHideStorico_Click(object sender, EventArgs e)
{
storicoVisibile = !storicoVisibile;
fixStorico();
}
/// <summary>
/// passo alla modalità OUT
/// </summary>
/// <param name="sender"></param>
@@ -474,107 +325,6 @@ namespace GMW.WebUserControls
Response.Redirect("SterrTaglioOUT.aspx");
}
/// <summary>
/// selezione di una linea da elenco DropDownList
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlLinea_SelectedIndexChanged(object sender, EventArgs e)
{
checkSelDDL(ddlLinea.SelectedValue, true);
}
/// <summary>
/// tenta di selezionare la linea indicata
/// </summary>
/// <param name="p"></param>
private void checkSelDDL(string codLinea, bool doSave)
{
//...aggiorno ddl
try
{
ddlLinea.SelectedValue = codLinea;
pnlAll.CssClass = "stileAttesa";
}
catch
{
// mostro errore
lblMessaggi.Text = string.Format("Errore selezione linea: codice {0} non trovato!", codLinea);
pnlAll.CssClass = "stileComandoKo";
}
if (doSave)
{
currCodLinea = codLinea;
}
// salvo codice cella!
try
{
codCella = MagClass.magazzino.taAL.getByKey(currCodLinea)[0].CodCella;
idxCella = MagClass.magazzino.taCelle.getByCodCella(codCella)[0].IdxCella;
}
catch
{
codCella = "";
idxCella = 0;
}
doUpdate();
}
/// <summary>
/// CODICE cella associata alla linea corrente
/// </summary>
protected string codCella
{
get
{
string answ = "";
if (memLayer.ML.isInSessionObject("codCella"))
{
answ = memLayer.ML.StringSessionObj("codCella");
}
return answ;
}
set
{
memLayer.ML.setSessionVal("codCella", value);
}
}
/// <summary>
/// IDX cella associata alla linea corrente
/// </summary>
protected int idxCella
{
get
{
int answ = 0;
if (memLayer.ML.isInSessionObject("IdxCellaLineaST_IN"))
{
answ = memLayer.ML.IntSessionObj("IdxCellaLineaST_IN");
}
return answ;
}
set
{
memLayer.ML.setSessionVal("IdxCellaLineaST_IN", value);
}
}
/// <summary>
/// codice della linea corrente
/// </summary>
protected string currCodLinea
{
get
{
string answ = "";
if (memLayer.ML.isInSessionObject(string.Format("LineaIn-{0}", uid)))
{
answ = memLayer.ML.StringSessionObj(string.Format("LineaIn-{0}", uid));
}
return answ;
}
set
{
memLayer.ML.setSessionVal(string.Format("LineaIn-{0}", uid), value);
}
}
/// <summary>
/// cambiato valore in ricerca
/// </summary>
/// <param name="sender"></param>
+8 -125
View File
@@ -13,121 +13,22 @@ namespace GMW.WebUserControls {
public partial class mod_SterrTagIN {
/// <summary>
/// pnlAll control.
/// BundleReference1 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;
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// lblPostazione control.
/// BundleReference2 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>
/// btnIn 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 btnIn;
/// <summary>
/// btnOut 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 btnOut;
/// <summary>
/// ddlLinea 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.DropDownList ddlLinea;
/// <summary>
/// odsLinea 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.ObjectDataSource odsLinea;
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// lblParticolareAttivo control.
@@ -157,22 +58,22 @@ namespace GMW.WebUserControls {
protected global::System.Web.UI.WebControls.Label lblDisegno;
/// <summary>
/// lblMessaggi control.
/// lblBarcode 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;
protected global::System.Web.UI.WebControls.Label lblBarcode;
/// <summary>
/// lblWarning control.
/// txtBarcode 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.WebControls.TextBox txtBarcode;
/// <summary>
/// txtCerca control.
@@ -218,23 +119,5 @@ namespace GMW.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumRec;
/// <summary>
/// lblBarcode 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 lblBarcode;
/// <summary>
/// txtBarcode 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 txtBarcode;
}
}
+1 -1
View File
@@ -49,7 +49,7 @@ namespace GMW.WebUserControls
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
public void ristampa()
{
MagClass.magazzino.stampaUdc(udcReq, Postazione.printer, tipoCartellino.cartAnime, Request.UserHostName);
// registro ri-stampa UDC
-8
View File
@@ -26,10 +26,8 @@ namespace GMW
// update vari...
doUpdate();
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
#if false
mod_animeMult1.doUpdate();
mod_animeMult1.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate;
#endif
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
}
@@ -50,9 +48,7 @@ namespace GMW
private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e)
{
doUpdate();
#if false
mod_animeMult1.doUpdate();
#endif
}
/// <summary>
/// richiesta update del controllo SAO
@@ -79,9 +75,7 @@ namespace GMW
/// <param name="e"></param>
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
{
#if false
mod_animeMult1.ristampa();
#endif
}
/// <summary>
/// sistemo visualizzazione pannelli
@@ -90,9 +84,7 @@ namespace GMW
{
// default: moduli visibili (non serve linea)..
bool enableBtn = true;
#if false
mod_animeMult1.Visible = enableBtn;
#endif
fixStorico();
}
/// <summary>
BIN
View File
Binary file not shown.