Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
6e632c81
Commit
6e632c81
authored
Nov 12, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科室详情BUG修复及医院奖罚恢复
parent
95de7014
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
53 additions
and
24 deletions
+53
-24
performance/Performance.Api/Controllers/AllotController.cs
+2
-2
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+15
-0
performance/Performance.DtoModels/PerExcel/ComputeEmployee.cs
+4
-4
performance/Performance.DtoModels/PerExcel/PerDataClinicEmployee.cs
+4
-4
performance/Performance.DtoModels/PerExcel/PerDataEmployee.cs
+4
-4
performance/Performance.Services/AllotService.cs
+3
-0
performance/Performance.Services/ComputeService.cs
+13
-4
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+6
-6
performance/Performance.Services/PerExcelService/ExcelReadConfig.cs
+2
-0
No files found.
performance/Performance.Api/Controllers/AllotController.cs
View file @
6e632c81
...
...
@@ -188,8 +188,6 @@ public ApiResponse Generate([CustomizeValidator(RuleSet = "Delete"), FromBody] A
logManageService
.
WriteMsg
(
"等待绩效生成"
,
$"等待绩效生成
{
allot
.
Year
}
-
{
allot
.
Month
.
ToString
().
PadLeft
(
2
,
'0'
)}
月份绩效!"
,
1
,
allot
.
ID
,
"ReceiveMessage"
);
//_allotService.Generate(allot, email);
////BackgroundJob.Enqueue(() => _allotService.Generate(allot, email));
// 科室下发
resultComputeService
.
GenerateSecondAllot
(
allot
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
...
...
@@ -271,6 +269,8 @@ public ApiResponse Issued([FromBody] AllotRequest request)
if
(
null
==
allot
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
_allotService
.
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
GenerateSucceed
,
EnumHelper
.
GetDescription
(
AllotStates
.
GenerateSucceed
));
// 科室下发
resultComputeService
.
GenerateSecondAllot
(
allot
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
6e632c81
...
...
@@ -499,6 +499,11 @@
其他绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.ComputeEmployee.Punishment"
>
<summary>
医院奖罚
</summary>
</member>
<member
name=
"P:Performance.DtoModels.ComputeEmployee.Adjust"
>
<summary>
调节系数
...
...
@@ -1160,6 +1165,11 @@
其他绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataClinicEmployee.Punishment"
>
<summary>
医院奖罚
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataClinicEmployee.Adjust"
>
<summary>
调节系数
...
...
@@ -1250,6 +1260,11 @@
出勤率
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataEmployee.Punishment"
>
<summary>
医院奖罚
</summary>
</member>
<member
name=
"P:Performance.DtoModels.PerDataEmployee.Adjust"
>
<summary>
调节系数
...
...
performance/Performance.DtoModels/PerExcel/ComputeEmployee.cs
View file @
6e632c81
...
...
@@ -121,10 +121,10 @@ public class ComputeEmployee
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor
{
get
;
set
;
}
///
//
<summary>
///
//
医院奖罚
///
//
</summary>
//
public Nullable<decimal> Punishment { get; set; }
/// <summary>
/// 医院奖罚
/// </summary>
public
Nullable
<
decimal
>
Punishment
{
get
;
set
;
}
/// <summary>
/// 调节系数
...
...
performance/Performance.DtoModels/PerExcel/PerDataClinicEmployee.cs
View file @
6e632c81
...
...
@@ -111,10 +111,10 @@ public class PerDataClinicEmployee : IPerData
///// </summary>
//public Nullable<decimal> NightWorkPerfor { get; set; }
///
//
<summary>
///
//
医院奖罚
///
//
</summary>
//
public Nullable<decimal> Punishment { get; set; }
/// <summary>
/// 医院奖罚
/// </summary>
public
Nullable
<
decimal
>
Punishment
{
get
;
set
;
}
/// <summary>
/// 调节系数
...
...
performance/Performance.DtoModels/PerExcel/PerDataEmployee.cs
View file @
6e632c81
...
...
@@ -96,10 +96,10 @@ public class PerDataEmployee : IPerData
///// </summary>
//public Nullable<decimal> OthePerfor { get; set; }
///
//
<summary>
///
//
医院奖罚
///
//
</summary>
//
public Nullable<decimal> Punishment { get; set; }
/// <summary>
/// 医院奖罚
/// </summary>
public
Nullable
<
decimal
>
Punishment
{
get
;
set
;
}
/// <summary>
/// 调节系数
...
...
performance/Performance.Services/AllotService.cs
View file @
6e632c81
...
...
@@ -405,6 +405,9 @@ public void Generate(per_allot allot, string mail)
logManageService
.
WriteMsg
(
"正在生成绩效"
,
"保存预留绩效金额"
,
1
,
allot
.
ID
,
"ReceiveMessage"
,
true
);
resultComputeService
.
SaveReserved
(
allot
);
// 科室下发
resultComputeService
.
GenerateSecondAllot
(
allot
);
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
GenerateAccomplish
,
EnumHelper
.
GetDescription
(
AllotStates
.
GenerateAccomplish
),
generate
);
perforCofdirectorRepository
.
SupplementaryData
(
allot
.
ID
);
...
...
performance/Performance.Services/ComputeService.cs
View file @
6e632c81
...
...
@@ -755,7 +755,10 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
groupbasis
+=
1
;
single
=
sheet
.
SheetName
.
Substring
(
0
,
3
);
var
sheetName
=
new
Regex
(
"[0-9]*"
).
Replace
(
sheet
.
SheetName
,
""
,
5
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
).
Replace
(
"科室绩效"
,
""
).
Replace
(
"科室"
,
""
);
var
sheetName
=
new
Regex
(
"[0-9]*"
).
Replace
(
sheet
.
SheetName
,
""
,
5
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
);
// 只是显示好看而已
if
(
sheetName
!=
"科室考核"
)
sheetName
=
sheetName
.
Replace
(
"科室绩效"
,
""
).
Replace
(
"科室"
,
""
);
var
(
sheettype
,
amount
)
=
ClinicDepartmentDetail
(
persheet
,
account
,
basicData
,
sheet
,
type
,
sheetName
);
(
sheettype
,
amount
)
=
CommonDepartmentDetail
(
basicData
,
sheet
,
type
,
sheettype
,
amount
);
var
items
=
CommonDetailItems
(
basicData
,
headers
,
sheet
,
type
);
...
...
@@ -852,7 +855,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
SheetType
[]
pairs
=
new
SheetType
[]
{
SheetType
.
AccountDrugAssess
,
SheetType
.
AccountMaterialsAssess
,
SheetType
.
AccountScoreAverage
,
SheetType
.
AccountAdjustLaterOtherFee
,
SheetType
.
AssessBeforeOtherFee
SheetType
.
AssessBeforeOtherFee
,
SheetType
.
BudgetRatio
};
if
(
pairs
.
Contains
((
SheetType
)
sheet
.
SheetType
))
{
...
...
@@ -1052,7 +1055,10 @@ public DeptDataDetails DeptOfficeDetail(int accountId)
var
(
sheettype
,
amount
)
=
CommonDepartmentDetail
(
basicData
,
sheet
,
UnitType
.
行政后勤
);
var
items
=
CommonDetailItems
(
basicData
,
headers
,
sheet
,
UnitType
.
行政后勤
);
var
sheetName
=
new
Regex
(
"[0-9]*"
).
Replace
(
sheet
.
SheetName
,
""
,
5
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
).
Replace
(
"科室绩效"
,
""
).
Replace
(
"科室"
,
""
);
var
sheetName
=
new
Regex
(
"[0-9]*"
).
Replace
(
sheet
.
SheetName
,
""
,
5
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
);
// 只是显示好看而已
if
(
sheetName
!=
"科室考核"
)
sheetName
=
sheetName
.
Replace
(
"科室绩效"
,
""
).
Replace
(
"科室"
,
""
);
var
item
=
new
DetailDtos
{
ItemName
=
sheetName
,
IncomeType
=
sheettype
,
OriginalType
=
sheet
.
SheetType
??
0
,
Amount
=
amount
,
GroupBasis
=
groupBasis
,
Items
=
items
};
deptDetails
.
Detail
.
Add
(
item
);
}
...
...
@@ -1136,7 +1142,10 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
var
(
sheettype
,
amount
)
=
CommonDepartmentDetail
(
basicData
,
sheet
,
UnitType
.
特殊核算组
);
var
items
=
CommonDetailItems
(
basicData
,
headers
,
sheet
,
UnitType
.
特殊核算组
);
var
sheetName
=
new
Regex
(
"[0-9]*"
).
Replace
(
sheet
.
SheetName
,
""
,
5
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
).
Replace
(
"科室绩效"
,
""
).
Replace
(
"科室"
,
""
);
var
sheetName
=
new
Regex
(
"[0-9]*"
).
Replace
(
sheet
.
SheetName
,
""
,
5
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
);
// 只是显示好看而已
if
(
sheetName
!=
"科室考核"
)
sheetName
=
sheetName
.
Replace
(
"科室绩效"
,
""
).
Replace
(
"科室"
,
""
);
var
item
=
new
DetailDtos
{
ItemName
=
sheetName
,
IncomeType
=
sheettype
,
OriginalType
=
sheet
.
SheetType
??
0
,
Amount
=
amount
,
GroupBasis
=
groupBasis
,
Items
=
items
};
deptDetails
.
Detail
.
Add
(
item
);
}
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
6e632c81
...
...
@@ -405,7 +405,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
// && w.JobNumber == empolyee.JobNumber && w.EmployeeName == empolyee.DoctorName)?.TotelValue;
compute
.
Avg
=
avg
*
(
empolyee
.
Basics
??
0
)
*
compute
.
Attendance
;
compute
.
Punishment
=
0
;
compute
.
Punishment
=
(
empolyee
?.
Punishment
??
0
)
;
// 考核前管理绩效
compute
.
ShouldGiveFee
=
Math
.
Round
((
compute
.
Efficiency
+
compute
.
Scale
)
*
compute
.
Grant
+
compute
.
OtherManagePerfor
??
0
);
// 考核后管理绩效
...
...
@@ -481,11 +481,11 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, per_allot
FitPeopleValue
=
item
.
FitPeopleValue
??
0
,
Grant
=
isBudget
?
grant
:
(
item
.
Management
??
1
),
//WorkTime = item.WorkTime,
PostCoefficient
=
item
.
PostCoefficient
??
0
,
Attendance
=
item
.
Attendance
??
0
,
ScoreAverageRate
=
item
.
ScoreAverageRate
??
1
,
Punishment
=
0
,
OtherPerfor
=
item
.
OtherPerfor
??
0
,
PostCoefficient
=
item
?
.
PostCoefficient
??
0
,
Attendance
=
item
?
.
Attendance
??
0
,
ScoreAverageRate
=
item
?
.
ScoreAverageRate
??
1
,
Punishment
=
item
?.
Punishment
??
0
,
OtherPerfor
=
item
?
.
OtherPerfor
??
0
,
JobTitle
=
item
.
JobTitle
,
JobNumber
=
item
.
JobNumber
,
Adjust
=
(
isBudget
?
adjust
:
item
.
Adjust
)
??
1
m
,
...
...
performance/Performance.Services/PerExcelService/ExcelReadConfig.cs
View file @
6e632c81
...
...
@@ -19,6 +19,7 @@ public class ExcelReadConfig
new
ColumnInfo
(
nameof
(
PerDataEmployee
.
FitPeopleRatio
),
"绩效基数核算系数"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataEmployee
.
AccountType
),
"人员分类"
),
new
ColumnInfo
(
nameof
(
PerDataEmployee
.
PostCoefficient
),
"岗位系数"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataEmployee
.
Punishment
),
"医院奖罚"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataEmployee
.
NightWorkPerfor
),
"夜班费"
),
new
ColumnInfo
(
nameof
(
PerDataEmployee
.
AssessBeforeOtherFee
),
"考核前其他绩效"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataEmployee
.
ScoreAverageRate
),
"考核得分率"
,
true
),
...
...
@@ -38,6 +39,7 @@ public class ExcelReadConfig
new
ColumnInfo
(
nameof
(
PerDataClinicEmployee
.
DoctorName
),
"医生姓名"
),
new
ColumnInfo
(
nameof
(
PerDataClinicEmployee
.
JobTitle
),
"职务分类"
),
new
ColumnInfo
(
nameof
(
PerDataClinicEmployee
.
Basics
),
"基础绩效系数"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataClinicEmployee
.
Punishment
),
"医院奖罚"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataClinicEmployee
.
FitPeopleValue
),
"实际人均绩效"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataClinicEmployee
.
PermanentStaff
),
"效率绩效人数"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataClinicEmployee
.
Efficiency
),
"效率绩效系数"
,
true
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment