修改编辑唯一值卡控
This commit is contained in:
parent
18828632bc
commit
06e4c1a31c
|
|
@ -79,7 +79,7 @@ namespace iMES.Custom.Services
|
||||||
UpdateOnExecuting = (Base_WorkShop workShop, object addList, object updateList, List<object> delKeys) =>
|
UpdateOnExecuting = (Base_WorkShop workShop, object addList, object updateList, List<object> delKeys) =>
|
||||||
{
|
{
|
||||||
//如果返回false,后面代码不会再执行
|
//如果返回false,后面代码不会再执行
|
||||||
if (repository.Exists(x => x.WorkShopCode == workShop.WorkShopCode))
|
if (repository.Exists(x => x.WorkShopCode == workShop.WorkShopCode && x.WorkShopId != workShop.WorkShopId))
|
||||||
{
|
{
|
||||||
return webResponse.Error("车间编号已存在");
|
return webResponse.Error("车间编号已存在");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue