spostamento su COnfig (DB) x prefComandi, prefDateTime, prefBCode

This commit is contained in:
Samuele E. Locatelli
2017-02-22 16:22:51 +01:00
parent 5841ddaf92
commit 12cdb6ea79
33 changed files with 38 additions and 53 deletions
-3
View File
@@ -265,9 +265,6 @@
<add key="ReportDatasourceALRX" value="GMWDataSet_stp_prtCartAL" />
<add key="ReportDatasourceALTT" value="GMWDataSet_stp_prtCartAL" />
<!--setup comandi barcode-->
<add key="prefComandi" value="CMD" />
<add key="prefDateTime" value="DT" />
<add key="prefBCode" value="BCD" />
<add key="cmdSvuotaGitterBox" value="CMDRSTGB" />
<add key="cmdEsci" value="CMDESCI" />
<add key="cmdFast" value="CMDFAST" />
-3
View File
@@ -264,9 +264,6 @@
<add key="ReportDatasourceALRX" value="GMWDataSet_stp_prtCartAL" />
<add key="ReportDatasourceALTT" value="GMWDataSet_stp_prtCartAL" />
<!--setup comandi barcode-->
<add key="prefComandi" value="CMD" />
<add key="prefDateTime" value="DT" />
<add key="prefBCode" value="BCD" />
<add key="cmdSvuotaGitterBox" value="CMDRSTGB" />
<add key="cmdEsci" value="CMDESCI" />
<add key="cmdFast" value="CMDFAST" />
-3
View File
@@ -264,9 +264,6 @@
<add key="ReportDatasourceALRX" value="GMWDataSet_stp_prtCartAL" />
<add key="ReportDatasourceALTT" value="GMWDataSet_stp_prtCartAL" />
<!--setup comandi barcode-->
<add key="prefComandi" value="CMD" />
<add key="prefDateTime" value="DT" />
<add key="prefBCode" value="BCD" />
<add key="cmdSvuotaGitterBox" value="CMDRSTGB" />
<add key="cmdEsci" value="CMDESCI" />
<add key="cmdFast" value="CMDFAST" />
+1 -1
View File
@@ -323,7 +323,7 @@ namespace GMW.WebUserControls
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
@@ -101,7 +101,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
@@ -282,7 +282,7 @@ namespace GMW.WebUserControls
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+2 -2
View File
@@ -564,7 +564,7 @@ namespace GMW.WebUserControls
// tento di recuperare e verifico validità dei 2 valori separatamente...
try
{
newData = val2decode.Replace(memLayer.ML.confReadString("prefDateTime"), "").Substring(0, 10);
newData = val2decode.Replace(memLayer.ML.cdv("prefDateTime"), "").Substring(0, 10);
if (newData != "")
{
dataFus = DateTime.ParseExact(newData, "yyMMddHHmm", CultureInfo.InvariantCulture);
@@ -581,7 +581,7 @@ namespace GMW.WebUserControls
{
try
{
newLinea = val2decode.Replace(memLayer.ML.confReadString("prefDateTime"), "").Substring(10, val2decode.Length - 10 - memLayer.ML.confReadString("prefDateTime").Length);
newLinea = val2decode.Replace(memLayer.ML.cdv("prefDateTime"), "").Substring(10, val2decode.Length - 10 - memLayer.ML.cdv("prefDateTime").Length);
if ((newLinea != "") && (DataProxy.obj.taElPost.getByCod(newLinea).Rows.Count > 0))
{
lineaFus = newLinea;
+2 -2
View File
@@ -339,7 +339,7 @@ namespace GMW.WebUserControls
// tento di recuperare e verifico validità dei 2 valori separatamente...
try
{
newData = barcodeIn.Replace(memLayer.ML.confReadString("prefDateTime"), "").Substring(0, 10);
newData = barcodeIn.Replace(memLayer.ML.cdv("prefDateTime"), "").Substring(0, 10);
if (newData != "")
{
dataFus = DateTime.ParseExact(newData, "yyMMddHHmm", CultureInfo.InvariantCulture);
@@ -356,7 +356,7 @@ namespace GMW.WebUserControls
{
try
{
newLinea = barcodeIn.Replace(memLayer.ML.confReadString("prefDateTime"), "").Substring(10, barcodeIn.Length - 10 - memLayer.ML.confReadString("prefDateTime").Length);
newLinea = barcodeIn.Replace(memLayer.ML.cdv("prefDateTime"), "").Substring(10, barcodeIn.Length - 10 - memLayer.ML.cdv("prefDateTime").Length);
if ((newLinea != "") && (DataProxy.obj.taElPost.getByCod(newLinea).Rows.Count > 0))
{
lineaFus = newLinea;
+1 -1
View File
@@ -165,7 +165,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -273,7 +273,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -228,7 +228,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
int matricola = -1;
// provo a convertire in intero barcode x verifica eventuale matricola...
try
+1 -1
View File
@@ -219,7 +219,7 @@ namespace GMW.WebUserControls
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -180,7 +180,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -126,7 +126,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -260,7 +260,7 @@ namespace GMW.WebUserControls
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -226,7 +226,7 @@ namespace GMW.WebUserControls
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -117,7 +117,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -321,7 +321,7 @@ namespace GMW.WebUserControls
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
@@ -24,7 +24,7 @@ namespace GMW.WebUserControls
/// <summary>
/// codice evento dell'UDC che si crea
/// </summary>
protected string codEventoUdc = "UDC_RX_DT";
protected string codEventoUdc = "UDC_RX_DTE";
public event EventHandler eh_reqUpdate;
/// <summary>
/// stringa UID univoca
@@ -533,7 +533,7 @@ namespace GMW.WebUserControls
// tento di recuperare e verifico validità dei 2 valori separatamente...
try
{
newData = val2decode.Replace(memLayer.ML.confReadString("prefDateTime"), "").Substring(0, 10);
newData = val2decode.Replace(memLayer.ML.cdv("prefDateTime"), "").Substring(0, 10);
if (newData != "")
{
dataFus = DateTime.ParseExact(newData, "yyMMddHHmm", CultureInfo.InvariantCulture);
@@ -550,7 +550,7 @@ namespace GMW.WebUserControls
{
try
{
newLinea = val2decode.Replace(memLayer.ML.confReadString("prefDateTime"), "").Substring(10, val2decode.Length - 10 - memLayer.ML.confReadString("prefDateTime").Length);
newLinea = val2decode.Replace(memLayer.ML.cdv("prefDateTime"), "").Substring(10, val2decode.Length - 10 - memLayer.ML.cdv("prefDateTime").Length);
if ((newLinea != "") && (DataProxy.obj.taElPost.getByCod(newLinea).Rows.Count > 0))
{
lineaFus = newLinea;
+1 -1
View File
@@ -88,7 +88,7 @@ namespace GMW.WebUserControls
{
case tipoCodiceBarcode.Comando:
// verifico se contenga uno dei 3 tipi di selezione operativa...
string RNC_Mode = barcodeIn.Replace(memLayer.ML.confReadString("prefComandi"), "");
string RNC_Mode = barcodeIn.Replace(memLayer.ML.cdv("prefComandi"), "");
if (RNC_Mode != "")
{
Postazione.CssClass = "stileComandoOk";
@@ -201,7 +201,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
@@ -190,7 +190,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
@@ -235,7 +235,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
@@ -304,7 +304,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -231,7 +231,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
@@ -291,7 +291,7 @@ namespace GMW.WebUserControls
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
+1 -1
View File
@@ -324,7 +324,7 @@ namespace GMW.WebUserControls
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
@@ -322,7 +322,7 @@ namespace GMW.WebUserControls
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preCmd = memLayer.ML.cdv("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
BIN
View File
Binary file not shown.
-3
View File
@@ -265,9 +265,6 @@
<add key="ReportDatasourceALRX" value="GMWDataSet_stp_prtCartAL" />
<add key="ReportDatasourceALTT" value="GMWDataSet_stp_prtCartAL" />
<!--setup comandi barcode-->
<add key="prefComandi" value="CMD" />
<add key="prefDateTime" value="DT" />
<add key="prefBCode" value="BCD" />
<add key="cmdSvuotaGitterBox" value="CMDRSTGB" />
<add key="cmdEsci" value="CMDESCI" />
<add key="cmdFast" value="CMDFAST" />
Binary file not shown.
-3
View File
@@ -265,9 +265,6 @@
<add key="ReportDatasourceALRX" value="GMWDataSet_stp_prtCartAL" />
<add key="ReportDatasourceALTT" value="GMWDataSet_stp_prtCartAL" />
<!--setup comandi barcode-->
<add key="prefComandi" value="CMD" />
<add key="prefDateTime" value="DT" />
<add key="prefBCode" value="BCD" />
<add key="cmdSvuotaGitterBox" value="CMDRSTGB" />
<add key="cmdEsci" value="CMDESCI" />
<add key="cmdFast" value="CMDFAST" />
+9 -9
View File
@@ -3035,9 +3035,9 @@ namespace GMW_data
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preDT = memLayer.ML.confReadString("prefDateTime");
string preBCD = memLayer.ML.confReadString("prefBCode");
string preCmd = memLayer.ML.cdv("prefComandi");
string preDT = memLayer.ML.cdv("prefDateTime");
string preBCD = memLayer.ML.cdv("prefBCode");
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
string statoDtx = "";
string formatoDtx = "";
@@ -3150,9 +3150,9 @@ namespace GMW_data
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preDT = memLayer.ML.confReadString("prefDateTime");
string preBCD = memLayer.ML.confReadString("prefBCode");
string preCmd = memLayer.ML.cdv("prefComandi");
string preDT = memLayer.ML.cdv("prefDateTime");
string preBCD = memLayer.ML.cdv("prefBCode");
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
if (valore.StartsWith(preCmd))
{
@@ -3246,9 +3246,9 @@ namespace GMW_data
catch
{ }
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
string preDT = memLayer.ML.confReadString("prefDateTime");
string preBCD = memLayer.ML.confReadString("prefBCode");
string preCmd = memLayer.ML.cdv("prefComandi");
string preDT = memLayer.ML.cdv("prefDateTime");
string preBCD = memLayer.ML.cdv("prefBCode");
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
if (valore.StartsWith(preCmd))
{