Commit 5cf63845 by lcx

Merge tag '银行卡号' into develop

# Conflicts:
#	performance/Performance.Services/ComputeService.cs
parents bbfd60a6 0dfb30cc
...@@ -309,6 +309,7 @@ public ApiResponse AllComputeByPM([FromBody] ComputerRequest request) ...@@ -309,6 +309,7 @@ public ApiResponse AllComputeByPM([FromBody] ComputerRequest request)
RealGiveFee = t.Sum(s => s.RealGiveFee), RealGiveFee = t.Sum(s => s.RealGiveFee),
ReservedRatio = t.Sum(s => s.ReservedRatio), ReservedRatio = t.Sum(s => s.ReservedRatio),
ReservedRatioFee = t.Sum(s => s.ReservedRatioFee), ReservedRatioFee = t.Sum(s => s.ReservedRatioFee),
BankCard = t.FirstOrDefault()?.BankCard
}).OrderBy(t => }).OrderBy(t =>
{ {
string value = t.JobNumber; string value = t.JobNumber;
......
...@@ -2915,6 +2915,11 @@ ...@@ -2915,6 +2915,11 @@
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.ComputeResponse.BankCard">
<summary>
银行卡号
</summary>
</member>
<member name="P:Performance.DtoModels.DeptDataDetails`1.Pandect"> <member name="P:Performance.DtoModels.DeptDataDetails`1.Pandect">
<summary> 概览</summary> <summary> 概览</summary>
</member> </member>
......
...@@ -4976,6 +4976,11 @@ ...@@ -4976,6 +4976,11 @@
预留比例 预留比例
</summary> </summary>
</member> </member>
<member name="P:Performance.EntityModels.per_employee.BankCard">
<summary>
银行卡号
</summary>
</member>
<member name="P:Performance.EntityModels.per_employee.Remark"> <member name="P:Performance.EntityModels.per_employee.Remark">
<summary> <summary>
备注 备注
......
...@@ -103,5 +103,10 @@ public ComputeResponse(string source, string accountingUnit, string employeeName ...@@ -103,5 +103,10 @@ public ComputeResponse(string source, string accountingUnit, string employeeName
/// ///
/// </summary> /// </summary>
public Nullable<decimal> AdjustLaterOtherFee { get; set; } public Nullable<decimal> AdjustLaterOtherFee { get; set; }
/// <summary>
/// 银行卡号
/// </summary>
public string BankCard { get; set; }
} }
} }
...@@ -115,7 +115,12 @@ public class per_employee ...@@ -115,7 +115,12 @@ public class per_employee
/// 预留比例 /// 预留比例
/// </summary> /// </summary>
public Nullable<decimal> ReservedRatio { get; set; } public Nullable<decimal> ReservedRatio { get; set; }
/// <summary>
/// 银行卡号
/// </summary>
public string BankCard { get; set; }
/// <summary> /// <summary>
/// 备注 /// 备注
/// </summary> /// </summary>
......
...@@ -756,6 +756,7 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM ...@@ -756,6 +756,7 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
item.RealGiveFee = Math.Round(item.ShouldGiveFee - (item.ReservedRatioFee ?? 0) ?? 0, 2, MidpointRounding.AwayFromZero); item.RealGiveFee = Math.Round(item.ShouldGiveFee - (item.ReservedRatioFee ?? 0) ?? 0, 2, MidpointRounding.AwayFromZero);
// 姓名始终按人员字典显示 // 姓名始终按人员字典显示
item.EmployeeName = employees?.FirstOrDefault(w => w.PersonnelNumber == item.JobNumber)?.DoctorName ?? ""; item.EmployeeName = employees?.FirstOrDefault(w => w.PersonnelNumber == item.JobNumber)?.DoctorName ?? "";
item.BankCard = employees?.FirstOrDefault(w => w.PersonnelNumber == item.JobNumber)?.BankCard ?? "";
// 人员信息使用人员字典中数据 // 人员信息使用人员字典中数据
if (isEmpDic) if (isEmpDic)
{ {
......
...@@ -93,6 +93,8 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1 ...@@ -93,6 +93,8 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1
{ {
var entity = new per_employee var entity = new per_employee
{ {
HospitalId = t.HospitalId,
AllotId = allotId,
AccountingUnit = t.AccountingUnit, AccountingUnit = t.AccountingUnit,
Department = t.Department, Department = t.Department,
DoctorName = t.DoctorName, DoctorName = t.DoctorName,
...@@ -107,10 +109,9 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1 ...@@ -107,10 +109,9 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1
WorkTime = t.WorkTime, WorkTime = t.WorkTime,
BirthDate = t.BirthDate, BirthDate = t.BirthDate,
Age = t.Age, Age = t.Age,
Remark = t.Remark,
HospitalId = t.HospitalId,
AllotId = allotId,
ReservedRatio = t.ReservedRatio, ReservedRatio = t.ReservedRatio,
BankCard = t.BankCard,
Remark = t.Remark,
CreateTime = DateTime.Now, CreateTime = DateTime.Now,
}; };
if (!string.IsNullOrEmpty(t.PersonnelNumber) && !string.IsNullOrEmpty(t.JobNumber)) if (!string.IsNullOrEmpty(t.PersonnelNumber) && !string.IsNullOrEmpty(t.JobNumber))
...@@ -246,10 +247,12 @@ public bool UpdatePerson(PerEmployeeResponse request) ...@@ -246,10 +247,12 @@ public bool UpdatePerson(PerEmployeeResponse request)
employee.WorkTime = request.WorkTime == null ? null : ConvertHelper.To<DateTime?>(request.WorkTime); employee.WorkTime = request.WorkTime == null ? null : ConvertHelper.To<DateTime?>(request.WorkTime);
employee.BirthDate = request.BirthDate == null ? null : ConvertHelper.To<DateTime?>(request.BirthDate); employee.BirthDate = request.BirthDate == null ? null : ConvertHelper.To<DateTime?>(request.BirthDate);
employee.Age = request.Age; employee.Age = request.Age;
employee.BankCard = request.BankCard;
employee.Remark = request.Remark; employee.Remark = request.Remark;
employee.EfficiencyNumber = request.EfficiencyNumber; employee.EfficiencyNumber = request.EfficiencyNumber;
employee.PermanentStaff = request.PermanentStaff; employee.PermanentStaff = request.PermanentStaff;
employee.AttendanceDay = request.AttendanceDay; employee.AttendanceDay = request.AttendanceDay;
employee.ReservedRatio = request.ReservedRatio;
// 出勤率 // 出勤率
var allot = perallotRepository.GetEntity(t => t.ID == request.AllotId); var allot = perallotRepository.GetEntity(t => t.ID == request.AllotId);
......
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