continuo merge metodi da controllo base...
This commit is contained in:
+25
-1
@@ -31,10 +31,34 @@ namespace GMW
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
mod_PostFin_DT.doUpdate();
|
||||
mod_PostFin_DT.eh_reqUpdate += mod_PostRX_DT1_eh_reqUpdate;
|
||||
mod_PostFin_DT.eh_ucev += Mod_PostFin_DT_eh_ucev;
|
||||
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
|
||||
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
|
||||
}
|
||||
|
||||
private void Mod_PostFin_DT_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
ucEvent evento = (ucEvent)e;
|
||||
switch (evento.tipoEvento)
|
||||
{
|
||||
case ucEvType.Delete:
|
||||
break;
|
||||
case ucEvType.Edit:
|
||||
break;
|
||||
case ucEvType.New:
|
||||
break;
|
||||
case ucEvType.Reset:
|
||||
break;
|
||||
case ucEvType.ReqUpdateParent:
|
||||
doUpdate();
|
||||
break;
|
||||
case ucEvType.Selected:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
|
||||
@@ -21,8 +21,8 @@ namespace GMW.WebUserControls
|
||||
eventoUDC = "UDC_TL_DT"; //UDC_FINWIP ???
|
||||
eventoUDC_qta = "UDC_QTY";
|
||||
eventoUDC_temp = "UDC_TRATT";
|
||||
codLineaKo = "W8200";
|
||||
|
||||
codLineaKo = "W2100";
|
||||
tipoUdcLinea = "Finito";
|
||||
IdxPosizioneIn = memLayer.ML.cdvi("IdxPosizioneTrattati");
|
||||
IdxPosizioneOut = memLayer.ML.cdvi("IdxPosizioneFiniti");
|
||||
@@ -32,43 +32,10 @@ namespace GMW.WebUserControls
|
||||
tipoCartCurr = tipoCartellino.cartFiniti;
|
||||
enableBCodeParticolare = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// Codice AL sulla linea...
|
||||
/// </summary>
|
||||
protected string currAL
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = MagClass.magazzino.taAL.getByKey(Postazione.currCodLinea)[0].CurrVal;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
MagClass.magazzino.taAL.updateCurrVal(Postazione.currCodLinea, value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL in carico
|
||||
/// </summary>
|
||||
protected string sourceAL
|
||||
public override string sourceAL
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -80,23 +47,9 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// ultimo valore barcode letto (x confronto conferme doppio input...)
|
||||
/// </summary>
|
||||
protected string lastBarcodeIn
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("lastBCode_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("lastBCode_{0}", uid), value, false);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL della cella corrente
|
||||
/// </summary>
|
||||
protected string destAL
|
||||
public override string destAL
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -107,56 +60,12 @@ namespace GMW.WebUserControls
|
||||
lblDestAL.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL associato alla cella corrente...
|
||||
/// </summary>
|
||||
protected string AlByCella
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = string.Format("ALF00{0}", Postazione.currCodCella);
|
||||
// controllo se esista AL sennò lo creo...
|
||||
if (MagClass.magazzino.taEA.getByAL(answ).Rows.Count == 0)
|
||||
{
|
||||
MagClass.magazzino.taEA.Insert(answ, true, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, "", "");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica il codice articolo correntemente selezionato
|
||||
/// </summary>
|
||||
protected string currParticolare
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("currParticolare_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("currParticolare_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel"));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica UDC correntemente selezionato
|
||||
/// </summary>
|
||||
protected string currUDC
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("UDC_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("UDC_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// num pezzi dell'ultimo UDC di uguale particolare e stato fatto...
|
||||
/// </summary>
|
||||
@@ -1030,11 +939,7 @@ namespace GMW.WebUserControls
|
||||
setVisibility();
|
||||
grViewSource.DataBind();
|
||||
grViewDest.DataBind();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
raiseEvent(ucEvType.ReqUpdateParent);
|
||||
verificaBtnStampa();
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,8 @@ namespace GMW_data
|
||||
{
|
||||
public class UserControlBCodeMan : GMW_data.UserControl
|
||||
{
|
||||
#region area base comune (variabili, valori e metodi generali)
|
||||
|
||||
#region Conf stili css
|
||||
|
||||
/// <summary>
|
||||
/// stile css comando OK
|
||||
@@ -31,6 +32,12 @@ namespace GMW_data
|
||||
/// stile css comando ADD
|
||||
/// </summary>
|
||||
public string cssAdd = "stileComandoAdd";
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region area base comune (variabili, valori eventi - stati - tipi - posizioni)
|
||||
|
||||
/// <summary>
|
||||
/// Abilitato/disabilitato BCode particolare
|
||||
/// </summary>
|
||||
@@ -115,6 +122,38 @@ namespace GMW_data
|
||||
/// Cartellino da stampare/ristampare
|
||||
/// </summary>
|
||||
public tipoCartellino tipoCartCurr = tipoCartellino.cartND;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region gestioneAL
|
||||
|
||||
/// <summary>
|
||||
/// Codice AL sulla linea...
|
||||
/// </summary>
|
||||
public string currAL
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = MagClass.magazzino.taAL.getByKey(Postazione.currCodLinea)[0].CurrVal;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
MagClass.magazzino.taAL.updateCurrVal(Postazione.currCodLinea, value);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area base comune (metodi generali)
|
||||
|
||||
/// <summary>
|
||||
/// Impostazione variabili specifiche
|
||||
/// </summary>
|
||||
@@ -175,7 +214,7 @@ namespace GMW_data
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
// tolto 2015.06.25
|
||||
// tolto 2015.06.25 redirect a pagina default
|
||||
//// se avesse perso codice cella rimando a pagina default...
|
||||
//if (Postazione.currCodCella == "") Response.Redirect("Default.aspx");
|
||||
answ = string.Format("ALF00{0}", Postazione.currCodCella);
|
||||
@@ -249,6 +288,18 @@ namespace GMW_data
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL in carico
|
||||
/// </summary>
|
||||
public virtual string sourceAL
|
||||
{
|
||||
get
|
||||
{
|
||||
return "";
|
||||
}
|
||||
set
|
||||
{ }
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL target
|
||||
/// </summary>
|
||||
public virtual string destAL
|
||||
@@ -617,6 +668,7 @@ namespace GMW_data
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region area metodi interazione controlli
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user