微调

parent a563c58e
...@@ -20,6 +20,7 @@ public class SheetRequestValidator : AbstractValidator<SheetRequest> ...@@ -20,6 +20,7 @@ public class SheetRequestValidator : AbstractValidator<SheetRequest>
public SheetRequestValidator() public SheetRequestValidator()
{ {
RuleFor(x => x.AllotID).NotNull().GreaterThan(0); RuleFor(x => x.AllotID).NotNull().GreaterThan(0);
RuleFor(x => x.Source).NotNull().InclusiveBetween(1, 2);
} }
} }
} }
...@@ -318,7 +318,7 @@ public void Compute(per_allot allot, PerExcel excel) ...@@ -318,7 +318,7 @@ public void Compute(per_allot allot, PerExcel excel)
//取出 //取出
var doctorList = _perforResAccountdoctorRepository.GetEntities(t => t.AllotID == allot.ID); var doctorList = _perforResAccountdoctorRepository.GetEntities(t => t.AllotID == allot.ID);
ComputeDirector computeDirector = new ComputeDirector(); ComputeDirector computeDirector = new ComputeDirector();
computeDirector.Compute(empolyeeList, positionList, doctorList); computeDirector.Compute(empolyeeList, positionList, doctorList, directorList);
_perforResAccountnurseRepository.GetEntities(t => t.AllotID == allot.ID); _perforResAccountnurseRepository.GetEntities(t => t.AllotID == allot.ID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment