Completato punto 5 (Finiti Super Cubati)
Da verificare e validare con Gian, clone con differenze da finiti GRZ/LVT, fatti installers
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -56,7 +56,8 @@
|
||||
<add key="IdxPosizioneSterrati" value="9" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterratiTemp" value="1009" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattati" value="11" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFinTemp" value="1024" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFinTemp" value="1024" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFinLavTemp" value="1024" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup stampa cartellini-->
|
||||
<add key="printerCartCompleto" value="\\SRV-DEV01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartAnime" value="\\SRV-DEV01\MPC2500-Copy"/>
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
<add key="IdxPosizioneSterratiTemp" value="1009" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattati" value="11" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFinTemp" value="1024" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFinLavTemp" value="1024" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup stampa cartellini-->
|
||||
<add key="printerCartCompleto" value="\\SRV-DEV01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="printerCartAnime" value="\\SRV-PRODTK01\Kyocera_FS-1370dn" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -23,8 +23,10 @@ namespace GMW.WebUserControls
|
||||
codLineaKo = "W2100";
|
||||
tipoUdcLinea = "Finito";
|
||||
IdxPosizioneIn = memLayer.ML.CRI("IdxPosizioneTrattati");
|
||||
IdxPosizioneOut = memLayer.ML.CRI("IdxPosizioneFiniti");
|
||||
IdxPosizioneOutTempName = "IdxPosizioneFinTemp";
|
||||
IdxPosizioneOutTemp = memLayer.ML.CRI(IdxPosizioneOutTempName);
|
||||
tipoCartCurr = tipoCartellino.cartFiniti;
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL target
|
||||
@@ -122,6 +124,21 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Note utente effettive
|
||||
/// </summary>
|
||||
public override string campoNote
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtNote.Text.Trim();
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
txtNote.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// IMposta e legge imballo selezionato
|
||||
/// </summary>
|
||||
public override string imballoSel
|
||||
@@ -182,141 +199,6 @@ namespace GMW.WebUserControls
|
||||
divNote.Visible = stampaOk;
|
||||
}
|
||||
/// <summary>
|
||||
/// genera i barcode di
|
||||
/// - trattamenti
|
||||
/// - nuovo x pezzi liquidi
|
||||
/// e lancia la relativa stampa
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public override void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALF00")
|
||||
{
|
||||
string codImballo = "";
|
||||
try
|
||||
{
|
||||
codImballo = ddlImballi.SelectedValue;
|
||||
}
|
||||
catch
|
||||
{
|
||||
codImballo = memLayer.ML.CRS("CodImballoFiniti");
|
||||
}
|
||||
// se NON HA selezionato prendo default...
|
||||
if (codImballo == "" || codImballo == "-")
|
||||
{
|
||||
codImballo = memLayer.ML.CRS("CodImballoFiniti");
|
||||
}
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
try
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitivo x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneDataUDC(currUDC, noteTrim, memLayer.ML.CRI("IdxPosizioneFiniti"), DateTime.Now);
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC Finito LM OUT: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC FINITO");
|
||||
|
||||
// 2016.06.15 modifica per creare subito un NUOVO UDC connesso a quello in origine... QTA 0 !!!
|
||||
string udcParent = "";
|
||||
// recupero parent... ULTIMO (descending)
|
||||
try
|
||||
{
|
||||
udcParent = MagClass.magazzino.getUdcParentDesc(currUDC);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo che sia DAVVERO caricato UDC parent...
|
||||
string oldUdc = "";
|
||||
// verifico per eventuale consumo vecchio UDC... cerco nella posizione
|
||||
DS_magazzino.v_UdcDetailDataTable tabUdcDet = null;
|
||||
try
|
||||
{
|
||||
// cerco nella posizione
|
||||
tabUdcDet = MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(idxCella);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
oldUdc = ((DS_magazzino.v_UdcDetailRow)tabUdcDet.Select(string.Format("UDC = '{0}'", udcParent))[0]).UDC;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// PROCEDO SOLO SE HO UN UDC IN INGRESSO!!!
|
||||
if (udcParent != "" && oldUdc != "")
|
||||
{
|
||||
// CREO NUOVO UDC!!!
|
||||
string udcDest = "";
|
||||
udcDest = checkCreaUDC();
|
||||
// associo UDC con quello di destinazione
|
||||
MagClass.magazzino.associaUdcParent(udcDest, udcParent, true);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato ed associato nuovo UDC FINITO con codice {2}, qta: {0}, UDC Parent: {1}", qta, udcParent, udcDest));
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("FINITI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC finiti"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
doUpdate();
|
||||
// raise dell'evento
|
||||
raiseEvent(ucEvType.ReqUpdateParent);
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gestione reset
|
||||
/// </summary>
|
||||
public override void doResetData()
|
||||
@@ -325,16 +207,6 @@ namespace GMW.WebUserControls
|
||||
base.doResetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto le note
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public override void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
base.btnEmptyNote_Click(sender, e);
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -428,18 +300,5 @@ namespace GMW.WebUserControls
|
||||
consumaUdc(grView.SelectedValue.ToString());
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// seleziona imballo corretto
|
||||
/// </summary>
|
||||
public override void selezionaImballo()
|
||||
{
|
||||
try
|
||||
{
|
||||
// preseleziono
|
||||
ddlImballi.SelectedValue = codImballo("CodImballoFiniti");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,8 +23,10 @@ namespace GMW.WebUserControls
|
||||
codLineaKo = "W2300";
|
||||
tipoUdcLinea = "Finito Lavorato";
|
||||
IdxPosizioneIn = memLayer.ML.CRI("IdxPosizioneFiniti");
|
||||
IdxPosizioneOut = memLayer.ML.CRI("IdxPosizioneFiniti");
|
||||
IdxPosizioneOutTempName = "IdxPosizioneFinLavTemp";
|
||||
IdxPosizioneOutTemp = memLayer.ML.CRI(IdxPosizioneOutTempName);
|
||||
tipoCartCurr = tipoCartellino.cartFiniti;
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL target
|
||||
@@ -122,7 +124,22 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// IMposta e legge imballo selezionato
|
||||
/// Note utente effettive
|
||||
/// </summary>
|
||||
public override string campoNote
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtNote.Text.Trim();
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
txtNote.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Imposta e legge imballo selezionato
|
||||
/// </summary>
|
||||
public override string imballoSel
|
||||
{
|
||||
@@ -130,7 +147,6 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
return ddlImballi.SelectedValue;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
ddlImballi.SelectedValue = value;
|
||||
@@ -182,141 +198,6 @@ namespace GMW.WebUserControls
|
||||
divNote.Visible = stampaOk;
|
||||
}
|
||||
/// <summary>
|
||||
/// genera i barcode di
|
||||
/// - trattamenti
|
||||
/// - nuovo x pezzi liquidi
|
||||
/// e lancia la relativa stampa
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public override void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALF00")
|
||||
{
|
||||
string codImballo = "";
|
||||
try
|
||||
{
|
||||
codImballo = ddlImballi.SelectedValue;
|
||||
}
|
||||
catch
|
||||
{
|
||||
codImballo = memLayer.ML.CRS("CodImballoFiniti");
|
||||
}
|
||||
// se NON HA selezionato prendo default...
|
||||
if (codImballo == "" || codImballo == "-")
|
||||
{
|
||||
codImballo = memLayer.ML.CRS("CodImballoFiniti");
|
||||
}
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
try
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitivo x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneDataUDC(currUDC, noteTrim, memLayer.ML.CRI("IdxPosizioneFiniti"), DateTime.Now);
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC Finito LM OUT: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC FINITO");
|
||||
|
||||
// 2016.06.15 modifica per creare subito un NUOVO UDC connesso a quello in origine... QTA 0 !!!
|
||||
string udcParent = "";
|
||||
// recupero parent... ULTIMO (descending)
|
||||
try
|
||||
{
|
||||
udcParent = MagClass.magazzino.getUdcParentDesc(currUDC);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo che sia DAVVERO caricato UDC parent...
|
||||
string oldUdc = "";
|
||||
// verifico per eventuale consumo vecchio UDC... cerco nella posizione
|
||||
DS_magazzino.v_UdcDetailDataTable tabUdcDet = null;
|
||||
try
|
||||
{
|
||||
// cerco nella posizione
|
||||
tabUdcDet = MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(idxCella);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
oldUdc = ((DS_magazzino.v_UdcDetailRow)tabUdcDet.Select(string.Format("UDC = '{0}'", udcParent))[0]).UDC;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// PROCEDO SOLO SE HO UN UDC IN INGRESSO!!!
|
||||
if (udcParent != "" && oldUdc != "")
|
||||
{
|
||||
// CREO NUOVO UDC!!!
|
||||
string udcDest = "";
|
||||
udcDest = checkCreaUDC();
|
||||
// associo UDC con quello di destinazione
|
||||
MagClass.magazzino.associaUdcParent(udcDest, udcParent, true);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato ed associato nuovo UDC FINITO con codice {2}, qta: {0}, UDC Parent: {1}", qta, udcParent, udcDest));
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("FINITI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC finiti"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
doUpdate();
|
||||
// raise dell'evento
|
||||
raiseEvent(ucEvType.ReqUpdateParent);
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gestione reset
|
||||
/// </summary>
|
||||
public override void doResetData()
|
||||
@@ -325,16 +206,6 @@ namespace GMW.WebUserControls
|
||||
base.doResetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto le note
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public override void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
base.btnEmptyNote_Click(sender, e);
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -428,18 +299,5 @@ namespace GMW.WebUserControls
|
||||
consumaUdc(grView.SelectedValue.ToString());
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// seleziona imballo corretto
|
||||
/// </summary>
|
||||
public override void selezionaImballo()
|
||||
{
|
||||
try
|
||||
{
|
||||
// preseleziono
|
||||
ddlImballi.SelectedValue = codImballo("CodImballoFiniti");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -31,6 +31,10 @@ namespace GMW_data
|
||||
/// </summary>
|
||||
public string preCodSogg = memLayer.ML.CRS("prefCodSogg");
|
||||
/// <summary>
|
||||
/// codImballo standard
|
||||
/// </summary>
|
||||
public string CodImballoStd = memLayer.ML.CRS("CodImballoFiniti");
|
||||
/// <summary>
|
||||
/// Codice linea non utilizzabile ("00" finale = Select...)
|
||||
/// </summary>
|
||||
public string codLineaKo = "";
|
||||
@@ -43,6 +47,10 @@ namespace GMW_data
|
||||
/// </summary>
|
||||
public int IdxPosizioneIn = 0;
|
||||
/// <summary>
|
||||
/// IdxPosizione x UDC in uscita
|
||||
/// </summary>
|
||||
public int IdxPosizioneOut = 0;
|
||||
/// <summary>
|
||||
/// NOME IdxPosizione x UDC in uscita al momento della creazione
|
||||
/// </summary>
|
||||
public string IdxPosizioneOutTempName = "";
|
||||
@@ -51,6 +59,10 @@ namespace GMW_data
|
||||
/// </summary>
|
||||
public int IdxPosizioneOutTemp = 0;
|
||||
/// <summary>
|
||||
/// Cartellino da stampare/ristampare
|
||||
/// </summary>
|
||||
public tipoCartellino tipoCartCurr = tipoCartellino.cartND;
|
||||
/// <summary>
|
||||
/// Impostazione variabili specifiche
|
||||
/// </summary>
|
||||
public virtual void setupVariabili()
|
||||
@@ -350,6 +362,18 @@ namespace GMW_data
|
||||
{ }
|
||||
}
|
||||
/// <summary>
|
||||
/// Note Utente
|
||||
/// </summary>
|
||||
public virtual string campoNote
|
||||
{
|
||||
get
|
||||
{
|
||||
return "";
|
||||
}
|
||||
set
|
||||
{ }
|
||||
}
|
||||
/// <summary>
|
||||
/// Imballo selezionato
|
||||
/// </summary>
|
||||
public virtual string imballoSel
|
||||
@@ -432,7 +456,15 @@ namespace GMW_data
|
||||
/// metodo stub selezione imballo
|
||||
/// </summary>
|
||||
public virtual void selezionaImballo()
|
||||
{ }
|
||||
{
|
||||
try
|
||||
{
|
||||
// preseleziono
|
||||
imballoSel = CodImballoStd;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
/// <summary>
|
||||
/// determina se sia possibile cancellare un record, se qta > 0
|
||||
/// </summary>
|
||||
@@ -592,6 +624,7 @@ namespace GMW_data
|
||||
/// <param name="e"></param>
|
||||
public virtual void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
campoNote = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
@@ -730,6 +763,10 @@ namespace GMW_data
|
||||
{
|
||||
tipoLinea = "LVT";
|
||||
}
|
||||
else if (Postazione.currNomeLinea.IndexOf("FSC") >= 0)
|
||||
{
|
||||
tipoLinea = "FSC";
|
||||
}
|
||||
else
|
||||
{
|
||||
tipoLinea = "ND";
|
||||
@@ -938,11 +975,6 @@ namespace GMW_data
|
||||
}
|
||||
return udcDest;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region metodi da verificare/scrivere in ogni pagina
|
||||
|
||||
/// <summary>
|
||||
/// tenta di impostare l'imballo al valore indicato altrimenti mostra errore
|
||||
/// </summary>
|
||||
@@ -965,7 +997,131 @@ namespace GMW_data
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public virtual void btnStampa_Click(object sender, EventArgs e)
|
||||
{ }
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALF00")
|
||||
{
|
||||
string codImballo = "";
|
||||
try
|
||||
{
|
||||
codImballo = imballoSel;
|
||||
}
|
||||
catch
|
||||
{
|
||||
codImballo = CodImballoStd;
|
||||
}
|
||||
// se NON HA selezionato prendo default...
|
||||
if (codImballo == "" || codImballo == "-")
|
||||
{
|
||||
codImballo = CodImballoStd;
|
||||
}
|
||||
string noteCompl = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, campoNote);
|
||||
try
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitivo x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneDataUDC(currUDC, noteCompl, IdxPosizioneOut, DateTime.Now);
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC {0}:{1}{2}", tipoUdcLinea, Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// ora stampo il nuovo cartellino nel formato impostato
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartCurr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC FINITO");
|
||||
|
||||
// 2016.06.15 modifica per creare subito un NUOVO UDC connesso a quello in origine... QTA 0 !!!
|
||||
string udcParent = "";
|
||||
// recupero parent... ULTIMO (descending)
|
||||
try
|
||||
{
|
||||
udcParent = MagClass.magazzino.getUdcParentDesc(currUDC);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo che sia DAVVERO caricato UDC parent...
|
||||
string oldUdc = "";
|
||||
// verifico per eventuale consumo vecchio UDC... cerco nella posizione
|
||||
DS_magazzino.v_UdcDetailDataTable tabUdcDet = null;
|
||||
try
|
||||
{
|
||||
// cerco nella posizione
|
||||
tabUdcDet = MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(idxCella);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
oldUdc = ((DS_magazzino.v_UdcDetailRow)tabUdcDet.Select(string.Format("UDC = '{0}'", udcParent))[0]).UDC;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// PROCEDO SOLO SE HO UN UDC IN INGRESSO!!!
|
||||
if (udcParent != "" && oldUdc != "")
|
||||
{
|
||||
// CREO NUOVO UDC!!!
|
||||
string udcDest = "";
|
||||
udcDest = checkCreaUDC();
|
||||
// associo UDC con quello di destinazione
|
||||
MagClass.magazzino.associaUdcParent(udcDest, udcParent, true);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato ed associato nuovo UDC {3} con codice {2}, qta: {0}, UDC Parent: {1}", qta, udcParent, udcDest, tipoUdcLinea));
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("FINITI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC {0}", tipoUdcLinea), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
doUpdate();
|
||||
// raise dell'evento
|
||||
raiseEvent(ucEvType.ReqUpdateParent);
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1,15 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
|
||||
autoReload="true"
|
||||
throwExceptions="false"
|
||||
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
|
||||
|
||||
<!--
|
||||
See https://github.com/nlog/nlog/wiki/Configuration-file
|
||||
<!-- optional, add some variables
|
||||
https://github.com/nlog/NLog/wiki/Configuration-file#variables
|
||||
-->
|
||||
<variable name="myvar" value="myvalue"/>
|
||||
|
||||
<!--
|
||||
See https://github.com/nlog/nlog/wiki/Configuration-file
|
||||
for information on customizing logging rules and outputs.
|
||||
-->
|
||||
<targets>
|
||||
<!-- add your targets here -->
|
||||
|
||||
|
||||
<!--
|
||||
add your targets here
|
||||
See https://github.com/nlog/NLog/wiki/Targets for possible targets.
|
||||
See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
|
||||
-->
|
||||
|
||||
<!--
|
||||
Write events to a file with the date in the filename.
|
||||
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
|
||||
layout="${longdate} ${uppercase:${level}} ${message}" />
|
||||
-->
|
||||
@@ -17,9 +32,10 @@
|
||||
|
||||
<rules>
|
||||
<!-- add your logging rules here -->
|
||||
|
||||
|
||||
<!--
|
||||
<logger name="*" minlevel="Trace" writeTo="f" />
|
||||
Write all events with minimal level of Debug (So Debug, Info, Warn, Error and Fatal, but not Trace) to "f"
|
||||
<logger name="*" minlevel="Debug" writeTo="f" />
|
||||
-->
|
||||
</rules>
|
||||
</nlog>
|
||||
</nlog>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.5.890.2407")]
|
||||
[assembly: AssemblyFileVersion("3.5.890.2407")]
|
||||
[assembly: AssemblyVersion("3.5.893.2408")]
|
||||
[assembly: AssemblyFileVersion("3.5.893.2408")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-2016")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.5.890.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("3.5.890.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("3.5.893.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("3.5.893.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Reference in New Issue
Block a user