2023-10-24-管道介质导入修改
This commit is contained in:
parent
3e628692e3
commit
bfac17892f
|
|
@ -418,17 +418,12 @@ namespace FineUIPro.Web.HJGL.BaseInfo
|
|||
for (int i = 0; i < a; i++)
|
||||
{
|
||||
var isExistMediumCode = Funs.DB.Base_Medium.FirstOrDefault(x => (x.MediumId != MediumList[i].MediumId || (MediumList[i].MediumId == null && x.MediumId != null)) && x.MediumCode == MediumList[i].MediumCode && x.ProjectId == this.CurrUser.LoginProjectId);
|
||||
var isExistMediumName = Funs.DB.Base_Medium.FirstOrDefault(x => (x.MediumId != MediumList[i].MediumId || (MediumList[i].MediumId == null && x.MediumId != null)) && x.MediumName == MediumList[i].MediumName && x.ProjectId == this.CurrUser.LoginProjectId);
|
||||
// var isExistMediumName = Funs.DB.Base_Medium.FirstOrDefault(x => (x.MediumId != MediumList[i].MediumId || (MediumList[i].MediumId == null && x.MediumId != null)) && x.MediumName == MediumList[i].MediumName && x.ProjectId == this.CurrUser.LoginProjectId);
|
||||
if (isExistMediumCode != null)
|
||||
{
|
||||
ShowNotify("存在相同批次的介质代号,请修正后重新提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else if (isExistMediumName != null)
|
||||
{
|
||||
ShowNotify("存在相同批次的介质名称,请修正后重新提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.Base_Medium newMedium = new Model.Base_Medium
|
||||
|
|
|
|||
Loading…
Reference in New Issue