|
|
|
@ -125,10 +125,10 @@ namespace Shentun.Peis.InternalReports |
|
|
|
AsbitemName = s.FirstOrDefault().AsbitemName, |
|
|
|
CheckCount = s.Count(), |
|
|
|
DoctorName = s.FirstOrDefault().DoctorName, |
|
|
|
AvgChargePrice = Math.Round(s.Average(v => v.a.ChargePrice.Value), 2), |
|
|
|
AvgStandardPrice = Math.Round(s.Average(v => v.a.StandardPrice.Value), 2), |
|
|
|
SumChargePrice = Math.Round(s.Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value), 2), |
|
|
|
SumStandardPrice = Math.Round(s.Sum(v => v.a.StandardPrice.Value * v.a.Amount.Value), 2) |
|
|
|
AvgChargePrice = Math.Round(s.Average(v => v.a.ChargePrice), 2), |
|
|
|
AvgStandardPrice = Math.Round(s.Average(v => v.a.StandardPrice), 2), |
|
|
|
SumChargePrice = Math.Round(s.Sum(v => v.a.ChargePrice * v.a.Amount), 2), |
|
|
|
SumStandardPrice = Math.Round(s.Sum(v => v.a.StandardPrice * v.a.Amount), 2) |
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
@ -260,10 +260,10 @@ namespace Shentun.Peis.InternalReports |
|
|
|
AsbitemName = s.First().AsbitemName, |
|
|
|
AsbitemCount = s.Count(), |
|
|
|
ItemTypeName = s.First().ItemTypeName, |
|
|
|
AvgChargePrice = Math.Round(s.Average(v => v.ChargePrice.Value), 2), |
|
|
|
AvgStandardPrice = Math.Round(s.Average(v => v.StandardPrice.Value), 2), |
|
|
|
SumChargePrice = Math.Round(s.Sum(v => v.ChargePrice.Value * v.Amount.Value), 2), |
|
|
|
SumStandardPrice = Math.Round(s.Sum(v => v.StandardPrice.Value * v.Amount.Value), 2) |
|
|
|
AvgChargePrice = Math.Round(s.Average(v => v.ChargePrice), 2), |
|
|
|
AvgStandardPrice = Math.Round(s.Average(v => v.StandardPrice), 2), |
|
|
|
SumChargePrice = Math.Round(s.Sum(v => v.ChargePrice * v.Amount), 2), |
|
|
|
SumStandardPrice = Math.Round(s.Sum(v => v.StandardPrice * v.Amount), 2) |
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
return entlist; |
|
|
|
@ -326,10 +326,10 @@ namespace Shentun.Peis.InternalReports |
|
|
|
ItemTypeName = s.First().ItemTypeName, |
|
|
|
CustomerName = s.First().CustomerName, |
|
|
|
DoctorName = s.First().DoctorName, |
|
|
|
AvgChargePrice = Math.Round(s.Average(v => v.ChargePrice.Value), 2), |
|
|
|
AvgStandardPrice = Math.Round(s.Average(v => v.StandardPrice.Value), 2), |
|
|
|
SumChargePrice = Math.Round(s.Sum(v => v.ChargePrice.Value * v.Amount.Value), 2), |
|
|
|
SumStandardPrice = Math.Round(s.Sum(v => v.StandardPrice.Value * v.Amount.Value), 2) |
|
|
|
AvgChargePrice = Math.Round(s.Average(v => v.ChargePrice), 2), |
|
|
|
AvgStandardPrice = Math.Round(s.Average(v => v.StandardPrice), 2), |
|
|
|
SumChargePrice = Math.Round(s.Sum(v => v.ChargePrice * v.Amount), 2), |
|
|
|
SumStandardPrice = Math.Round(s.Sum(v => v.StandardPrice * v.Amount), 2) |
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
return entlist; |
|
|
|
@ -385,10 +385,10 @@ namespace Shentun.Peis.InternalReports |
|
|
|
DoctorCheckCount = s.Count(), |
|
|
|
ItemTypeName = s.First().ItemTypeName, |
|
|
|
CustomerName = s.First().CustomerName, |
|
|
|
AvgChargePrice = Math.Round(s.Average(v => v.ChargePrice.Value), 2), |
|
|
|
AvgStandardPrice = Math.Round(s.Average(v => v.StandardPrice.Value), 2), |
|
|
|
SumChargePrice = Math.Round(s.Sum(v => v.ChargePrice.Value * v.Amount.Value), 2), |
|
|
|
SumStandardPrice = Math.Round(s.Sum(v => v.StandardPrice.Value * v.Amount.Value), 2) |
|
|
|
AvgChargePrice = Math.Round(s.Average(v => v.ChargePrice), 2), |
|
|
|
AvgStandardPrice = Math.Round(s.Average(v => v.StandardPrice), 2), |
|
|
|
SumChargePrice = Math.Round(s.Sum(v => v.ChargePrice * v.Amount), 2), |
|
|
|
SumStandardPrice = Math.Round(s.Sum(v => v.StandardPrice * v.Amount), 2) |
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
return entlist; |
|
|
|
@ -431,18 +431,18 @@ namespace Shentun.Peis.InternalReports |
|
|
|
.Select(s => new GetPeisWorkLoadReportDto |
|
|
|
{ |
|
|
|
AsbitemName = s.FirstOrDefault().AsbitemName, |
|
|
|
PersonCount = s.Sum(v => v.a.Amount).Value, |
|
|
|
PersonCount = s.Sum(v => v.a.Amount), |
|
|
|
RegisterName = s.FirstOrDefault().RegisterName, |
|
|
|
StandardPrice = Math.Round(s.FirstOrDefault().a.StandardPrice.Value, 2).ToString(), |
|
|
|
StandardAmount = Math.Round(s.Sum(v => v.a.StandardPrice.Value * v.a.Amount.Value), 2).ToString(), |
|
|
|
ChargeAmount = Math.Round(s.Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value), 2).ToString(), |
|
|
|
ChargePrice = Math.Round(s.Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value) / s.Sum(v => v.a.Amount).Value, 2).ToString(), |
|
|
|
PersonAmount = Math.Round(s.Where(m => m.a.PayTypeFlag == RegisterAsbitemPayTypeFlag.PersonalPayment).Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value), 2).ToString(), |
|
|
|
UnitAmount = Math.Round(s.Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value) - |
|
|
|
(s.Where(m => m.a.PayTypeFlag == RegisterAsbitemPayTypeFlag.PersonalPayment).Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value)), 2).ToString(), |
|
|
|
PersonPaidAmount = Math.Round(s.Where(m => m.a.PayTypeFlag == RegisterAsbitemPayTypeFlag.PersonalPayment && m.a.IsCharge == 'Y').Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value), 2).ToString(), |
|
|
|
PersonUnPaidAmount = Math.Round(s.Where(m => m.a.PayTypeFlag == RegisterAsbitemPayTypeFlag.PersonalPayment).Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value) |
|
|
|
- (s.Where(m => m.a.PayTypeFlag == RegisterAsbitemPayTypeFlag.PersonalPayment && m.a.IsCharge == 'Y').Sum(v => v.a.ChargePrice.Value * v.a.Amount.Value)), 2).ToString() |
|
|
|
StandardPrice = Math.Round(s.FirstOrDefault().a.StandardPrice, 2).ToString(), |
|
|
|
StandardAmount = Math.Round(s.Sum(v => v.a.StandardPrice * v.a.Amount), 2).ToString(), |
|
|
|
ChargeAmount = Math.Round(s.Sum(v => v.a.ChargePrice * v.a.Amount), 2).ToString(), |
|
|
|
ChargePrice = Math.Round(s.Sum(v => v.a.ChargePrice * v.a.Amount) / s.Sum(v => v.a.Amount), 2).ToString(), |
|
|
|
PersonAmount = Math.Round(s.Where(m => m.a.PayTypeFlag == PayTypeFlag.PersonPay).Sum(v => v.a.ChargePrice * v.a.Amount), 2).ToString(), |
|
|
|
UnitAmount = Math.Round(s.Sum(v => v.a.ChargePrice * v.a.Amount) - |
|
|
|
(s.Where(m => m.a.PayTypeFlag == PayTypeFlag.PersonPay).Sum(v => v.a.ChargePrice * v.a.Amount)), 2).ToString(), |
|
|
|
PersonPaidAmount = Math.Round(s.Where(m => m.a.PayTypeFlag == PayTypeFlag.PersonPay && m.a.IsCharge == 'Y').Sum(v => v.a.ChargePrice * v.a.Amount), 2).ToString(), |
|
|
|
PersonUnPaidAmount = Math.Round(s.Where(m => m.a.PayTypeFlag == PayTypeFlag.PersonPay).Sum(v => v.a.ChargePrice * v.a.Amount) |
|
|
|
- (s.Where(m => m.a.PayTypeFlag == PayTypeFlag.PersonPay && m.a.IsCharge == 'Y').Sum(v => v.a.ChargePrice * v.a.Amount)), 2).ToString() |
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|