出库计划ISBATCHSTOCK非空bool字段增加默认false

temp
ddlucky 2 years ago
parent 4a36d0115e
commit bd9ceeba0f

@ -320,6 +320,6 @@ namespace VOL.Entity.DomainModels
[Display(Name = "是否条件出库")]
[Column(TypeName = "bit")]
[Editable(true)]
public bool? ISBATCHSTOCK { get; set; }
public bool? ISBATCHSTOCK { get; set; } = false;
}
}

@ -390,7 +390,7 @@ namespace VOL.Entity.DomainModels
/// </summary>
[Display(Name = "ISBATCHSTOCK")]
[Column(TypeName = "bit")]
public bool ISBATCHSTOCK { get; set; }
public bool ISBATCHSTOCK { get; set; } = false;
}
}

@ -196,7 +196,7 @@ namespace VOL.Entity.DomainModels
/// </summary>
[Display(Name = "ISBATCHSTOCK")]
[Column(TypeName = "bit")]
public bool? ISBATCHSTOCK { get; set; }
public bool? ISBATCHSTOCK { get; set; } = false;
}
}

@ -1410,7 +1410,8 @@ namespace VOL.WMS.Services
if (currhead == null || currhead.Count == 0) {
return _webResponse.Error("没有找到业务");
}
if(currhead[0].BILLSTATUS != "1003") {
if(currhead[0].BILLSTATUS == "1003") {
//已审核完成 不能重复执行
return _webResponse.Error("此状态的业务不能执行此操作,请刷新后重试");
}

@ -319,6 +319,10 @@ namespace VOL.WMS.Services
//保存到数据库前
AddOnExecuting = (OP_WMS_OUT_PLAN head, object obj) =>
{
if (head.ISBATCHSTOCK == null)
head.ISBATCHSTOCK = false;
List<OP_WMS_OUT_PLAN_DETAIL> PLANDetailList = tableExtra.Table1List;//.Select(s).ToList();
dealgoodsname(ref head, tableExtra.Table1List);
@ -615,6 +619,9 @@ namespace VOL.WMS.Services
//保存到数据库前
UpdateOnExecuting = (OP_WMS_OUT_PLAN head, object obj, object obj2, List<object> list) =>
{
if (head.ISBATCHSTOCK == null)
head.ISBATCHSTOCK = false;
if (head.ISEND == true)
{
return WebResponseContent.Instance.Error("已经执行完毕,禁止修改");

Loading…
Cancel
Save