Commit 7ffa0d8c by lcx

抽取修改

parent ffd4feff
...@@ -185,11 +185,11 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest ...@@ -185,11 +185,11 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest
if (!string.IsNullOrEmpty(message)) if (!string.IsNullOrEmpty(message))
return new ApiResponse(ResponseType.Fail, message); return new ApiResponse(ResponseType.Fail, message);
if (!string.IsNullOrEmpty(filePath)) //if (!string.IsNullOrEmpty(filePath))
{ //{
var data = configService.CheckHasNewDepartmentOrCategory(request.AllotId); // var data = configService.CheckHasNewDepartmentOrCategory(request.AllotId);
return new ApiResponse(ResponseType.Fail, message); // return new ApiResponse(ResponseType.Fail, data);
} //}
//检验科室、费用类型是否需要补充 //检验科室、费用类型是否需要补充
......
...@@ -808,6 +808,9 @@ ...@@ -808,6 +808,9 @@
<member name="F:Performance.DtoModels.SheetType.WorkloadIncline"> <member name="F:Performance.DtoModels.SheetType.WorkloadIncline">
<summary> 工作量倾斜系数 </summary> <summary> 工作量倾斜系数 </summary>
</member> </member>
<member name="F:Performance.DtoModels.SheetType.Assess">
<summary> 考核 </summary>
</member>
<member name="T:Performance.DtoModels.AccountUnitType"> <member name="T:Performance.DtoModels.AccountUnitType">
<summary> <summary>
核算单元类型 核算单元类型
......
...@@ -11,32 +11,41 @@ public enum ExcelVersion ...@@ -11,32 +11,41 @@ public enum ExcelVersion
xls xls
} }
/// <summary> 核算单元类型 </summary> /// <summary> 核算单元类型 </summary>
public enum UnitType public enum UnitType
{ {
[Description("医生组")] [Description("医生组")]
医生组 = 1, 医生组 = 1,
[Description("护理组")] [Description("护理组")]
护理组 = 2, 护理组 = 2,
[Description("医技组")] [Description("医技组")]
医技组 = 3, 医技组 = 3,
[Description("专家组")] [Description("专家组")]
专家组 = 4, 专家组 = 4,
//[Description("其他")] //[Description("其他")]
//其他 = 5, //其他 = 5,
[Description("特殊核算组")] [Description("特殊核算组")]
特殊核算组 = 6, 特殊核算组 = 6,
[Description("其他医生组")] [Description("其他医生组")]
其他医生组 = 7, 其他医生组 = 7,
[Description("其他护理组")] [Description("其他护理组")]
其他护理组 = 8, 其他护理组 = 8,
[Description("其他医技组")] [Description("其他医技组")]
其他医技组 = 9, 其他医技组 = 9,
[Description("行政高层")] [Description("行政高层")]
行政高层 = 10, 行政高层 = 10,
[Description("行政中层")] [Description("行政中层")]
行政中层 = 11, 行政中层 = 11,
[Description("行政后勤")] [Description("行政后勤")]
行政后勤 = 12, 行政后勤 = 12,
} }
...@@ -46,27 +55,35 @@ public enum SheetType ...@@ -46,27 +55,35 @@ public enum SheetType
/// <summary> 无法识别 </summary> /// <summary> 无法识别 </summary>
[Description("无法识别")] [Description("无法识别")]
Unidentifiable = 1, Unidentifiable = 1,
/// <summary> 行政中高层 </summary> /// <summary> 行政中高层 </summary>
[Description("行政中高层")] [Description("行政中高层")]
Employee = 2, Employee = 2,
/// <summary> 收入 </summary> /// <summary> 收入 </summary>
[Description("收入")] [Description("收入")]
Income = 3, Income = 3,
/// <summary> 其他收入 </summary> /// <summary> 其他收入 </summary>
[Description("其他收入")] [Description("其他收入")]
OtherIncome = 4, OtherIncome = 4,
/// <summary> 支出 </summary> /// <summary> 支出 </summary>
[Description("支出")] [Description("支出")]
Expend = 5, Expend = 5,
/// <summary> 加班 </summary> /// <summary> 加班 </summary>
[Description("加班")] [Description("加班")]
Overtime = 6, Overtime = 6,
/// <summary> 工作量 </summary> /// <summary> 工作量 </summary>
[Description("工作量")] [Description("工作量")]
Workload = 7, Workload = 7,
/// <summary> 特殊核算单元 </summary> /// <summary> 特殊核算单元 </summary>
[Description("特殊核算单元")] [Description("特殊核算单元")]
SpecialUnit = 8, SpecialUnit = 8,
/// <summary> 临床科室医护绩效测算基础 </summary> /// <summary> 临床科室医护绩效测算基础 </summary>
[Description("临床科室医护绩效测算基础")] [Description("临床科室医护绩效测算基础")]
AccountBasic = 9, AccountBasic = 9,
...@@ -74,15 +91,19 @@ public enum SheetType ...@@ -74,15 +91,19 @@ public enum SheetType
/// <summary> 科室经济核算汇总表 </summary> /// <summary> 科室经济核算汇总表 </summary>
[Description("科室经济核算汇总表")] [Description("科室经济核算汇总表")]
ComputeEconomic = 10, ComputeEconomic = 10,
/// <summary> 医生工作量计算 </summary> /// <summary> 医生工作量计算 </summary>
[Description("医生工作量计算")] [Description("医生工作量计算")]
ComputeDoctorWorkload = 11, ComputeDoctorWorkload = 11,
/// <summary> 护士工作量计算 </summary> /// <summary> 护士工作量计算 </summary>
[Description("护士工作量计算")] [Description("护士工作量计算")]
ComputeNurseWorkload = 12, ComputeNurseWorkload = 12,
/// <summary> 临床科室医生绩效测算表 </summary> /// <summary> 临床科室医生绩效测算表 </summary>
[Description("临床科室医生绩效测算表")] [Description("临床科室医生绩效测算表")]
ComputeDoctorAccount = 13, ComputeDoctorAccount = 13,
/// <summary> 临床科室护士绩效测算表 </summary> /// <summary> 临床科室护士绩效测算表 </summary>
[Description("临床科室护士绩效测算表")] [Description("临床科室护士绩效测算表")]
ComputeNurseAccount = 14, ComputeNurseAccount = 14,
...@@ -115,7 +136,6 @@ public enum SheetType ...@@ -115,7 +136,6 @@ public enum SheetType
[Description("行政后勤")] [Description("行政后勤")]
LogisticsEmployee = 21, LogisticsEmployee = 21,
/// <summary> 科室考核 </summary> /// <summary> 科室考核 </summary>
[Description("科室考核")] [Description("科室考核")]
AccountScoreAverage = 25, AccountScoreAverage = 25,
...@@ -132,33 +152,41 @@ public enum SheetType ...@@ -132,33 +152,41 @@ public enum SheetType
[Description("其他工作量")] [Description("其他工作量")]
OtherWorkload = 28, OtherWorkload = 28,
/// <summary> 预算比例 </summary> /// <summary> 预算比例 </summary>
[Description("预算比例")] [Description("预算比例")]
BudgetRatio = 30, BudgetRatio = 30,
/// <summary> 科室考核前其他绩效 </summary> /// <summary> 科室考核前其他绩效 </summary>
[Description("科室考核前其他绩效")] [Description("科室考核前其他绩效")]
AssessBeforeOtherFee = 31, AssessBeforeOtherFee = 31,
/// <summary> 其他管理绩效 </summary> /// <summary> 其他管理绩效 </summary>
[Description("其他管理绩效")] [Description("其他管理绩效")]
PersonOtherManagePerforFee = 32, PersonOtherManagePerforFee = 32,
/// <summary> 调节后其他管理绩效 </summary> /// <summary> 调节后其他管理绩效 </summary>
[Description("调节后其他管理绩效")] [Description("调节后其他管理绩效")]
PersonAdjustLaterOtherManagePerforFee = 33, PersonAdjustLaterOtherManagePerforFee = 33,
/// <summary> 个人岗位系数 </summary> /// <summary> 个人岗位系数 </summary>
[Description("个人岗位系数")] [Description("个人岗位系数")]
PersonPostCoefficient = 34, PersonPostCoefficient = 34,
/// <summary> 药占比系数 </summary> /// <summary> 药占比系数 </summary>
[Description("药占比系数")] [Description("药占比系数")]
WorkloadMedicineProp = 35, WorkloadMedicineProp = 35,
/// <summary> CMI系数 </summary> /// <summary> CMI系数 </summary>
[Description("CMI系数")] [Description("CMI系数")]
WorkloadCMI = 36, WorkloadCMI = 36,
/// <summary> 工作量倾斜系数 </summary> /// <summary> 工作量倾斜系数 </summary>
[Description("工作量倾斜系数")] [Description("工作量倾斜系数")]
WorkloadIncline = 37, WorkloadIncline = 37,
/// <summary> 考核 </summary>
[Description("考核")]
Assess = 38, //该参数作用类似于 其他工作量
} }
/// <summary> /// <summary>
...@@ -169,18 +197,23 @@ public enum AccountUnitType ...@@ -169,18 +197,23 @@ public enum AccountUnitType
/// <summary> </summary> /// <summary> </summary>
[Description("")] [Description("")]
Null = 1, Null = 1,
/// <summary> 临床科室 </summary> /// <summary> 临床科室 </summary>
[Description("科主任")] [Description("科主任")]
科主任 = 2, 科主任 = 2,
/// <summary> 临床科室 </summary> /// <summary> 临床科室 </summary>
[Description("护士长")] [Description("护士长")]
护士长 = 3, 护士长 = 3,
/// <summary> 行政高层 </summary> /// <summary> 行政高层 </summary>
[Description("行政高层")] [Description("行政高层")]
行政高层 = 4, 行政高层 = 4,
/// <summary> 临床科室 </summary> /// <summary> 临床科室 </summary>
[Description("行政中层")] [Description("行政中层")]
行政中层 = 5, 行政中层 = 5,
/// <summary> 临床科室 </summary> /// <summary> 临床科室 </summary>
[Description("行政工勤")] [Description("行政工勤")]
行政工勤 = 6, 行政工勤 = 6,
...@@ -190,30 +223,43 @@ public enum PerforType ...@@ -190,30 +223,43 @@ public enum PerforType
{ {
[Description("临床科室主任人均绩效")] [Description("临床科室主任人均绩效")]
临床主任, 临床主任,
[Description("临床科室副主任人均绩效")] [Description("临床科室副主任人均绩效")]
临床副主任, 临床副主任,
[Description("医技科室主任人均绩效")] [Description("医技科室主任人均绩效")]
医技主任, 医技主任,
[Description("医技科室副主任人均绩效")] [Description("医技科室副主任人均绩效")]
医技副主任, 医技副主任,
[Description("护士长人均绩效")] [Description("护士长人均绩效")]
护士长, 护士长,
[Description("护士人均绩效")] [Description("护士人均绩效")]
护士, 护士,
[Description("临床主任护士长平均")] [Description("临床主任护士长平均")]
临床主任护士长平均, 临床主任护士长平均,
[Description("临床主任医技主任护士长平均")] [Description("临床主任医技主任护士长平均")]
临床主任医技主任护士长平均, 临床主任医技主任护士长平均,
[Description("临床医生人均绩效")] [Description("临床医生人均绩效")]
临床医生, 临床医生,
[Description("医技医生人均绩效")] [Description("医技医生人均绩效")]
医技医生, 医技医生,
[Description("行政高层人均绩效")] [Description("行政高层人均绩效")]
行政高层, 行政高层,
[Description("行政中层人均绩效")] [Description("行政中层人均绩效")]
行政中层, 行政中层,
[Description("行政工勤人均绩效")] [Description("行政工勤人均绩效")]
行政工勤, 行政工勤,
[Description("医生护士平均绩效")] [Description("医生护士平均绩效")]
医生护士平均, 医生护士平均,
} }
...@@ -225,12 +271,16 @@ public enum MinimumType ...@@ -225,12 +271,16 @@ public enum MinimumType
{ {
[Description("保底绩效临床医生人均绩效")] [Description("保底绩效临床医生人均绩效")]
保底临床医生 = 1, 保底临床医生 = 1,
[Description("保底绩效医技医生人均绩效")] [Description("保底绩效医技医生人均绩效")]
保底医技医生 = 2, 保底医技医生 = 2,
[Description("保底绩效护士人均绩效")] [Description("保底绩效护士人均绩效")]
保底护士 = 3, 保底护士 = 3,
[Description("保底绩效行政工勤人均绩效")] [Description("保底绩效行政工勤人均绩效")]
保底工勤 = 4, 保底工勤 = 4,
[Description("自定义保底绩效")] [Description("自定义保底绩效")]
自定义保底 = 5, 自定义保底 = 5,
} }
......
...@@ -672,8 +672,8 @@ public string Judge(int allotId, int hospitalId, int useTemplate, ref bool isSin ...@@ -672,8 +672,8 @@ public string Judge(int allotId, int hospitalId, int useTemplate, ref bool isSin
var hospitalconfigs = hospitalconfigRepository.GetEntities(t => modDics.Select(s => s.ConfigId).Distinct().Contains(t.Id)); var hospitalconfigs = hospitalconfigRepository.GetEntities(t => modDics.Select(s => s.ConfigId).Distinct().Contains(t.Id));
if (hospitalconfigs == null || !hospitalconfigs.Any()) return null; if (hospitalconfigs == null || !hospitalconfigs.Any()) return null;
var sheets = persheetRepository.GetEntities(t => t.AllotID == prevAllot.ID && t.SheetType == (int)SheetType.Income); var sheets = persheetRepository.GetEntities(t => t.AllotID == prevAllot.ID && t.SheetType == (int)SheetType.Income) ?? new List<per_sheet>();
var importdata = imdataRepository.GetEntities(t => sheets.Select(s => s.ID).Contains(t.SheetID.Value)); var importdata = imdataRepository.GetEntities(t => sheets.Select(s => s.ID).Contains(t.SheetID.Value)) ?? new List<im_data>();
Dictionary<string, object> paramtemers = new Dictionary<string, object>(); Dictionary<string, object> paramtemers = new Dictionary<string, object>();
foreach (var dic in modDics) foreach (var dic in modDics)
......
...@@ -68,7 +68,7 @@ public static void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook wo ...@@ -68,7 +68,7 @@ public static void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook wo
} }
} }
foreach (var module in modulesList.Where(t => new int[] { (int)SheetType.OtherWorkload, (int)SheetType.AccountDrugAssess, (int)SheetType.AccountMaterialsAssess } foreach (var module in modulesList.Where(t => new int[] { (int)SheetType.OtherWorkload, (int)SheetType.Assess }
.Contains(t.SheetType.Value))?.OrderBy(t => t.ModuleName)) .Contains(t.SheetType.Value))?.OrderBy(t => t.ModuleName))
{ {
var sheet = workbook.GetSheet(module.ModuleName) ?? workbook.GetSheet(module.ModuleName.NoBlank()); var sheet = workbook.GetSheet(module.ModuleName) ?? workbook.GetSheet(module.ModuleName.NoBlank());
...@@ -142,8 +142,10 @@ public static void ClearSheetTemplate(ISheet sheet, PerSheetPoint point, SheetTy ...@@ -142,8 +142,10 @@ public static void ClearSheetTemplate(ISheet sheet, PerSheetPoint point, SheetTy
if (!new SheetType[] { SheetType.Workload, SheetType.OtherWorkload }.Contains(sheetType)) if (!new SheetType[] { SheetType.Workload, SheetType.OtherWorkload }.Contains(sheetType))
{ {
var row = sheet.GetRow(point.DataFirstRowNum.Value - 1); var row = sheet.GetRow(0);
if (row != null) sheet.RemoveRow(row); if (row != null) sheet.RemoveRow(row);
sheet.ShiftRows(point.DataFirstRowNum.Value, sheet.LastRowNum + 1, -1);
} }
} }
......
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