|
|
|
@ -1238,6 +1238,15 @@ namespace Aucma.Core.SheetMetalTasks
|
|
|
|
|
sidePanelComplate.OutPutAmount = complateAmount - lastComplateAmount;
|
|
|
|
|
//判断是否重新下发的计划
|
|
|
|
|
{
|
|
|
|
|
int abs= Math.Abs(sidePanelComplate.OutPutAmount);
|
|
|
|
|
if (abs == lastComplateAmount)//如果返回的绝对值和输出值一致,默认重新开始
|
|
|
|
|
{
|
|
|
|
|
sidePanelComplate.CompleteAmount = 0;
|
|
|
|
|
sidePanelComplate.OutPutAmount = 0;
|
|
|
|
|
sidePanelComplate.OffLineAmount = 0;
|
|
|
|
|
_ = _sidePanelComplateServices.InsertSidePanelCimplate(sidePanelComplate).Result;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (sidePanelComplate.OutPutAmount<0)//默认重新开始
|
|
|
|
|
{
|
|
|
|
@ -1527,8 +1536,16 @@ namespace Aucma.Core.SheetMetalTasks
|
|
|
|
|
|
|
|
|
|
//判断是否重新下发的计划
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (backPanelComplate.OutPutAmount < 0)//默认重新开始
|
|
|
|
|
int abs = Math.Abs(backPanelComplate.OutPutAmount);
|
|
|
|
|
if (abs == lastComplateAmount)//如果返回的绝对值和输出值一致,默认重新开始
|
|
|
|
|
{
|
|
|
|
|
backPanelComplate.CompleteAmount = 0;
|
|
|
|
|
backPanelComplate.OutPutAmount = 0;
|
|
|
|
|
backPanelComplate.OffLineAmount = 0;
|
|
|
|
|
_ = _backPanelComplateServices.InsertBackPanelCimplate(backPanelComplate).Result;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if (backPanelComplate.OutPutAmount < 0)//如果返回的绝对值和输出值一致,默认重新开始
|
|
|
|
|
{
|
|
|
|
|
backPanelComplate.CompleteAmount = 0;
|
|
|
|
|
backPanelComplate.OutPutAmount = 0;
|
|
|
|
|