Pulizia da kanban x sito principale... DONE!

This commit is contained in:
Samuele E. Locatelli
2017-01-19 16:16:30 +01:00
parent a607043a44
commit e2d590b51e
30 changed files with 38 additions and 133 deletions
+6 -7
View File
@@ -294,7 +294,7 @@ namespace MoonPro.WebUserControls
string prefDichProd = memLayer.ML.confReadString("prefDichProd");
string prefDichFerm = memLayer.ML.confReadString("prefDichFerm");
string prefDichOp = memLayer.ML.confReadString("prefDichOp");
string prefDichKanban = memLayer.ML.confReadString("prefDichKanban");
string prefDichCodArt = memLayer.ML.confReadString("prefDichCodArt");
string prefDichAttrezzaggio = memLayer.ML.confReadString("prefDichAttrezzaggio");
string prefModTurno = memLayer.ML.confReadString("prefModTurno");
_tipoBCode = tipoBarcode.nd;
@@ -312,9 +312,9 @@ namespace MoonPro.WebUserControls
{
_tipoBCode = tipoBarcode.matrOperatore;
}
else if (prefBarcode == prefDichKanban)
else if (prefBarcode == prefDichCodArt)
{
_tipoBCode = tipoBarcode.kanban;
_tipoBCode = tipoBarcode.codArticolo;
}
else if (prefBarcode == prefDichAttrezzaggio)
{
@@ -346,7 +346,7 @@ namespace MoonPro.WebUserControls
case tipoBarcode.matrOperatore:
processaCartellinoOperatore();
break;
case tipoBarcode.kanban:
case tipoBarcode.codArticolo:
// x ora non serve
break;
case tipoBarcode.attrezzaggio:
@@ -715,9 +715,8 @@ namespace MoonPro.WebUserControls
DS_applicazione.StatoMacchineRow rigaStato = DataLayer.obj.taStatoMacchine.GetDataByIdxMacchina(idxMacchina)[0];
// ricavo codice articolo...
string CodArticolo = DataLayer.obj.taODL.getByIdx(idxODL, false)[0].CodArticolo;
string MatrKanban = DataLayer.obj.taKanban.getByCodArt(CodArticolo)[0].MatricolaKanban;
// processo evento...
controllerMapo.scriviRigaEventoBarcode(idxMacchina, idxEvento, MatrKanban, "", rigaStato.MatrOpr, rigaStato.pallet);
controllerMapo.scriviRigaEventoBarcode(idxMacchina, idxEvento, CodArticolo, "", rigaStato.MatrOpr, rigaStato.pallet);
// ricarico a seconda del tipo di codice
if (BarCode.StartsWith(StartSetup))
{
@@ -763,7 +762,7 @@ namespace MoonPro.WebUserControls
{
DS_applicazione.StatoMacchineRow rigaStato = DataLayer.obj.taStatoMacchine.GetDataByIdxMacchina(idxMacchina)[0];
// processo evento...
controllerMapo.scriviRigaEventoBarcode(idxMacchina, idxEvento, rigaStato.MatricolaKanban, "", rigaStato.MatrOpr, rigaStato.pallet);
controllerMapo.scriviRigaEventoBarcode(idxMacchina, idxEvento, rigaStato.CodArticolo, "", rigaStato.MatrOpr, rigaStato.pallet);
// ricarico!
salvaRicarica("Dichiarazione fermata", "Registrata dichiarazione fermata");
}