医院其他绩效模板导入

parent e46be9cd
...@@ -461,7 +461,7 @@ public void ImpoerAprEmployees(int allotid, string path, int userid) ...@@ -461,7 +461,7 @@ public void ImpoerAprEmployees(int allotid, string path, int userid)
Dictionary<string, int> dict = new Dictionary<string, int> Dictionary<string, int> dict = new Dictionary<string, int>
{ {
{ "人员工号", -1 }, { "姓名", -1 }, { "绩效类型", -1 }, { "金额", -1 }, { "录入科室", -1 },{ "核算单元", -1 },{ "人员工号", -1 }, { "姓名", -1 }, { "绩效类型", -1 }, { "金额", -1 },
}; };
List<string> errorHeaders = new List<string>(); List<string> errorHeaders = new List<string>();
...@@ -485,10 +485,12 @@ public void ImpoerAprEmployees(int allotid, string path, int userid) ...@@ -485,10 +485,12 @@ public void ImpoerAprEmployees(int allotid, string path, int userid)
var entity = new per_apr_amount var entity = new per_apr_amount
{ {
PersonnelNumber = row.GetCell(dict["人员工号"])?.ToString(), PersonnelNumber = row.GetCell(dict["人员工号"]).GetValue(),
DoctorName = row.GetCell(dict["姓名"])?.ToString(), DoctorName = row.GetCell(dict["姓名"]).GetValue(),
PerforType = row.GetCell(dict["绩效类型"])?.ToString(), PerforType = row.GetCell(dict["绩效类型"]).GetValue(),
Amount = (decimal)(row.GetCell(dict["金额"])?.NumericCellValue ?? 0), Amount = ConvertHelper.To<decimal>(row.GetCell(dict["金额"]).GetValue(), 0),
TypeInDepartment = row.GetCell(dict["录入科室"]).GetValue(),
AccountingUnit = row.GetCell(dict["核算单元"]).GetValue(),
AllotId = allotid, AllotId = allotid,
CreateDate = createtime, CreateDate = createtime,
CreateUser = userid, CreateUser = userid,
......
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