Ok test condizione num commessa..

This commit is contained in:
Samuele E. Locatelli
2019-08-19 14:45:29 +02:00
parent e9a21436b2
commit f250dab4ef
3 changed files with 28 additions and 6 deletions
+17 -4
View File
@@ -1,4 +1,5 @@
using SteamWare;
using AppData;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Web.UI;
@@ -133,9 +134,21 @@ namespace C_TRACK.WebUserControls
{
txtVal2show = "---";
}
if (eh_comandoRegistrato != null)
// se è multi alzo ALTRO evento
if (mUtils.postIsMulti)
{
eh_comandoRegistrato(this, new EventArgs());
rawInput = BCodeVal;
if (eh_dataRead != null)
{
eh_dataRead(this, new EventArgs());
}
}
else
{
if (eh_comandoRegistrato != null)
{
eh_comandoRegistrato(this, new EventArgs());
}
}
}
else
@@ -161,7 +174,7 @@ namespace C_TRACK.WebUserControls
comando.isValid = true;
comando.valore = BCodeVal;
_tabValori.TryGetValue(BCodeVal, out comando.valoreTrad);
}
}
}
/// <summary>
/// verifica se il comando inserito sia valido
@@ -137,6 +137,8 @@ namespace C_TRACK.WebUserControls
Match testQta = Regex.Match(value, reQta);
// qui devo verificare SE SIA un oepratore...
#if false
if (testReset.Success)
{
+9 -2
View File
@@ -473,10 +473,17 @@ namespace C_TRACK
void Mod_barcode_eh_dataRead(object sender, EventArgs e)
{
// controllo se sto leggendo un operatore o una commessa
Match testNumTask = Regex.Match(mod_barcode1.comandoRegistrato.valore, reNumTask);
Match testOper = Regex.Match(mod_barcode1.comandoRegistrato.valore, reCodOper);
// a seconda dei cari decido se far processare ai controlli oepratore o commessa in post multi...
if (testOper.Success)
{
}
else if (testNumTask.Success)
{
}
}
/// <summary>
/// il barcode ha registrato un evento...
@@ -564,7 +571,7 @@ namespace C_TRACK
}
//else if (mod_barcode1.comandoRegistrato.valore.Contains("OPR."))
else if (testOper.Success)
{
{
// imposto operatore
mUtils.CodOpr = mod_barcode1.comandoRegistrato.valore;
// SE HO postazione...