Pulizia codice...
This commit is contained in:
+81
-104
@@ -4,110 +4,87 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class AnagFormatiDtx : UserPage
|
||||
public partial class AnagFormatiDtx : UserPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if(!Page.IsPostBack)
|
||||
{
|
||||
mod_specDmtx.FormatoDtmx = "*";
|
||||
mod_trascFormDmtx.FormatoDtmx = "*";
|
||||
mod_trascPn2Part.FormatoDtmx = "*";
|
||||
mod_trascPn2Part.PartNumber = "*";
|
||||
mod_trascPn2Pn.FormatoDtmx = "*";
|
||||
mod_trascPn2Pn.PartNumberOut = "*";
|
||||
}
|
||||
mod_anagFormatiDtx.eh_ucev += Mod_anagFormatiDtx_eh_ucev;
|
||||
mod_trascPn2Pn.eh_ucev += Mod_trascPn2Pn_eh_ucev;
|
||||
mod_trascPn2Part.eh_ucev += Mod_trascPn2Part_eh_ucev;
|
||||
}
|
||||
|
||||
private void Mod_trascPn2Part_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
// se trovo evento select/reset mostro/nascondo dettagli...
|
||||
ucEvent evento = (ucEvent)e;
|
||||
switch (evento.tipoEvento)
|
||||
{
|
||||
case ucEvType.Delete:
|
||||
break;
|
||||
case ucEvType.Edit:
|
||||
break;
|
||||
case ucEvType.New:
|
||||
break;
|
||||
case ucEvType.Reset:
|
||||
mod_trascPn2Pn.PartNumberOut = "*";
|
||||
break;
|
||||
case ucEvType.ReqUpdateParent:
|
||||
break;
|
||||
case ucEvType.Selected:
|
||||
mod_trascPn2Pn.PartNumberOut = mod_trascPn2Part.PartNumberSel;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void Mod_trascPn2Pn_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
//non faccio nulla
|
||||
#if false
|
||||
// se trovo evento select/reset mostro/nascondo dettagli...
|
||||
ucEvent evento = (ucEvent)e;
|
||||
switch (evento.tipoEvento)
|
||||
{
|
||||
case ucEvType.Delete:
|
||||
break;
|
||||
case ucEvType.Edit:
|
||||
break;
|
||||
case ucEvType.New:
|
||||
break;
|
||||
case ucEvType.Reset:
|
||||
mod_trascPn2Part.PartNumber = "*";
|
||||
break;
|
||||
case ucEvType.ReqUpdateParent:
|
||||
break;
|
||||
case ucEvType.Selected:
|
||||
mod_trascPn2Part.PartNumber = mod_trascPn2Pn.PartNumberOutSel;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
private void Mod_anagFormatiDtx_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
// se trovo evento select/reset mostro/nascondo dettagli...
|
||||
ucEvent evento = (ucEvent)e;
|
||||
switch (evento.tipoEvento)
|
||||
{
|
||||
case ucEvType.Delete:
|
||||
break;
|
||||
case ucEvType.Edit:
|
||||
break;
|
||||
case ucEvType.New:
|
||||
break;
|
||||
case ucEvType.Reset:
|
||||
mod_specDmtx.FormatoDtmx = "*";
|
||||
mod_trascFormDmtx.FormatoDtmx = "*";
|
||||
mod_trascPn2Part.FormatoDtmx = "*";
|
||||
mod_trascPn2Pn.FormatoDtmx = "*";
|
||||
mod_trascPn2Pn.PartNumberOut = "*";
|
||||
mod_trascPn2Part.PartNumber = "*";
|
||||
break;
|
||||
case ucEvType.ReqUpdateParent:
|
||||
break;
|
||||
case ucEvType.Selected:
|
||||
mod_specDmtx.FormatoDtmx = mod_anagFormatiDtx.FormatoDtmxSel;
|
||||
mod_trascFormDmtx.FormatoDtmx = mod_anagFormatiDtx.FormatoDtmxSel;
|
||||
mod_trascPn2Part.FormatoDtmx = mod_anagFormatiDtx.FormatoDtmxSel;
|
||||
mod_trascPn2Pn.FormatoDtmx = mod_anagFormatiDtx.FormatoDtmxSel;
|
||||
mod_trascPn2Pn.PartNumberOut = "*";
|
||||
mod_trascPn2Part.PartNumber = "*";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_specDmtx.FormatoDtmx = "*";
|
||||
mod_trascFormDmtx.FormatoDtmx = "*";
|
||||
mod_trascPn2Part.FormatoDtmx = "*";
|
||||
mod_trascPn2Part.PartNumber = "*";
|
||||
mod_trascPn2Pn.FormatoDtmx = "*";
|
||||
mod_trascPn2Pn.PartNumberOut = "*";
|
||||
}
|
||||
mod_anagFormatiDtx.eh_ucev += Mod_anagFormatiDtx_eh_ucev;
|
||||
mod_trascPn2Pn.eh_ucev += Mod_trascPn2Pn_eh_ucev;
|
||||
mod_trascPn2Part.eh_ucev += Mod_trascPn2Part_eh_ucev;
|
||||
}
|
||||
|
||||
private void Mod_trascPn2Part_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
// se trovo evento select/reset mostro/nascondo dettagli...
|
||||
ucEvent evento = (ucEvent)e;
|
||||
switch (evento.tipoEvento)
|
||||
{
|
||||
case ucEvType.Delete:
|
||||
break;
|
||||
case ucEvType.Edit:
|
||||
break;
|
||||
case ucEvType.New:
|
||||
break;
|
||||
case ucEvType.Reset:
|
||||
mod_trascPn2Pn.PartNumberOut = "*";
|
||||
break;
|
||||
case ucEvType.ReqUpdateParent:
|
||||
break;
|
||||
case ucEvType.Selected:
|
||||
mod_trascPn2Pn.PartNumberOut = mod_trascPn2Part.PartNumberSel;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void Mod_trascPn2Pn_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
//non faccio nulla
|
||||
}
|
||||
|
||||
private void Mod_anagFormatiDtx_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
// se trovo evento select/reset mostro/nascondo dettagli...
|
||||
ucEvent evento = (ucEvent)e;
|
||||
switch (evento.tipoEvento)
|
||||
{
|
||||
case ucEvType.Delete:
|
||||
break;
|
||||
case ucEvType.Edit:
|
||||
break;
|
||||
case ucEvType.New:
|
||||
break;
|
||||
case ucEvType.Reset:
|
||||
mod_specDmtx.FormatoDtmx = "*";
|
||||
mod_trascFormDmtx.FormatoDtmx = "*";
|
||||
mod_trascPn2Part.FormatoDtmx = "*";
|
||||
mod_trascPn2Pn.FormatoDtmx = "*";
|
||||
mod_trascPn2Pn.PartNumberOut = "*";
|
||||
mod_trascPn2Part.PartNumber = "*";
|
||||
break;
|
||||
case ucEvType.ReqUpdateParent:
|
||||
break;
|
||||
case ucEvType.Selected:
|
||||
mod_specDmtx.FormatoDtmx = mod_anagFormatiDtx.FormatoDtmxSel;
|
||||
mod_trascFormDmtx.FormatoDtmx = mod_anagFormatiDtx.FormatoDtmxSel;
|
||||
mod_trascPn2Part.FormatoDtmx = mod_anagFormatiDtx.FormatoDtmxSel;
|
||||
mod_trascPn2Pn.FormatoDtmx = mod_anagFormatiDtx.FormatoDtmxSel;
|
||||
mod_trascPn2Pn.PartNumberOut = "*";
|
||||
mod_trascPn2Part.PartNumber = "*";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,9 +22,6 @@ namespace GMW
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
#if false
|
||||
mod_lavMeccOUT1.doUpdate();
|
||||
#endif
|
||||
mod_lavMeccOUT1.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate;
|
||||
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
|
||||
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
|
||||
|
||||
+117
-139
@@ -5,145 +5,123 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class POST_FinitiMult_IN : System.Web.UI.Page
|
||||
public partial class POST_FinitiMult_IN : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
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("IdxPosizioneFiniti");
|
||||
#if false
|
||||
// fix cod Blocco sel
|
||||
dlSelCodBlocco.SelectedIndex = 0;
|
||||
refreshBloccoChild();
|
||||
#endif
|
||||
// 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_PostFinMultIN.doUpdate();
|
||||
mod_PostFinMultIN.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_PostFinMultIN.doResetData();
|
||||
mod_PostFinMultIN.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_PostFinMultIN.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_PostFinMultIN.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");
|
||||
}
|
||||
}
|
||||
|
||||
#if false
|
||||
protected void dlSelCodBlocco_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
refreshBloccoChild();
|
||||
mod_PostFinMultIN.doResetData();
|
||||
mod_PostFinMultIN.doUpdate();
|
||||
}
|
||||
|
||||
private void refreshBloccoChild()
|
||||
{
|
||||
// cambio codBlocco x selettore...
|
||||
mod_selLineaNtDt1.preCodLinea = dlSelCodBlocco.SelectedValue;
|
||||
mod_selLineaNtDt1.doUpdate();
|
||||
doUpdate();
|
||||
}
|
||||
#endif
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneFiniti");
|
||||
// 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_PostFinMultIN.doUpdate();
|
||||
mod_PostFinMultIN.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_PostFinMultIN.doResetData();
|
||||
mod_PostFinMultIN.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_PostFinMultIN.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_PostFinMultIN.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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+153
-206
@@ -6,213 +6,160 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class POST_FinitiMult_OUT : System.Web.UI.Page
|
||||
public partial class POST_FinitiMult_OUT : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
refreshPagCorr();
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneFiniti");
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
refreshPagCorr();
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneFiniti");
|
||||
|
||||
#if false
|
||||
// fix cod Blocco sel, provo a prendere da DB...
|
||||
dlSelCodBlocco.DataBind();
|
||||
dlSelCodBlocco.SelectedValue = CodBloccoSel;
|
||||
refreshBloccoChild();
|
||||
#endif
|
||||
|
||||
// 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_PostFinMultOUT.doUpdate();
|
||||
mod_PostFinMultOUT.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate;
|
||||
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
|
||||
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
|
||||
}
|
||||
|
||||
private void setTempiAttr()
|
||||
{
|
||||
// imposto tempi MIN/MAX attraversamento CERCANDO riga puntuale
|
||||
DS_magazzino.AnagLineeRow riga = null;
|
||||
try
|
||||
{
|
||||
riga = MagClass.magazzino.taAL.getByKey(Postazione.currCodLinea)[0];
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (riga != null)
|
||||
{
|
||||
mod_PostFinMultOUT.minTime = riga.minTime;
|
||||
mod_PostFinMultOUT.maxTime = riga.maxTime;
|
||||
}
|
||||
else // altrimenti def
|
||||
{
|
||||
mod_PostFinMultOUT.minTime = memLayer.ML.CRI("minTimeDef");
|
||||
mod_PostFinMultOUT.maxTime = memLayer.ML.CRI("maxTimeDef");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// refresh pagina corrente prima di altri task...
|
||||
/// </summary>
|
||||
private void refreshPagCorr()
|
||||
{
|
||||
// lo calcolo...
|
||||
string[] uri = Request.Url.LocalPath.Split('/');
|
||||
// salvo pagina corrente
|
||||
user_std.pagCorrente = uri.Last();
|
||||
|
||||
}
|
||||
/// <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_PostFinMultOUT.doResetData();
|
||||
mod_PostFinMultOUT.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_PostFinMultOUT.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_PostFinMultOUT.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()
|
||||
{
|
||||
setTempiAttr();
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
#if false
|
||||
protected void dlSelCodBlocco_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
CodBloccoSel = dlSelCodBlocco.SelectedValue;
|
||||
refreshBloccoChild();
|
||||
mod_PostFinMultOUT.doResetData();
|
||||
mod_PostFinMultOUT.doUpdate();
|
||||
}
|
||||
|
||||
private void refreshBloccoChild()
|
||||
{
|
||||
// cambio codBlocco x selettore...
|
||||
mod_selLineaNtDt1.preCodLineDT = dlSelCodBlocco.SelectedValue;
|
||||
mod_selLineaNtDt1.preCodLinea = dlSelCodBlocco.SelectedValue;
|
||||
mod_selLineaNtDt1.doUpdate();
|
||||
setTempiAttr();
|
||||
}
|
||||
/// <summary>
|
||||
/// CodBlocco (della linea FIO) impostata SALVATA SU DB...
|
||||
/// </summary>
|
||||
public string CodBloccoSel
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = utils.obj.RTVal(user_std.pagCorrente, "CodBlocco" + Postazione.IP)[0].valore;
|
||||
//answ = utils.obj.RTVal(user_std.pagCorrente, "CodBlocco" + Postazione.currCodLinea)[0].valore;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (answ == "")
|
||||
{
|
||||
answ = "W00";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
utils.obj.taRTPV.upsert(user_std.pagCorrente, "CodBlocco" + Postazione.IP, value);
|
||||
//dlSelCodBlocco.SelectedValue = value;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// 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_PostFinMultOUT.doUpdate();
|
||||
mod_PostFinMultOUT.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate;
|
||||
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
|
||||
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
|
||||
}
|
||||
|
||||
private void setTempiAttr()
|
||||
{
|
||||
// imposto tempi MIN/MAX attraversamento CERCANDO riga puntuale
|
||||
DS_magazzino.AnagLineeRow riga = null;
|
||||
try
|
||||
{
|
||||
riga = MagClass.magazzino.taAL.getByKey(Postazione.currCodLinea)[0];
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (riga != null)
|
||||
{
|
||||
mod_PostFinMultOUT.minTime = riga.minTime;
|
||||
mod_PostFinMultOUT.maxTime = riga.maxTime;
|
||||
}
|
||||
else // altrimenti def
|
||||
{
|
||||
mod_PostFinMultOUT.minTime = memLayer.ML.CRI("minTimeDef");
|
||||
mod_PostFinMultOUT.maxTime = memLayer.ML.CRI("maxTimeDef");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// refresh pagina corrente prima di altri task...
|
||||
/// </summary>
|
||||
private void refreshPagCorr()
|
||||
{
|
||||
// lo calcolo...
|
||||
string[] uri = Request.Url.LocalPath.Split('/');
|
||||
// salvo pagina corrente
|
||||
user_std.pagCorrente = uri.Last();
|
||||
|
||||
}
|
||||
/// <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_PostFinMultOUT.doResetData();
|
||||
mod_PostFinMultOUT.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_PostFinMultOUT.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_PostFinMultOUT.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()
|
||||
{
|
||||
setTempiAttr();
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+119
-122
@@ -5,129 +5,126 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class PostB48 : System.Web.UI.Page
|
||||
public partial class PostB48 : System.Web.UI.Page
|
||||
{
|
||||
/// <summary>
|
||||
/// caricamento pagina!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
/// <summary>
|
||||
/// caricamento pagina!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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("IdxPosizioneRX");
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
mod_post_B48.doUpdate();
|
||||
mod_post_B48.eh_reqUpdate += mod_PostLiq_DT1_eh_reqUpdate;
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneRX");
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
mod_post_B48.doUpdate();
|
||||
mod_post_B48.eh_reqUpdate += mod_PostLiq_DT1_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();
|
||||
#if false
|
||||
mod_post_B48.resetSourceAL();
|
||||
#endif
|
||||
mod_post_B48.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta update del controllo SAO
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_PostLiq_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_post_B48.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_post_B48.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");
|
||||
}
|
||||
}
|
||||
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_post_B48.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta update del controllo SAO
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_PostLiq_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_post_B48.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_post_B48.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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+115
-125
@@ -6,131 +6,121 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class PostLiquidi_NT : System.Web.UI.Page
|
||||
public partial class PostLiquidi_NT : System.Web.UI.Page
|
||||
{
|
||||
/// <summary>
|
||||
/// caricamento pagina!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
/// <summary>
|
||||
/// caricamento pagina!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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("IdxPosizioneRX");
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
#if false
|
||||
mod_PostLiq_NT1.doUpdate();
|
||||
mod_PostLiq_NT1.eh_reqUpdate += mod_PostLiq_NT1_eh_reqUpdate;
|
||||
#endif
|
||||
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();
|
||||
#if false
|
||||
mod_PostLiq_NT1.doUpdate();
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta update del controllo SAO
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_PostLiq_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)
|
||||
{
|
||||
#if false
|
||||
mod_PostLiq_NT1.ristampa();
|
||||
#endif
|
||||
}
|
||||
/// <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_PostLiq_NT1.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");
|
||||
}
|
||||
}
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneRX");
|
||||
}
|
||||
// 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_PostLiq_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)
|
||||
{
|
||||
}
|
||||
/// <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_PostLiq_NT1.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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+57
-62
@@ -5,68 +5,63 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class RimuoviNC : System.Web.UI.Page
|
||||
public partial class RimuoviNC : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna messaggi e css
|
||||
/// </summary>
|
||||
private void updateMessCss()
|
||||
{
|
||||
lblWarning.Text = Postazione.warningText;
|
||||
lblMessaggi.Text = Postazione.messaggiText;
|
||||
pnlAll.CssClass = Postazione.CssClass;
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo visualizzazione pannelli
|
||||
/// </summary>
|
||||
private void fixPanels()
|
||||
{
|
||||
#if false
|
||||
// default: moduli NON visibili SE non ho linea indicata..
|
||||
bool enableBtn = false;
|
||||
if (Postazione.currCodCella != "") enableBtn = true;
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// update generale controlli
|
||||
/// </summary>
|
||||
private void doUpdate()
|
||||
{
|
||||
updateMessCss();
|
||||
fixPanels();
|
||||
}
|
||||
/// <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");
|
||||
}
|
||||
}
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna messaggi e css
|
||||
/// </summary>
|
||||
private void updateMessCss()
|
||||
{
|
||||
lblWarning.Text = Postazione.warningText;
|
||||
lblMessaggi.Text = Postazione.messaggiText;
|
||||
pnlAll.CssClass = Postazione.CssClass;
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo visualizzazione pannelli
|
||||
/// </summary>
|
||||
private void fixPanels()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// update generale controlli
|
||||
/// </summary>
|
||||
private void doUpdate()
|
||||
{
|
||||
updateMessCss();
|
||||
fixPanels();
|
||||
}
|
||||
/// <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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+116
-119
@@ -5,125 +5,122 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class SterrTaglioOUT : System.Web.UI.Page
|
||||
public partial class SterrTaglioOUT : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
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("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);
|
||||
#if false
|
||||
mod_SterrTagOUT1.doUpdate();
|
||||
#endif
|
||||
mod_SterrTagOUT1.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_SterrTagOUT1.doResetData();
|
||||
mod_SterrTagOUT1.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_SterrTagOUT1.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_SterrTagOUT1.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");
|
||||
}
|
||||
}
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("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_SterrTagOUT1.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_SterrTagOUT1.doResetData();
|
||||
mod_SterrTagOUT1.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_SterrTagOUT1.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_SterrTagOUT1.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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -421,30 +421,6 @@ namespace GMW.WebUserControls
|
||||
verificaBtnStampa();
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
logger.lg.scriviLog(string.Format(" | {0} | {1}", Postazione.IP, _testoPre));
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
logger.lg.scriviLog(string.Format(" | {0} | {1}", Postazione.IP, _testoPre), tipo);
|
||||
return answ;
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// effettua reset dati
|
||||
/// </summary>
|
||||
|
||||
+109
-116
@@ -5,124 +5,117 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class sanpos_consumoF10 : System.Web.UI.Page
|
||||
public partial class sanpos_consumoF10 : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// pulisco dir temp dai file dei cartellini stampati
|
||||
reportPrinter.obj.pulisciDir();
|
||||
// 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.cdvi("IdxPosizioneFusi");
|
||||
}
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneFusi");
|
||||
}
|
||||
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
#if false
|
||||
mod_PostRX_DT1.doUpdate();
|
||||
mod_PostRX_DT1.eh_reqUpdate += mod_PostRX_DT1_eh_reqUpdate;
|
||||
#endif
|
||||
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();
|
||||
#if false
|
||||
mod_PostRX_DT1.doUpdate();
|
||||
#endif
|
||||
}
|
||||
/// <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_consumoF101.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");
|
||||
}
|
||||
}
|
||||
// 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_consumoF101.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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+109
-116
@@ -5,124 +5,117 @@ using System.Web.UI;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class sanpos_controlloLiquidi : System.Web.UI.Page
|
||||
public partial class sanpos_controlloLiquidi : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// pulisco dir temp dai file dei cartellini stampati
|
||||
reportPrinter.obj.pulisciDir();
|
||||
// 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.cdvi("IdxPosizioneLiquidi");
|
||||
}
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneLiquidi");
|
||||
}
|
||||
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
#if false
|
||||
mod_PostRX_DT1.doUpdate();
|
||||
mod_PostRX_DT1.eh_reqUpdate += mod_PostRX_DT1_eh_reqUpdate;
|
||||
#endif
|
||||
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();
|
||||
#if false
|
||||
mod_PostRX_DT1.doUpdate();
|
||||
#endif
|
||||
}
|
||||
/// <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_controlloLiquidi1.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");
|
||||
}
|
||||
}
|
||||
// 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_controlloLiquidi1.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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,262 +119,6 @@ namespace GMW_data
|
||||
/// <returns></returns>
|
||||
protected bool caricaDatiBollaEtichettaOdette(string UDC, string RaggMag, string GrpBolla, decimal numBolla, decimal dataBolla, string particolare)
|
||||
{
|
||||
// versione vecchia: ora faccio tutto con stored!
|
||||
#if false
|
||||
bool answ = false;
|
||||
string ragSocCli = "";
|
||||
string indirCli = "";
|
||||
string capCittCli = "";
|
||||
string destP1 = "";
|
||||
string destP2 = "";
|
||||
string destP3 = "";
|
||||
string destinatario = "";
|
||||
decimal peso = 0;
|
||||
string pesoNetto = "";
|
||||
string pesoLordo = "";
|
||||
string numColli = "";
|
||||
string disPart = "";
|
||||
string descPart = "";
|
||||
string codPart = "";
|
||||
string codImb = "";
|
||||
string codMaz = "";
|
||||
string codNael = "";
|
||||
string codNaelP1 = "";
|
||||
string codNaelP2 = "";
|
||||
string codNaelP3 = "";
|
||||
string codAQP = "";
|
||||
// in primis recupero la riga di dati da AS400...
|
||||
int trovati = 0;
|
||||
DS_Odette.BORI202JDataTable tabAs400 = new DS_Odette.BORI202JDataTable();
|
||||
DS_magazzino.ElencoCartelliniRow rigaUdc = null;
|
||||
decimal qtaUdc = 1;
|
||||
try
|
||||
{
|
||||
tabAs400 = taBORI.getByKeyFull(RaggMag, GrpBolla, numBolla, dataBolla, particolare);
|
||||
trovati = tabAs400.Rows.Count;
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non trovati dati per {0}-{1}-{2}-{3}-{4}", RaggMag, GrpBolla, numBolla, dataBolla, particolare), tipoLog.EXCEPTION);
|
||||
}
|
||||
// carico dati udc
|
||||
try
|
||||
{
|
||||
rigaUdc = MagClass.magazzino.taCartellini.getByUdc(UDC)[0];
|
||||
qtaUdc = rigaUdc.Qta;
|
||||
}
|
||||
catch
|
||||
{
|
||||
qtaUdc = 1;
|
||||
logger.lg.scriviLog(string.Format("Non trovati dati per UDC {0} (qta)", UDC), tipoLog.EXCEPTION);
|
||||
}
|
||||
if (trovati >= 1)
|
||||
{
|
||||
DS_Odette.BORI202JRow rigaAs = tabAs400[0];
|
||||
// in base al valore di CDINB definisco i campi...
|
||||
if (rigaAs.CDINB.Trim() != "")
|
||||
{
|
||||
// campo1
|
||||
try
|
||||
{
|
||||
ragSocCli = rigaAs.RA1ND.Trim();
|
||||
indirCli = rigaAs.RA2ND.Trim();
|
||||
capCittCli = string.Format("{0} {1}", rigaAs.CAPND.Trim(), rigaAs.CITND.Trim());
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo1 (101)", tipoLog.ERROR);
|
||||
}
|
||||
// campo2
|
||||
try
|
||||
{
|
||||
destP2 = rigaAs.INEND.Substring(0, 15).Trim();
|
||||
destP1 = rigaAs.INEND.Substring(15, 15).Trim();
|
||||
if (rigaAs.CRAGCL.Trim() == "13" || rigaAs.TELND.Substring(18, 2) == "13")
|
||||
{
|
||||
destP3 = "/S";
|
||||
}
|
||||
destinatario = string.Format("{0}/{1}{2}", destP1, destP2, destP3);
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo2 (102)", tipoLog.ERROR);
|
||||
}
|
||||
// campo12
|
||||
try
|
||||
{
|
||||
if (rigaAs.CRAGCL.Trim() == "13" || rigaAs.TELND.Substring(18, 2) == "13")
|
||||
{
|
||||
codMaz = rigaAs.PERND.Trim();
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo12 (112)", tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// campo1
|
||||
try
|
||||
{
|
||||
ragSocCli = rigaAs.RASCL.Trim();
|
||||
indirCli = rigaAs.INDCL.Trim();
|
||||
capCittCli = string.Format("{0} {1} {2}", rigaAs.CAPCL.Trim(), rigaAs.LOCCL.Trim(), rigaAs.PROCL.Trim());
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo1 (201)", tipoLog.ERROR);
|
||||
}
|
||||
// campo2
|
||||
try
|
||||
{
|
||||
destP1 = rigaAs.CCDMOL.Trim();
|
||||
destP2 = rigaAs.CCDPTR.Trim();
|
||||
if (rigaAs.CRAGCL.Trim() == "13")
|
||||
{
|
||||
destP3 = "/S";
|
||||
}
|
||||
destinatario = string.Format("{0}/{1}{2}", destP1, destP2, destP3);
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo2 (202)", tipoLog.ERROR);
|
||||
}
|
||||
// campo12
|
||||
try
|
||||
{
|
||||
if (rigaAs.CRAGCL.Trim() == "13" || rigaAs.TELND.Substring(18, 2) == "13")
|
||||
{
|
||||
codMaz = rigaAs.CCDET1.Trim();
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo12 (212)", tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
// campo5
|
||||
try
|
||||
{
|
||||
// se EPLAVO = 0 --> si mette EPLNETT
|
||||
if (rigaAs.EPLAVO <= 0)
|
||||
{
|
||||
peso = rigaAs.EPNETT;
|
||||
}
|
||||
else
|
||||
{
|
||||
// modifica 2013.05.03
|
||||
//peso = Math.Round(rigaAs.EPLAVO * memLayer.ML.confReadInt("qtaOdette"), 2);
|
||||
peso = rigaAs.EPLAVO;
|
||||
}
|
||||
pesoNetto = Math.Round(peso * qtaUdc, 2).ToString();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo5 (005)", tipoLog.ERROR);
|
||||
}
|
||||
// campo6
|
||||
try
|
||||
{
|
||||
pesoLordo = Math.Round(rigaAs.PELDB / rigaAs.NRC1B, 2).ToString();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo6 (006)", tipoLog.ERROR);
|
||||
}
|
||||
// campo7
|
||||
try
|
||||
{
|
||||
numColli = rigaAs.NRC1B.ToString();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo7 (007)", tipoLog.ERROR);
|
||||
}
|
||||
// campo8
|
||||
try
|
||||
{
|
||||
disPart = rigaAs.ECMM01.Trim();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo8 (008)", tipoLog.ERROR);
|
||||
}
|
||||
// campo10
|
||||
try
|
||||
{
|
||||
descPart = rigaAs.DEPAR.Trim();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo10 (010)", tipoLog.ERROR);
|
||||
}
|
||||
// campo 11_1
|
||||
try
|
||||
{
|
||||
codPart = rigaAs.CDARS.Trim();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo11_1 (011_1)", tipoLog.ERROR);
|
||||
}
|
||||
// campo 11_2
|
||||
try
|
||||
{
|
||||
// modifica 2013.05.02
|
||||
codImb = rigaAs.FCDI01.Trim();
|
||||
//codImb = rigaAs.RCARTC.Trim();
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo11_2 (011_2)", tipoLog.ERROR);
|
||||
}
|
||||
// campo14
|
||||
try
|
||||
{
|
||||
// controlla se debba configurare come BMW da accodamento dati o leggendo in nuova tabella...
|
||||
if (rigaAs.CRAGCL.Trim() == "13" || rigaAs.TELND.Substring(18, 2) == "13")
|
||||
{
|
||||
codNaelP1 = rigaAs.ECDNAE.Trim();
|
||||
codNaelP2 = rigaAs.ECDNA1.Trim();
|
||||
codNaelP3 = rigaAs.EESPMD.Trim();
|
||||
codNael = string.Format("ZI:{0} {1} AI:{2}", codNaelP1, codNaelP2, codNaelP3);
|
||||
}
|
||||
else
|
||||
{
|
||||
// leggo record...
|
||||
codNael = rigaAs.OCDODM;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo14 (014)", tipoLog.ERROR);
|
||||
}
|
||||
// campo16_5
|
||||
try
|
||||
{
|
||||
// sistema codAQP
|
||||
codAQP = rigaAs.ECLAQP;
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog("Errore campo16 (016)", tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
if (trovati >= 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
taOdette.updateValAs400(UDC, ragSocCli, indirCli, capCittCli, destinatario, "", "", pesoNetto, pesoLordo, numColli, disPart, descPart, codPart, codImb, codMaz, codNael, codAQP);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
answ = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
|
||||
+290
-347
@@ -3,104 +3,47 @@ using System;
|
||||
|
||||
namespace GMW_data
|
||||
{
|
||||
/// <summary>
|
||||
/// classe gestione operazioni con terminalino
|
||||
/// </summary>
|
||||
public class TermClass
|
||||
{
|
||||
#region area table adapters
|
||||
|
||||
/// <summary>
|
||||
/// classe gestione operazioni con terminalino
|
||||
/// init dei table adapters
|
||||
/// </summary>
|
||||
public class TermClass
|
||||
protected void initTA()
|
||||
{
|
||||
#region area table adapters
|
||||
// istanzio oggetto
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
}
|
||||
|
||||
// variabile di tipo table adapter
|
||||
#if false
|
||||
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
|
||||
public DS_magazzinoTableAdapters.BlocchiTableAdapter taBlocchi;
|
||||
public DS_magazzinoTableAdapters.CelleTableAdapter taCelle;
|
||||
public DS_magazzinoTableAdapters.TipoCellaTableAdapter taTipoCella;
|
||||
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taCartellini;
|
||||
public DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter taPosUdcCorr;
|
||||
public DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter taPosUdcStorico;
|
||||
public DS_magazzinoTableAdapters.V_MagazziniOverviewTableAdapter taMagOverw;
|
||||
public DS_magazzinoTableAdapters.V_DettMagPartTableAdapter taDettMagPart;
|
||||
public DS_magazzinoTableAdapters.v_UdcDetailTableAdapter taDettUDC;
|
||||
public DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter taElencoListePrelievo;
|
||||
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taElencoCartellini;
|
||||
public DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter taRigheListePrelievo;
|
||||
public DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter taTipoListaPrelievo;
|
||||
public DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter taVParticolariOverwiew;
|
||||
public DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter taPartExpFig;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
#region Inizializzazione
|
||||
|
||||
/// <summary>
|
||||
/// init dei table adapters
|
||||
/// </summary>
|
||||
protected void initTA()
|
||||
{
|
||||
// istanzio oggetto
|
||||
#if false
|
||||
taAnagMag = new GMW_data.DS_magazzinoTableAdapters.AnagMagTableAdapter();
|
||||
taBlocchi = new GMW_data.DS_magazzinoTableAdapters.BlocchiTableAdapter();
|
||||
taCelle = new GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter();
|
||||
taTipoCella = new GMW_data.DS_magazzinoTableAdapters.TipoCellaTableAdapter();
|
||||
taCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
|
||||
taPosUdcCorr = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter();
|
||||
taPosUdcStorico = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter();
|
||||
taMagOverw = new GMW_data.DS_magazzinoTableAdapters.V_MagazziniOverviewTableAdapter();
|
||||
taDettMagPart = new GMW_data.DS_magazzinoTableAdapters.V_DettMagPartTableAdapter();
|
||||
taDettUDC = new GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter();
|
||||
taElencoListePrelievo = new GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter();
|
||||
taElencoCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
|
||||
taRigheListePrelievo = new GMW_data.DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter();
|
||||
taTipoListaPrelievo = new GMW_data.DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter();
|
||||
taVParticolariOverwiew = new GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter();
|
||||
taPartExpFig = new GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter();
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
#if false
|
||||
taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taTipoCella.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPosUdcCorr.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPosUdcStorico.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taMagOverw.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taDettMagPart.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taDettUDC.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taElencoListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taElencoCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taRigheListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taTipoListaPrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taVParticolariOverwiew.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPartExpFig.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
#endif
|
||||
}
|
||||
protected TermClass()
|
||||
{
|
||||
// init oggetto
|
||||
initTA();
|
||||
setupConnectionStringBase();
|
||||
}
|
||||
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// oggetto static per fare chiamate sul magazzino
|
||||
/// </summary>
|
||||
public static TermClass Ter = new TermClass();
|
||||
|
||||
#region Inizializzazione
|
||||
#endregion
|
||||
|
||||
protected TermClass()
|
||||
{
|
||||
// init oggetto
|
||||
initTA();
|
||||
setupConnectionStringBase();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oggetto static per fare chiamate sul magazzino
|
||||
/// </summary>
|
||||
public static TermClass Ter = new TermClass();
|
||||
|
||||
#endregion
|
||||
|
||||
#region metodi protected
|
||||
#region metodi protected
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
@@ -160,283 +103,283 @@ namespace GMW_data
|
||||
}
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Metodi esposti
|
||||
#region Metodi esposti
|
||||
|
||||
/// <summary>
|
||||
/// Verifica il login utente andando a controllare il CodSoggetto da RilPro e salvando in sessione un oggetto user_std x l'utente corrispondente al cod soggetto secondo la tab soggetti2utente
|
||||
/// </summary>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
/// <returns>tipo di errore codificato</returns>
|
||||
public esitoLoginTerm doUserLogin(string CodSoggetto)
|
||||
/// <summary>
|
||||
/// Verifica il login utente andando a controllare il CodSoggetto da RilPro e salvando in sessione un oggetto user_std x l'utente corrispondente al cod soggetto secondo la tab soggetti2utente
|
||||
/// </summary>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
/// <returns>tipo di errore codificato</returns>
|
||||
public esitoLoginTerm doUserLogin(string CodSoggetto)
|
||||
{
|
||||
esitoLoginTerm answ = esitoLoginTerm.errore;
|
||||
try
|
||||
{
|
||||
// verifico che il cod operatore passato sia valido per RilPro.AnagOperatori e Soggetti2Utente
|
||||
int trovatiAnagOp = DataProxy.obj.taAnagOperatore.getByCodSoggetto(CodSoggetto).Rows.Count;
|
||||
int trovatiS2U = DataProxy.obj.taSogg2Oper.getByCodSoggetto(CodSoggetto).Rows.Count;
|
||||
if (trovatiAnagOp == 1)
|
||||
{
|
||||
esitoLoginTerm answ = esitoLoginTerm.errore;
|
||||
try
|
||||
if (trovatiS2U == 1)
|
||||
{
|
||||
// è ok, proseguo facendo avvio user
|
||||
DS_Applicazione.Soggetti2UtenteRow rigaOp = DataProxy.obj.taSogg2Oper.getByCodSoggetto(CodSoggetto)[0];
|
||||
// inizializzo utente con dati operatore
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(rigaOp.DOMINIO, rigaOp.USER_NAME);
|
||||
if (fatto)
|
||||
{
|
||||
// verifico che il cod operatore passato sia valido per RilPro.AnagOperatori e Soggetti2Utente
|
||||
int trovatiAnagOp = DataProxy.obj.taAnagOperatore.getByCodSoggetto(CodSoggetto).Rows.Count;
|
||||
int trovatiS2U = DataProxy.obj.taSogg2Oper.getByCodSoggetto(CodSoggetto).Rows.Count;
|
||||
if (trovatiAnagOp == 1)
|
||||
{
|
||||
if (trovatiS2U == 1)
|
||||
{
|
||||
// è ok, proseguo facendo avvio user
|
||||
DS_Applicazione.Soggetti2UtenteRow rigaOp = DataProxy.obj.taSogg2Oper.getByCodSoggetto(CodSoggetto)[0];
|
||||
// inizializzo utente con dati operatore
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(rigaOp.DOMINIO, rigaOp.USER_NAME);
|
||||
if (fatto)
|
||||
{
|
||||
answ = esitoLoginTerm.ok;
|
||||
logger.lg.scriviLog(String.Format("Forced user identity ok: logged as \t {0}\\{1}", user_std.UtSn.dominio, user_std.UtSn.utente), tipoLog.STARTUP);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Attenzione: trovati {0} utenti in RilPro AnagOperatori e {1} utenti in Soggetti2Utente per il CodSoggetto {2}: login impossibile!", trovatiAnagOp, trovatiS2U, CodSoggetto), tipoLog.ERROR);
|
||||
answ = esitoLoginTerm.errore_noUser;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Attenzione: trovati {0} utenti in RilPro AnagOperatori e {1} utenti in Soggetti2Utente per il CodSoggetto {2}: login impossibile!", trovatiAnagOp, trovatiS2U, CodSoggetto), tipoLog.ERROR);
|
||||
answ = esitoLoginTerm.errore_noCodSogg;
|
||||
}
|
||||
answ = esitoLoginTerm.ok;
|
||||
logger.lg.scriviLog(String.Format("Forced user identity ok: logged as \t {0}\\{1}", user_std.UtSn.dominio, user_std.UtSn.utente), tipoLog.STARTUP);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in TermClass.doUserLogin per il CodSoggetto {0}: eccezione {1}", CodSoggetto, e), tipoLog.FATAL);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Attenzione: trovati {0} utenti in RilPro AnagOperatori e {1} utenti in Soggetti2Utente per il CodSoggetto {2}: login impossibile!", trovatiAnagOp, trovatiS2U, CodSoggetto), tipoLog.ERROR);
|
||||
answ = esitoLoginTerm.errore_noUser;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un particolare con codice tipo "P"
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
public bool isParticolare(string barcodeIN)
|
||||
else
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = utils.obj.taSelParticolari.getByConditioValue(barcodeIN, "P").Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
logger.lg.scriviLog(string.Format("Attenzione: trovati {0} utenti in RilPro AnagOperatori e {1} utenti in Soggetti2Utente per il CodSoggetto {2}: login impossibile!", trovatiAnagOp, trovatiS2U, CodSoggetto), tipoLog.ERROR);
|
||||
answ = esitoLoginTerm.errore_noCodSogg;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un anima
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
public bool isAnima(string valore)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = utils.obj.taSelParticolari.getByConditioValue(valore, "A").Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia
|
||||
/// - FinitoLiquidi
|
||||
/// - NON consumato ( maggiore di 0 )
|
||||
/// - NON spedito ( minore di 200 )
|
||||
/// </summary>
|
||||
/// <param name="UDC">UDC da verificare</param>
|
||||
/// <returns></returns>
|
||||
public bool isFinitoLiquidiOK(string UDC)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = DataProxy.obj.taCartellini.getByUdcStatoPosiz(UDC, "FinLiq", 1, 199).Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica il codice barcode letto e restituisce il tipo di valore corrisponente
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
public tipoCodiceBarcode riconosciBarcode(string barcodeIN)
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
if (barcodeIN != "")
|
||||
{
|
||||
// controllo se in sessione ci sia la stessa verifica e nel caso NON la rifaccio su DB...
|
||||
if (memLayer.ML.StringCacheObj("lastBarcodeIN") == barcodeIN)
|
||||
{
|
||||
answ = (tipoCodiceBarcode)memLayer.ML.objCacheObj("lastBarcodeType");
|
||||
}
|
||||
else
|
||||
{
|
||||
// salvo richiesta barcode in cache..
|
||||
memLayer.ML.setCacheVal("lastBarcodeIN", barcodeIN);
|
||||
// cerco se sia un particolare...
|
||||
if (utils.obj.taSelParticolari.getByConditioValue(barcodeIN, "*").Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
// se non lo è continuo
|
||||
if (answ == tipoCodiceBarcode.ND)
|
||||
{
|
||||
switch (barcodeIN.Substring(0, 1))
|
||||
{
|
||||
case "O":
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
break;
|
||||
case "K":
|
||||
answ = tipoCodiceBarcode.ListaPrelievo;
|
||||
break;
|
||||
//case "P":
|
||||
//case "A":
|
||||
// answ = tipoCodiceBarcode.Particolare;
|
||||
// break;
|
||||
case "U":
|
||||
answ = tipoCodiceBarcode.UDC;
|
||||
break;
|
||||
case "S":
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
break;
|
||||
default:
|
||||
// cerco se la stringa intera abbia un match con le celle...
|
||||
if (MagClass.magazzino.taCelle.getByCodCella(barcodeIN).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
// salvo in cache decodifica
|
||||
memLayer.ML.setCacheVal("lastBarcodeType", answ);
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il reset di tutti i valori in sessione salvati a valle della scansione di un barcode
|
||||
/// </summary>
|
||||
/// <param name="resetUdc">true/false se resettare UDC selezionato</param>
|
||||
/// <param name="resetCella">true/false se resettare Cella selezionata</param>
|
||||
/// <param name="resetPArticolare">true/false se resettare Particolare selezionato</param>
|
||||
public void resetScanBarcode(bool resetUdc, bool resetCella, bool resetParticolare)
|
||||
{
|
||||
if (resetUdc)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("UDC_sel");
|
||||
}
|
||||
if (resetCella)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("IdxCella_sel");
|
||||
memLayer.ML.emptySessionVal("codCella_sel");
|
||||
}
|
||||
if (resetParticolare)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("Particolare_sel");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in TermClass.doUserLogin per il CodSoggetto {0}: eccezione {1}", CodSoggetto, e), tipoLog.FATAL);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un particolare con codice tipo "P"
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
public bool isParticolare(string barcodeIN)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = utils.obj.taSelParticolari.getByConditioValue(barcodeIN, "P").Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un anima
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
public bool isAnima(string valore)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = utils.obj.taSelParticolari.getByConditioValue(valore, "A").Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia
|
||||
/// - FinitoLiquidi
|
||||
/// - NON consumato ( maggiore di 0 )
|
||||
/// - NON spedito ( minore di 200 )
|
||||
/// </summary>
|
||||
/// <param name="UDC">UDC da verificare</param>
|
||||
/// <returns></returns>
|
||||
public bool isFinitoLiquidiOK(string UDC)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = DataProxy.obj.taCartellini.getByUdcStatoPosiz(UDC, "FinLiq", 1, 199).Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica il codice barcode letto e restituisce il tipo di valore corrisponente
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
public tipoCodiceBarcode riconosciBarcode(string barcodeIN)
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
if (barcodeIN != "")
|
||||
{
|
||||
// controllo se in sessione ci sia la stessa verifica e nel caso NON la rifaccio su DB...
|
||||
if (memLayer.ML.StringCacheObj("lastBarcodeIN") == barcodeIN)
|
||||
{
|
||||
answ = (tipoCodiceBarcode)memLayer.ML.objCacheObj("lastBarcodeType");
|
||||
}
|
||||
else
|
||||
{
|
||||
// salvo richiesta barcode in cache..
|
||||
memLayer.ML.setCacheVal("lastBarcodeIN", barcodeIN);
|
||||
// cerco se sia un particolare...
|
||||
if (utils.obj.taSelParticolari.getByConditioValue(barcodeIN, "*").Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
// se non lo è continuo
|
||||
if (answ == tipoCodiceBarcode.ND)
|
||||
{
|
||||
switch (barcodeIN.Substring(0, 1))
|
||||
{
|
||||
case "O":
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
break;
|
||||
case "K":
|
||||
answ = tipoCodiceBarcode.ListaPrelievo;
|
||||
break;
|
||||
//case "P":
|
||||
//case "A":
|
||||
// answ = tipoCodiceBarcode.Particolare;
|
||||
// break;
|
||||
case "U":
|
||||
answ = tipoCodiceBarcode.UDC;
|
||||
break;
|
||||
case "S":
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
break;
|
||||
default:
|
||||
// cerco se la stringa intera abbia un match con le celle...
|
||||
if (MagClass.magazzino.taCelle.getByCodCella(barcodeIN).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
// salvo in cache decodifica
|
||||
memLayer.ML.setCacheVal("lastBarcodeType", answ);
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il reset di tutti i valori in sessione salvati a valle della scansione di un barcode
|
||||
/// </summary>
|
||||
/// <param name="resetUdc">true/false se resettare UDC selezionato</param>
|
||||
/// <param name="resetCella">true/false se resettare Cella selezionata</param>
|
||||
/// <param name="resetPArticolare">true/false se resettare Particolare selezionato</param>
|
||||
public void resetScanBarcode(bool resetUdc, bool resetCella, bool resetParticolare)
|
||||
{
|
||||
if (resetUdc)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("UDC_sel");
|
||||
}
|
||||
if (resetCella)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("IdxCella_sel");
|
||||
memLayer.ML.emptySessionVal("codCella_sel");
|
||||
}
|
||||
if (resetParticolare)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("Particolare_sel");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce i tipi di codice che il barcode può leggere
|
||||
/// </summary>
|
||||
public enum tipoCodiceBarcode
|
||||
{
|
||||
/// <summary>
|
||||
/// Tipo non riconosciuto
|
||||
/// </summary>
|
||||
ND,
|
||||
/// <summary>
|
||||
/// [O] - il barcode rappresenta un codice operatore
|
||||
/// </summary>
|
||||
Operatore,
|
||||
/// <summary>
|
||||
/// [K] - il barcode rappresenta una lista di prelievo
|
||||
/// </summary>
|
||||
ListaPrelievo,
|
||||
/// <summary>
|
||||
/// [U] - il barcode rappresenta un UDC
|
||||
/// </summary>
|
||||
UDC,
|
||||
/// <summary>
|
||||
/// il barcode rappresenta un particolare
|
||||
/// </summary>
|
||||
Particolare,
|
||||
/// <summary>
|
||||
/// Cella [S]
|
||||
/// </summary>
|
||||
Cella,
|
||||
/// <summary>
|
||||
/// codice gitterbox
|
||||
/// </summary>
|
||||
Gitterbox,
|
||||
/// <summary>
|
||||
/// Codice PartNumber come calcolato e valido sottoinsieme di codice datamatrix (BMW, Magneti Marelli, Porsche, ...)
|
||||
/// </summary>
|
||||
DataMatrixDecodificato,
|
||||
/// <summary>
|
||||
/// Codice datamatrix
|
||||
/// </summary>
|
||||
DataMatrixTrovato,
|
||||
/// <summary>
|
||||
/// codice che indica un comando (prefisso da web.config)
|
||||
/// </summary>
|
||||
Comando,
|
||||
/// <summary>
|
||||
/// Assieme Logico
|
||||
/// </summary>
|
||||
AL,
|
||||
/// <summary>
|
||||
/// Trattamento Termico
|
||||
/// </summary>
|
||||
TT,
|
||||
/// <summary>
|
||||
/// Codice di imballo
|
||||
/// </summary>
|
||||
Imballo,
|
||||
/// <summary>
|
||||
/// Marcatore DataOra
|
||||
/// </summary>
|
||||
DateTime,
|
||||
/// <summary>
|
||||
/// Marcatore BarCodeCMD
|
||||
/// </summary>
|
||||
BarCodeCMD,
|
||||
/// <summary>
|
||||
/// Marcatore DataOra e Linea
|
||||
/// </summary>
|
||||
DateTimeLine
|
||||
/// <summary>
|
||||
/// Tipo non riconosciuto
|
||||
/// </summary>
|
||||
ND,
|
||||
/// <summary>
|
||||
/// [O] - il barcode rappresenta un codice operatore
|
||||
/// </summary>
|
||||
Operatore,
|
||||
/// <summary>
|
||||
/// [K] - il barcode rappresenta una lista di prelievo
|
||||
/// </summary>
|
||||
ListaPrelievo,
|
||||
/// <summary>
|
||||
/// [U] - il barcode rappresenta un UDC
|
||||
/// </summary>
|
||||
UDC,
|
||||
/// <summary>
|
||||
/// il barcode rappresenta un particolare
|
||||
/// </summary>
|
||||
Particolare,
|
||||
/// <summary>
|
||||
/// Cella [S]
|
||||
/// </summary>
|
||||
Cella,
|
||||
/// <summary>
|
||||
/// codice gitterbox
|
||||
/// </summary>
|
||||
Gitterbox,
|
||||
/// <summary>
|
||||
/// Codice PartNumber come calcolato e valido sottoinsieme di codice datamatrix (BMW, Magneti Marelli, Porsche, ...)
|
||||
/// </summary>
|
||||
DataMatrixDecodificato,
|
||||
/// <summary>
|
||||
/// Codice datamatrix
|
||||
/// </summary>
|
||||
DataMatrixTrovato,
|
||||
/// <summary>
|
||||
/// codice che indica un comando (prefisso da web.config)
|
||||
/// </summary>
|
||||
Comando,
|
||||
/// <summary>
|
||||
/// Assieme Logico
|
||||
/// </summary>
|
||||
AL,
|
||||
/// <summary>
|
||||
/// Trattamento Termico
|
||||
/// </summary>
|
||||
TT,
|
||||
/// <summary>
|
||||
/// Codice di imballo
|
||||
/// </summary>
|
||||
Imballo,
|
||||
/// <summary>
|
||||
/// Marcatore DataOra
|
||||
/// </summary>
|
||||
DateTime,
|
||||
/// <summary>
|
||||
/// Marcatore BarCodeCMD
|
||||
/// </summary>
|
||||
BarCodeCMD,
|
||||
/// <summary>
|
||||
/// Marcatore DataOra e Linea
|
||||
/// </summary>
|
||||
DateTimeLine
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco degli esiti per una sessione di login da terminalino
|
||||
/// </summary>
|
||||
public enum esitoLoginTerm
|
||||
{
|
||||
/// <summary>
|
||||
/// tutto ok, come true
|
||||
/// </summary>
|
||||
ok,
|
||||
/// <summary>
|
||||
/// non è andata, errore generico
|
||||
/// </summary>
|
||||
errore,
|
||||
/// <summary>
|
||||
/// errore x mancanza record in tab operatori di RilPro x CodSoggetto
|
||||
/// </summary>
|
||||
errore_noCodSogg,
|
||||
/// <summary>
|
||||
/// errore mancanza username corrisponende all'operatore il cui cod soggetto è stato passato
|
||||
/// </summary>
|
||||
errore_noUser
|
||||
/// <summary>
|
||||
/// tutto ok, come true
|
||||
/// </summary>
|
||||
ok,
|
||||
/// <summary>
|
||||
/// non è andata, errore generico
|
||||
/// </summary>
|
||||
errore,
|
||||
/// <summary>
|
||||
/// errore x mancanza record in tab operatori di RilPro x CodSoggetto
|
||||
/// </summary>
|
||||
errore_noCodSogg,
|
||||
/// <summary>
|
||||
/// errore mancanza username corrisponende all'operatore il cui cod soggetto è stato passato
|
||||
/// </summary>
|
||||
errore_noUser
|
||||
}
|
||||
Reference in New Issue
Block a user