Explorar el Código

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

塔里木分支
北京泉江 hace 1 año
padre
commit
0ad3153dbd
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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)


Cargando…
Cancelar
Guardar