|
|
@ -169,6 +169,10 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
//把状态变成执行
|
|
|
|
//把状态变成执行
|
|
|
|
LjPlanningDb.UpdateStatus(1, ljPlanningView.Id);
|
|
|
|
LjPlanningDb.UpdateStatus(1, ljPlanningView.Id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LjPlanningDb.UpdateBeginTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), ljPlanningView.Id);
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
|
|
|
@ -237,6 +241,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
plc.PlcWriteByDataKey(plc.Plan1_Start, new object[] { 1 });
|
|
|
|
plc.PlcWriteByDataKey(plc.Plan1_Start, new object[] { 1 });
|
|
|
|
//把状态变成执行
|
|
|
|
//把状态变成执行
|
|
|
|
LjPlanningDb.UpdateStatus(1, ljPlanningView.Id);
|
|
|
|
LjPlanningDb.UpdateStatus(1, ljPlanningView.Id);
|
|
|
|
|
|
|
|
LjPlanningDb.UpdateBeginTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), ljPlanningView.Id);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
|
|
|
|
|
|
|
@ -292,6 +297,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
plc.PlcWriteByDataKey(plc.Plan2_Start, new object[] { 1 });
|
|
|
|
plc.PlcWriteByDataKey(plc.Plan2_Start, new object[] { 1 });
|
|
|
|
//把状态变成执行
|
|
|
|
//把状态变成执行
|
|
|
|
LjPlanningDb.UpdateStatus(1, ljPlanningView.Id);
|
|
|
|
LjPlanningDb.UpdateStatus(1, ljPlanningView.Id);
|
|
|
|
|
|
|
|
LjPlanningDb.UpdateBeginTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), ljPlanningView.Id);
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
case 4:
|
|
|
@ -352,6 +358,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
plc.PlcWriteByDataKey(plc.Plan3_Start, new object[] { 1 });
|
|
|
|
plc.PlcWriteByDataKey(plc.Plan3_Start, new object[] { 1 });
|
|
|
|
//把状态变成执行
|
|
|
|
//把状态变成执行
|
|
|
|
LjPlanningDb.UpdateStatus(1, ljPlanningView.Id);
|
|
|
|
LjPlanningDb.UpdateStatus(1, ljPlanningView.Id);
|
|
|
|
|
|
|
|
LjPlanningDb.UpdateBeginTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), ljPlanningView.Id);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|