Pārlūkot izejas kodu

维修处理在服务端控制维修人不能为空

塔里木分支
北京泉江 pirms 1 gada
vecāks
revīzija
0ad3153dbd
2 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportStudentApi.cs
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportTeacherApi.cs

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportStudentApi.cs Parādīt failu

@@ -102,6 +102,7 @@ namespace Learun.Application.WebApi

RepairReport_StudentEntity entity = parameter.strEntity.ToObject<RepairReport_StudentEntity>();
if (string.IsNullOrWhiteSpace(entity.Contact)) return Fail("联系电话不能为空!");
if(entity.Status==2 && string.IsNullOrWhiteSpace(entity.Repairname)) return Fail("维修人不能为空!");
repairreportStudentIBLL.SaveEntity(parameter.keyValue, entity);
//entity.Status = 2;
if (entity.Status == 2)


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportTeacherApi.cs Parādīt failu

@@ -102,6 +102,7 @@ namespace Learun.Application.WebApi

RepairReport_TeacherEntity entity = parameter.strEntity.ToObject<RepairReport_TeacherEntity>();
if (string.IsNullOrWhiteSpace(entity.Contact)) return Fail("联系电话不能为空!");
if (entity.Status == 2 && string.IsNullOrWhiteSpace(entity.Repairname)) return Fail("维修人不能为空!");
repairreportTeacherIBLL.SaveEntity(parameter.keyValue, entity);
//entity.Status = 2;
if (entity.Status == 2)


Notiek ielāde…
Atcelt
Saglabāt