Commit b8c28b86 by lcx

Merge branch 'develop' into feature/绩效汇报表

parents cc35fa85 67cd1fcb
...@@ -54,7 +54,7 @@ public static void AddOrUpdate(this Dictionary<string, object> keyValues, string ...@@ -54,7 +54,7 @@ public static void AddOrUpdate(this Dictionary<string, object> keyValues, string
if (default(KeyValuePair<string, object>).Equals(pair)) if (default(KeyValuePair<string, object>).Equals(pair))
keyValues.Add(key, value); keyValues.Add(key, value);
else else
keyValues[key] = value; keyValues[pair.Key] = value;
} }
/// <summary> /// <summary>
......
...@@ -158,6 +158,7 @@ private void WriteDataToFile(IWorkbook workbook, per_allot allot, Dictionary<ExD ...@@ -158,6 +158,7 @@ private void WriteDataToFile(IWorkbook workbook, per_allot allot, Dictionary<ExD
WriteDataFactory factory = new WriteDataFactory(); WriteDataFactory factory = new WriteDataFactory();
var types = new List<SheetType> { SheetType.OtherIncome, SheetType.Income, SheetType.Expend, SheetType.Workload, SheetType.OtherWorkload/*, SheetType.AccountBasic*/ }; var types = new List<SheetType> { SheetType.OtherIncome, SheetType.Income, SheetType.Expend, SheetType.Workload, SheetType.OtherWorkload/*, SheetType.AccountBasic*/ };
types.AddRange(OtherConfigSheet);
decimal ratio = 60m; decimal ratio = 60m;
//string accountBasicSheetName = ""; //string accountBasicSheetName = "";
...@@ -321,5 +322,24 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re ...@@ -321,5 +322,24 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
return groupdata.ToList(); return groupdata.ToList();
} }
private readonly List<SheetType> OtherConfigSheet = new List<SheetType>
{
SheetType.AccountExtra,
SheetType.PersonExtra,
SheetType.AccountDrugAssess,
SheetType.AccountMaterialsAssess,
SheetType.AccountScoreAverage,
SheetType.AccountAdjustLaterOtherFee,
SheetType.PersonAdjustLaterOtherFee,
SheetType.BudgetRatio,
SheetType.AssessBeforeOtherFee,
SheetType.PersonOtherManagePerforFee,
SheetType.PersonAdjustLaterOtherManagePerforFee,
SheetType.PersonPostCoefficient,
SheetType.WorkloadMedicineProp,
SheetType.WorkloadCMI,
SheetType.WorkloadIncline,
};
} }
} }
...@@ -235,8 +235,9 @@ private List<ex_result> ExtractModuleData(per_allot allot, string groupName, boo ...@@ -235,8 +235,9 @@ private List<ex_result> ExtractModuleData(per_allot allot, string groupName, boo
logService.ReturnTheLog(allot.ID, groupName, 2, "提取数据", $"模块“{string.Join("、", thisModules.Select(t => t.ModuleName))}”的数据已完成提取", 1, isSingle); logService.ReturnTheLog(allot.ID, groupName, 2, "提取数据", $"模块“{string.Join("、", thisModules.Select(t => t.ModuleName))}”的数据已完成提取", 1, isSingle);
} }
catch (Exception) catch (Exception ex)
{ {
logger.LogError($"数据库“{config.DbName}”连接失败: {ex}; {Infrastructure.JsonHelper.Serialize(script)}");
logService.ReturnTheLog(allot.ID, groupName, 2, "数据库连接", $"数据库“{config.DbName}”连接失败", 3, isSingle); logService.ReturnTheLog(allot.ID, groupName, 2, "数据库连接", $"数据库“{config.DbName}”连接失败", 3, isSingle);
} }
} }
......
...@@ -19,6 +19,7 @@ public class PerSheetDataReadAccountExtra : IPerSheetDataRead ...@@ -19,6 +19,7 @@ public class PerSheetDataReadAccountExtra : IPerSheetDataRead
HeaderLastRowNum = 1, HeaderLastRowNum = 1,
HeaderFirstCellNum = 0, HeaderFirstCellNum = 0,
DataFirstRowNum = 2, DataFirstRowNum = 2,
DataFirstCellNum = 3,
TotalCellNum = 0, TotalCellNum = 0,
AccountingUnit = new List<AccountingUnit> AccountingUnit = new List<AccountingUnit>
{ {
......
...@@ -19,7 +19,7 @@ public class PerSheetDataReadPersonExtra : IPerSheetDataRead ...@@ -19,7 +19,7 @@ public class PerSheetDataReadPersonExtra : IPerSheetDataRead
HeaderLastRowNum = 1, HeaderLastRowNum = 1,
HeaderFirstCellNum = 0, HeaderFirstCellNum = 0,
DataFirstRowNum = 2, DataFirstRowNum = 2,
DataFirstCellNum = 4, DataFirstCellNum = 3,
TotalCellNum = 0, TotalCellNum = 0,
AccountingUnit = new List<AccountingUnit> AccountingUnit = new List<AccountingUnit>
{ {
......
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