工单对象中 去掉了两个字段 增加了工单状态
This commit is contained in:
@@ -200,7 +200,8 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
{
|
||||
if(item.Id.Equals(workorderId)) // 找到当前工单ID的对象
|
||||
{
|
||||
if(!string.IsNullOrEmpty(item.Isarrange)) isArrange = item.Isarrange;
|
||||
//if(!string.IsNullOrEmpty(item.Wrokerorder_status)) isArrange = item.Isarrange;
|
||||
isArrange = item.Wrokerorder_status.ToString();
|
||||
currentWorkorder = item;
|
||||
break;
|
||||
}
|
||||
@@ -268,10 +269,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
string isArrange = "0";
|
||||
|
||||
// 排产状态非空
|
||||
if (!string.IsNullOrEmpty(lstWorkorder[0].Isarrange))
|
||||
{
|
||||
isArrange = lstWorkorder[0].Isarrange;
|
||||
}
|
||||
isArrange = lstWorkorder[0].Wrokerorder_status.ToString();
|
||||
|
||||
// 排产状态为 0 ,可执行删除
|
||||
if ("0".Equals(isArrange))
|
||||
|
||||
Reference in New Issue
Block a user