Commit a15e5e62 by 李承祥

科室详情补充其他组

parent e1d3a86d
......@@ -30,7 +30,7 @@ public class DetailRequestValidator : AbstractValidator<DeptDetailRequest>
public DetailRequestValidator()
{
RuleFor(x => x.AllotId).NotNull().GreaterThan(0);
RuleFor(x => x.Type).NotNull().InclusiveBetween(1, 2);
RuleFor(x => x.Type).NotNull().InclusiveBetween(1, 5);
RuleFor(x => x.AccountID).NotNull().GreaterThan(0);
}
}
......
......@@ -318,8 +318,7 @@ public DeptDataDetails DeptDetail(int allotId, int accountId, int type)
var basicData = _perforImDataRepository.GetEntities(t => t.AllotID == allotId && t.UnitType == type && t.AccountingUnit == doctor.AccountingUnit);
var persheet = _perforPerSheetRepository.GetEntities(t => t.AllotID == allotId);
string typeValue = type == 1 ? "医生组" : "护理组";
var incomeconfs = _perforCofincomeRepository.GetEntities(t => t.UnitName == typeValue);
string typeValue = EnumHelper.GetItems<UnitType>().FirstOrDefault(t => t.Value == type).Name.ToString();
//科室经济
var sheetEconomic = persheet.FirstOrDefault(t => t.SheetType == (int)SheetType.ComputeEconomic);
......
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