添加字段
parent
181a5c0bb7
commit
1468e4a7af
|
@ -104,7 +104,7 @@ namespace IRaCIS.Api.Controllers
|
|||
}
|
||||
|
||||
[HttpPost, Route("ExportLaborPayment")]
|
||||
|
||||
[AllowAnonymous]
|
||||
public FileResult ExportLaborPayment(List<Guid> paymentIds)
|
||||
{
|
||||
|
||||
|
|
Binary file not shown.
|
@ -45,6 +45,8 @@ namespace IRaCIS.Application.ViewModels
|
|||
|
||||
public decimal AdjustPaymentUSD { get; set; }
|
||||
public decimal TotalPaymentUSD { get; set; }
|
||||
|
||||
public PaymentMethod PaymentMethod { get; set; }
|
||||
}
|
||||
|
||||
public class PaymentCommand
|
||||
|
|
|
@ -123,7 +123,7 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
TotalPaymentCNY = monthlyPayment.AdjustmentCNY + monthlyPayment.PaymentCNY,
|
||||
TotalPaymentUSD = monthlyPayment.AdjustmentUSD + monthlyPayment.PaymentUSD,
|
||||
|
||||
PaymentMethod= monthlyPayment.PaymentMethod,
|
||||
|
||||
Code = doctor.Code,
|
||||
FirstName = doctor.FirstName,
|
||||
|
@ -1207,6 +1207,17 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
public Stream ExportLaborPayment(List<Guid> paymentIds)
|
||||
{
|
||||
|
||||
if (!System.IO.Directory.Exists("./file"))
|
||||
{
|
||||
System.IO.Directory.CreateDirectory("./file");
|
||||
}
|
||||
|
||||
if (!System.IO.Directory.Exists("./Zip"))
|
||||
{
|
||||
System.IO.Directory.CreateDirectory("./Zip");
|
||||
}
|
||||
|
||||
List<LaborPayment> laborPaymentList = GetLaborPaymentList(paymentIds);
|
||||
|
||||
//报酬
|
||||
|
|
Loading…
Reference in New Issue