|
|
@@ -17,6 +17,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
public class StuTransferInfoController : MvcControllerBase |
|
|
|
{ |
|
|
|
private StuTransferInfoIBLL stuTransferInfoIBLL = new StuTransferInfoBLL(); |
|
|
|
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); |
|
|
|
|
|
|
|
#region 视图功能 |
|
|
|
|
|
|
@@ -247,6 +248,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
entity.AnomalousType = "04"; |
|
|
|
entity.ChangeReason = "转入"; |
|
|
|
entity.StuId = Guid.NewGuid().ToString(); |
|
|
|
//学生编号、学号的去重 |
|
|
|
var model = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(entity.StuNo); |
|
|
|
if (model != null) |
|
|
|
{ |
|
|
|
return Fail("学生编号已存在!"); |
|
|
|
} |
|
|
|
var model2 = stuInfoBasicIBLL.GetStuInfoBasicEntityByProvinceCode(entity.ProvinceCode); |
|
|
|
if (model2 != null) |
|
|
|
{ |
|
|
|
return Fail("学号已存在!"); |
|
|
|
} |
|
|
|
|
|
|
|
stuTransferInfoIBLL.SaveEntity(keyValue, entity); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|