master
he 2022-10-31 11:31:13 +08:00
parent 32ce9f938f
commit c3f489ece7
8 changed files with 15 additions and 10 deletions

View File

@ -1,6 +1,6 @@
{ {
"ConnectionStrings": { "ConnectionStrings": {
"RemoteNew": "Server=123.56.94.154,1433\\MSSQLSERVER;Database=IRaCIS_B;User ID=sa;Password=dev123456DEV;", "RemoteNew": "Server=123.56.94.154,1433\\MSSQLSERVER;Database=IRaCIS_P;User ID=sa;Password=dev123456DEV;",
"hang": "Server=ZHOU;Database=IRaCIS;User ID=sa;Password=sa123456;" "hang": "Server=ZHOU;Database=IRaCIS;User ID=sa;Password=sa123456;"
//"RemoteTest": "Server=123.56.181.144,14333\\MSSQLExpress14;Database=IRaCIS_B;User ID=sa;Password=dev123456DEV;" //"RemoteTest": "Server=123.56.181.144,14333\\MSSQLExpress14;Database=IRaCIS_B;User ID=sa;Password=dev123456DEV;"
}, },

View File

@ -13,7 +13,7 @@ namespace IRaCIS.Application.ViewModels
public string FullPath => SystemConfig.RootUrl + Path; public string FullPath => SystemConfig.RootUrl + Path;
public string FileName { get; set; } = string.Empty; public string FileName { get; set; } = string.Empty;
public DateTime? CreateTime { get; set; } public DateTime? CreateTime { get; set; }
public int Language { get; set; }
} }
public class ReviewerAckDTO public class ReviewerAckDTO

View File

@ -25,7 +25,7 @@ namespace IRaCIS.Application.ViewModels.Pay
public decimal PaymentUSD { get; set; } public decimal PaymentUSD { get; set; }
public decimal PaymentCNY { get; set; } public decimal PaymentCNY { get; set; }
public bool? IsNewTrial { get; set; } //public bool? IsNewTrial { get; set; }
//public decimal? NewPersonalAdditional { get; set; } //public decimal? NewPersonalAdditional { get; set; }

View File

@ -101,14 +101,14 @@ namespace IRaCIS.Application.ViewModels
{ {
get get
{ {
return this.Row.Sum(x => x.PaymentUSD); return this.Row.Sum(x => x.TotalPaymentUSD);
} }
} }
public decimal SumPaymentCNY { public decimal SumPaymentCNY {
get get
{ {
return this.Row.Sum(x => x.PaymentCNY); return this.Row.Sum(x => x.TotalPaymentCNY);
} }
} }
} }

View File

@ -814,6 +814,10 @@ namespace IRaCIS.Application.Services
//payment.BankTransferCNY = bankTransferCNY; //payment.BankTransferCNY = bankTransferCNY;
payment.YearMonthDate = DateTime.Parse(payment.YearMonth); payment.YearMonthDate = DateTime.Parse(payment.YearMonth);
var lastpayment = _paymentRepository.GetAll().Where(x => x.DoctorId == addOrUpdateModel.DoctorId && x.YearMonthDate == payment.YearMonthDate.AddMonths(-1)).FirstOrDefault();
payment.PaymentMethod = lastpayment == null ? PaymentMethod.CloudPayment : lastpayment.PaymentMethod;
payment = _paymentRepository.Add(payment); payment = _paymentRepository.Add(payment);
success = _paymentRepository.SaveChanges(); success = _paymentRepository.SaveChanges();
return ResponseOutput.Result(success, payment.Id); return ResponseOutput.Result(success, payment.Id);

View File

@ -239,9 +239,9 @@ namespace IRaCIS.Application.Services
//费用调整 //费用调整
//_payAdjustmentRepository.Where(t => t.YearMonth == yearMonthStr && t.ReviewerId == reviewerId) //_payAdjustmentRepository.Where(t => t.YearMonth == yearMonthStr && t.ReviewerId == reviewerId)
var adjList = var adjList =
(from costAdjustment in _payAdjustmentRepository.GetAll().Where(t => t.YearMonth == yearMonthStr && t.ReviewerId == paymentId) (from costAdjustment in _payAdjustmentRepository.GetAll().Where(t => t.YearMonth == yearMonthStr && t.ReviewerId == reviewerId)
join enroll in _enrollRepository.GetAll()on new { costAdjustment.ReviewerId, costAdjustment.TrialId } equals new { ReviewerId = enroll.DoctorId, enroll.TrialId } //join enroll in _enrollRepository.GetAll()on new { costAdjustment.ReviewerId, costAdjustment.TrialId } equals new { ReviewerId = enroll.DoctorId, enroll.TrialId }
join price in _TrialPaymentPriceRepository.GetAll() on costAdjustment.TrialId equals price.TrialId //join price in _TrialPaymentPriceRepository.GetAll() on costAdjustment.TrialId equals price.TrialId
select new PaymentDetailDTO() select new PaymentDetailDTO()
@ -258,7 +258,7 @@ namespace IRaCIS.Application.Services
AdjustPaymentCNY = costAdjustment.AdjustmentCNY, AdjustPaymentCNY = costAdjustment.AdjustmentCNY,
Note = costAdjustment.Note Note = costAdjustment.Note
}, },
IsNewTrial = price.IsNewTrial, //IsNewTrial = price.IsNewTrial,
//NewPersonalAdditional = enroll.AdjustmentMultiple, //NewPersonalAdditional = enroll.AdjustmentMultiple,
}).ToList(); }).ToList();
@ -1348,7 +1348,7 @@ namespace IRaCIS.Application.Services
var summaryPaymentPath = Path.Combine(Directory.GetCurrentDirectory(), @"wwwroot\Template\Payment Summary.xlsx"); var summaryPaymentPath = Path.Combine(Directory.GetCurrentDirectory(), @"wwwroot\Template\Payment Summary.xlsx");
var sumData = GetMonthlyPaymentList(new MonthlyPaymentQueryDTO() var sumData = GetMonthlyPaymentList(new MonthlyPaymentQueryDTO()
{ {
PageIndex = 1, PageIndex = 1,

View File

@ -26,6 +26,7 @@ namespace IRaCIS.Core.Domain.Models
public DateTime CreateTime { get; set; } public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; } = Guid.Empty; public Guid CreateUserId { get; set; } = Guid.Empty;
public int Language { get; set; }
//public Guid CreateUserId { get; set; } = Guid.Empty; //public Guid CreateUserId { get; set; } = Guid.Empty;
//public DateTime? CreateTime { get; set; } //public DateTime? CreateTime { get; set; }
} }