|
|
@@ -127,7 +127,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
public ActionResult SaveForm(string keyValue, string strEntity) |
|
|
|
{ |
|
|
|
ScholarshipEntity entity = strEntity.ToObject<ScholarshipEntity>(); |
|
|
|
var Lists = scholarshipIBLL.NameOrCode(entity.ItemName, entity.ItemCode, entity.IsValid); |
|
|
|
var Lists = scholarshipIBLL.NameOrCode(entity.ItemName, entity.ItemCode, entity.IsType); |
|
|
|
if (string.IsNullOrEmpty(keyValue)) |
|
|
|
{ |
|
|
|
if (Lists != null) |
|
|
@@ -137,7 +137,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if (!Lists.Id.Contains(keyValue)) |
|
|
|
if (Lists != null && !Lists.Id.Equals(keyValue)) |
|
|
|
{ |
|
|
|
return Fail("添加失败!名称或编码已存在"); |
|
|
|
} |
|
|
|