Update gestione creazione FluxLog automatici
This commit is contained in:
@@ -592,10 +592,15 @@ namespace MP_IO.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary> Creazione nuovo ODL dato CodXdl + numPz
|
||||
/// GET: IOB/forceCreatePOdl/SIMUL_03?CodXdl=ABCD_1234&numPz=5 </summary> <param
|
||||
/// name="id"></param> <param name="CodArt"></param> <param name="CodGruppo"></param> <param
|
||||
/// name="numPz"></param> <returns>IdxODL creato</returns>
|
||||
/// <summary>
|
||||
/// Creazione nuovo ODL dato CodXdl + numPz
|
||||
/// GET: IOB/forceCreatePOdl/SIMUL_03?CodXdl=ABCD_1234&numPz=5
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="CodArt"></param>
|
||||
/// <param name="CodGruppo"></param>
|
||||
/// <param name="numPz"></param>
|
||||
/// <returns>IdxODL creato</returns>
|
||||
public int forceCreatePOdl(string id, string CodArt, string CodGruppo, int numPz)
|
||||
{
|
||||
int answ = 0;
|
||||
|
||||
+3
-2
@@ -836,7 +836,7 @@ namespace MapoDb
|
||||
// attendo 1000 msec x chiudere ODL
|
||||
Thread.Sleep(1000);
|
||||
// chiamo splitOdl
|
||||
MapoDbObj.taODL.autoStart(currData[0].IdxODL, 0, idxMacchina, currData[0].TCRichAttr, currData[0].PzPallet, $"Nuovo ODL da forceSplitOdl", true, qtyNew, keyRichiesta);
|
||||
MapoDbObj.taODL.autoStart(currData[0].IdxODL, 0, idxMacchina, currData[0].TCRichAttr, currData[0].PzPallet, $"Nuovo ODL da forceSplitOdl.autoStart", true, qtyNew, keyRichiesta);
|
||||
// elimino eventuale ODL precedente...
|
||||
string rKey = memLayer.ML.redHash($"ODL:{idxMacchina}");
|
||||
memLayer.ML.setRSV(rKey, "");
|
||||
@@ -887,6 +887,7 @@ namespace MapoDb
|
||||
ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now);
|
||||
outData = $"TS:{ts}|MATR:{MatrOpr}|ODL:{newOdl}";
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.fixStopSetup, outData);
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.forceResetPzCount, outData);
|
||||
|
||||
// invio task caricamento dati ODL
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.setArt, setArtVal);
|
||||
@@ -2366,7 +2367,7 @@ namespace MapoDb
|
||||
// ...oppure dritto su DB
|
||||
else
|
||||
{
|
||||
answ = MapoDbObj.isMulti(idxMacchina);
|
||||
answ = MapoDbObj.isSlave(idxMacchina);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user