48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using System;
|
|
|
|
namespace MoonProAdmin
|
|
{
|
|
public partial class GestKIT : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
mod_barcode.codOrdPre = "KIT";
|
|
mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato;
|
|
mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead;
|
|
mod_gestKIT.eh_selKit += Mod_gestKIT_eh_selKit;
|
|
}
|
|
|
|
private void Mod_gestKIT_eh_selKit(object sender, EventArgs e)
|
|
{
|
|
// invio ultimo kit creato a barcode...
|
|
mod_barcode.BCodeVal = mod_gestKIT.lastKitMade;
|
|
mod_barcode.processInput();
|
|
}
|
|
|
|
private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
|
|
{
|
|
// verifico input su KIT x lettura "grezza"
|
|
string rawInput = mod_barcode.rawInput;
|
|
mod_gestKIT.lastInput = rawInput;
|
|
mod_gestKIT.doUpdate();
|
|
}
|
|
|
|
private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
|
|
{
|
|
// verifico input su KIT x comando completo
|
|
string BCodeVal = mod_barcode.BCodeVal;
|
|
// se è un ORDINE... procedo!
|
|
if (BCodeVal.IndexOf("OPR") == 0)
|
|
{
|
|
// aggiungo ordine...
|
|
mod_gestKIT.addOrdArt(mod_barcode.codOrd, mod_barcode.codArt, mod_barcode.descArt, mod_barcode.qta);
|
|
mod_gestKIT.lastInput = "";
|
|
}
|
|
else
|
|
{
|
|
mod_gestKIT.lastInput = mod_barcode.BCodeVal;
|
|
}
|
|
mod_gestKIT.doUpdate();
|
|
}
|
|
}
|
|
} |