Completate modifiche terminalino, DA TESTARE...

This commit is contained in:
Samuele E. Locatelli
2018-07-04 19:03:57 +02:00
parent ef62f37c69
commit 6f9ce1fe41
4 changed files with 108 additions and 53 deletions
@@ -324,6 +324,8 @@ namespace GMW_Term.WebUserControls
{
// salvo in session UDC selezionato
memLayer.ML.setSessionVal("UDC_sel", valoreScan, false);
// svuoto AL...
memLayer.ML.emptySessionVal("AL_sel");
if (eh_scannedUdc != null)
{
eh_scannedUdc(this, new EventArgs());
@@ -346,6 +348,8 @@ namespace GMW_Term.WebUserControls
{
// salvo in session AL selezionato
memLayer.ML.setSessionVal("AL_sel", valoreScan, false);
// svuoto UDC...
memLayer.ML.emptySessionVal("UDC_sel");
if (eh_scannedAL != null)
{
eh_scannedAL(this, new EventArgs());
+1 -1
View File
@@ -11,7 +11,7 @@
<div style="float: right;">
<asp:Label runat="server" ID="lblUDC" />
<br />
<b>
<b>
<asp:Label runat="server" ID="lblCodUDC" />
</b>
</div>
+68 -16
View File
@@ -40,8 +40,10 @@ namespace GMW_Term.WebUserControls
{
logger.lg.scriviLog("chiamata updateMakeMov");
}
// recupero barcode e controllo sia valido
// recupero barcode e controllo sia valido
string _UDC = memLayer.ML.StringSessionObj("UDC_sel");
string _AL = memLayer.ML.StringSessionObj("AL_sel");
// se ho AL --> uso quello...
int _idxCella = memLayer.ML.IntSessionObj("IdxCella_sel");
string _codCella = memLayer.ML.StringSessionObj("codCella_sel");
if (logLevel > 6)
@@ -50,41 +52,91 @@ namespace GMW_Term.WebUserControls
}
// aggiorno labels standard
lblCella.Text = traduci("lblCella");
lblUDC.Text = traduci("lblUDC");
//2018.07.04 secondo AL/UDC mostro uno o altro...
// se AL in sessione
if (_AL != "")
{
lblUDC.Text = traduci("lblAL");
lblCodUDC.Text = _AL;
}
else
{
lblUDC.Text = traduci("lblUDC");
lblCodUDC.Text = _UDC;
}
btnConferma.Text = traduci("btnConferma");
btnAnnulla.Text = traduci("btnAnnulla");
// aggiorno labels valori
lblCodCella.Text = _codCella;
lblCodUDC.Text = _UDC;
// controllo se ci siano UDC/Cella validi
if (_UDC != "" && _codCella != "")
// controllo se ci siano [UDC/AL] + Cella validi
if (_codCella != "")
{
// SE cella vuota procedo!
if (!MagClass.magazzino.cellaPiena(memLayer.ML.confReadString("codCS"), _idxCella))
// se si tratta di UDC...
if (_UDC != "")
{
if (logLevel > 6)
// SE cella vuota procedo!
if (!MagClass.magazzino.cellaPiena(memLayer.ML.confReadString("codCS"), _idxCella))
{
logger.lg.scriviLog("Cella vuota, procedo a spstamento UDC");
if (logLevel > 6)
{
logger.lg.scriviLog("Cella vuota, procedo a spostamento UDC");
}
spostaUdc(_UDC, _idxCella, _codCella);
}
else
{
if (logLevel > 6)
{
logger.lg.scriviLog("Cella piena, chiedo conferma");
}
// se cella piena chiedo conferma
btnConferma.Visible = true;
btnAnnulla.Visible = true;
}
}
// se si tratta di AL...
else if (_AL != "")
{
// SE cella vuota procedo!
if (!MagClass.magazzino.cellaPiena(memLayer.ML.confReadString("codCS"), _idxCella))
{
if (logLevel > 6)
{
logger.lg.scriviLog("Cella vuota, procedo a spostamento AL");
}
// recupero elenco UDC da AL...
var tabUDC = MagClass.magazzino.taAL2UDC.getByAL(_AL);
foreach (var item in tabUDC)
{
spostaUdc(item.UDC, _idxCella, _codCella);
}
}
else
{
if (logLevel > 6)
{
logger.lg.scriviLog("Cella piena, chiedo conferma");
}
// se cella piena chiedo conferma
btnConferma.Visible = true;
btnAnnulla.Visible = true;
}
spostaUdc(_UDC, _idxCella, _codCella);
}
else
{
if (logLevel > 6)
{
logger.lg.scriviLog("Cella piena, chieodo conferma");
logger.lg.scriviLog("Mancano UDC o AL");
}
// se cella piena chiedo conferma
btnConferma.Visible = true;
btnAnnulla.Visible = true;
btnConferma.Visible = false;
btnAnnulla.Visible = false;
}
}
else
{
if (logLevel > 6)
{
logger.lg.scriviLog("Mancano UDC o Cella");
logger.lg.scriviLog("Manca Cella");
}
btnConferma.Visible = false;
btnAnnulla.Visible = false;
+35 -36
View File
@@ -1,11 +1,10 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4963
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace GMW_Term.WebUserControls {
@@ -14,92 +13,92 @@ namespace GMW_Term.WebUserControls {
public partial class mod_makeMov {
/// <summary>
/// lblCella control.
/// Controllo lblCella.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblCella;
/// <summary>
/// lblCodCella control.
/// Controllo lblCodCella.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblCodCella;
/// <summary>
/// lblUDC control.
/// Controllo lblUDC.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblUDC;
/// <summary>
/// lblCodUDC control.
/// Controllo lblCodUDC.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblCodUDC;
/// <summary>
/// lblErrore control.
/// Controllo lblErrore.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblErrore;
/// <summary>
/// lblEsito control.
/// Controllo lblEsito.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblEsito;
/// <summary>
/// btnConferma control.
/// Controllo btnConferma.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton btnConferma;
/// <summary>
/// lblGeneraListe control.
/// Controllo lblGeneraListe.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblGeneraListe;
/// <summary>
/// btnAnnulla control.
/// Controllo btnAnnulla.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton btnAnnulla;
/// <summary>
/// lblResetListe control.
/// Controllo lblResetListe.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblResetListe;
}