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
267e0849
Commit
267e0849
authored
Nov 10, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科室详情 添加 定科人数(在册人数)
parent
786faa91
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
3 deletions
+20
-3
performance/Performance.Api/Job/BackgroundJob.cs
+1
-1
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.DtoModels/Enum.cs
+1
-0
performance/Performance.DtoModels/PerExcel/PerDataAccountBaisc.cs
+1
-1
performance/Performance.EntityModels/Entity/res_specialunit.cs
+5
-0
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+1
-1
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+1
-0
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
+4
-0
performance/Performance.Services/PerExcelService/ExcelReadConfig.cs
+1
-0
No files found.
performance/Performance.Api/Job/BackgroundJob.cs
View file @
267e0849
...
@@ -43,7 +43,7 @@ public void Execute()
...
@@ -43,7 +43,7 @@ public void Execute()
{
{
using
(
var
scope
=
_serviceScopeFactory
.
CreateScope
())
using
(
var
scope
=
_serviceScopeFactory
.
CreateScope
())
{
{
var
service
=
scope
.
ServiceProvider
.
GetService
<
TaskService
>();
var
service
=
scope
.
ServiceProvider
.
GetService
<
TaskService
>();
var
tasks
=
service
.
GetTasks
();
var
tasks
=
service
.
GetTasks
();
if
(
tasks
==
null
||
tasks
.
Count
==
0
)
if
(
tasks
==
null
||
tasks
.
Count
==
0
)
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
267e0849
...
@@ -9536,6 +9536,11 @@
...
@@ -9536,6 +9536,11 @@
夜班绩效
夜班绩效
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.res_specialunit.PermanentStaff"
>
<summary>
定科人数(在册人数)
</summary>
</member>
<member
name=
"T:Performance.EntityModels.sys_extract"
>
<member
name=
"T:Performance.EntityModels.sys_extract"
>
<summary>
<summary>
医院数据提取脚本
医院数据提取脚本
...
...
performance/Performance.DtoModels/Enum.cs
View file @
267e0849
...
@@ -202,6 +202,7 @@ public class UniteDept
...
@@ -202,6 +202,7 @@ public class UniteDept
public
enum
Title
public
enum
Title
{
{
业绩分值
=
2100
,
业绩分值
=
2100
,
在册人数
=
2101
,
预算比例
=
2110
,
预算比例
=
2110
,
业绩绩效
=
2120
,
业绩绩效
=
2120
,
工作量绩效
=
2130
,
工作量绩效
=
2130
,
...
...
performance/Performance.DtoModels/PerExcel/PerDataAccountBaisc.cs
View file @
267e0849
...
@@ -39,7 +39,7 @@ public class PerDataAccountBaisc : IPerData
...
@@ -39,7 +39,7 @@ public class PerDataAccountBaisc : IPerData
/// <summary>
/// <summary>
/// 效率绩效人数
/// 效率绩效人数
/// </summary>
/// </summary>
public
decimal
PermanentStaff
{
get
;
set
;
}
public
Nullable
<
decimal
>
PermanentStaff
{
get
;
set
;
}
///// <summary>
///// <summary>
///// 科主任/护士长数量
///// 科主任/护士长数量
...
...
performance/Performance.EntityModels/Entity/res_specialunit.cs
View file @
267e0849
...
@@ -140,5 +140,10 @@ public class res_specialunit
...
@@ -140,5 +140,10 @@ public class res_specialunit
/// 夜班绩效
/// 夜班绩效
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
NightShiftWorkPerforFee
{
get
;
set
;
}
public
Nullable
<
decimal
>
NightShiftWorkPerforFee
{
get
;
set
;
}
/// <summary>
/// 定科人数(在册人数)
/// </summary>
public
Nullable
<
decimal
>
PermanentStaff
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
267e0849
...
@@ -391,7 +391,7 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
...
@@ -391,7 +391,7 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
dept
.
UnitType
=
account
.
AccountType
;
dept
.
UnitType
=
account
.
AccountType
;
dept
.
Income
=
empolyees
.
Sum
(
w
=>
w
.
PerforTotal
??
0
);
dept
.
Income
=
empolyees
.
Sum
(
w
=>
w
.
PerforTotal
??
0
);
dept
.
NeedSecondAllot
=
empolyees
.
Any
(
w
=>
w
.
NeedSecondAllot
==
"是"
)
?
"是"
:
"否"
;
dept
.
NeedSecondAllot
=
empolyees
.
Any
(
w
=>
w
.
NeedSecondAllot
==
"是"
)
?
"是"
:
"否"
;
dept
.
PermanentStaff
=
resAccount
?.
PermanentStaff
??
0
;
if
(
UnitTypeUtil
.
IsOffice
(
resAccount
?.
UnitType
)
&&
dept
.
NeedSecondAllot
==
"是"
)
if
(
UnitTypeUtil
.
IsOffice
(
resAccount
?.
UnitType
)
&&
dept
.
NeedSecondAllot
==
"是"
)
{
{
// 夜班绩效 从医院奖罚的明细项中获取
// 夜班绩效 从医院奖罚的明细项中获取
...
...
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
267e0849
...
@@ -204,6 +204,7 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
...
@@ -204,6 +204,7 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
Quantity
=
item
.
Quantity
,
Quantity
=
item
.
Quantity
,
QuantitativeIndicatorsValue
=
item
.
QuantitativeIndicatorsValue
,
QuantitativeIndicatorsValue
=
item
.
QuantitativeIndicatorsValue
,
QuantitativeFee
=
item
.
Quantity
*
item
.
QuantitativeIndicatorsValue
*
headcount
,
QuantitativeFee
=
item
.
Quantity
*
item
.
QuantitativeIndicatorsValue
*
headcount
,
PermanentStaff
=
dept
?.
PermanentStaff
??
0
,
//定科人数(在册人数)
//ScoringAverage = scoreAverage.HasValue ? scoreAverage : dept?.ScoringAverage,
//ScoringAverage = scoreAverage.HasValue ? scoreAverage : dept?.ScoringAverage,
ScoringAverage
=
dept
?.
ScoringAverage
??
1
,
ScoringAverage
=
dept
?.
ScoringAverage
??
1
,
//OtherPerfor = dept?.OtherPerfor1,
//OtherPerfor = dept?.OtherPerfor1,
...
...
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
View file @
267e0849
...
@@ -119,6 +119,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
...
@@ -119,6 +119,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
var
total
=
detailItems
.
FirstOrDefault
(
w
=>
w
.
Title
==
"行政工勤"
)?.
Total
??
0
;
var
total
=
detailItems
.
FirstOrDefault
(
w
=>
w
.
Title
==
"行政工勤"
)?.
Total
??
0
;
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩分值
.
ToString
(),
Total
=
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩分值
.
ToString
(),
Total
=
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
在册人数
.
ToString
(),
Total
=
account
.
PermanentStaff
??
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩绩效
.
ToString
(),
Total
=
total
,
Children
=
detailItems
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩绩效
.
ToString
(),
Total
=
total
,
Children
=
detailItems
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
工作量绩效
.
ToString
(),
Total
=
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
工作量绩效
.
ToString
(),
Total
=
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
考核前绩效
.
ToString
(),
Total
=
total
,
StandOut
=
true
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
考核前绩效
.
ToString
(),
Total
=
total
,
StandOut
=
true
});
...
@@ -164,6 +165,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
...
@@ -164,6 +165,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
#
region
特殊处理
#
region
特殊处理
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩分值
.
ToString
(),
Total
=
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩分值
.
ToString
(),
Total
=
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
在册人数
.
ToString
(),
Total
=
special
.
First
().
PermanentStaff
??
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩绩效
.
ToString
(),
Total
=
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩绩效
.
ToString
(),
Total
=
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
工作量绩效
.
ToString
(),
Total
=
detailItems
.
Total
,
TotalFormat
=
detailItems
.
TotalFormat
,
Items
=
detailItems
.
Items
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
工作量绩效
.
ToString
(),
Total
=
detailItems
.
Total
,
TotalFormat
=
detailItems
.
TotalFormat
,
Items
=
detailItems
.
Items
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
考核前绩效
.
ToString
(),
Total
=
special
.
First
().
PerforTotal
??
0
,
StandOut
=
true
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
考核前绩效
.
ToString
(),
Total
=
special
.
First
().
PerforTotal
??
0
,
StandOut
=
true
});
...
@@ -328,6 +330,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
...
@@ -328,6 +330,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
remark
=
$"
{
sr
}
+
{
ewsr
}
-
{
zc
}
"
;
remark
=
$"
{
sr
}
+
{
ewsr
}
-
{
zc
}
"
;
}
}
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩分值
.
ToString
(),
Total
=
account
.
Income
??
0
,
Children
=
detailItems
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩分值
.
ToString
(),
Total
=
account
.
Income
??
0
,
Children
=
detailItems
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
在册人数
.
ToString
(),
Total
=
account
.
PermanentStaff
??
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩绩效
.
ToString
(),
Total
=
account
.
PerforFee
??
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩绩效
.
ToString
(),
Total
=
account
.
PerforFee
??
0
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
工作量绩效
.
ToString
(),
Total
=
detailItemWorkloads
.
Total
,
TotalFormat
=
detailItemWorkloads
.
TotalFormat
,
Items
=
detailItemWorkloads
.
Items
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
工作量绩效
.
ToString
(),
Total
=
detailItemWorkloads
.
Total
,
TotalFormat
=
detailItemWorkloads
.
TotalFormat
,
Items
=
detailItemWorkloads
.
Items
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
考核前绩效
.
ToString
(),
Total
=
account
.
PerforTotal
??
0
,
StandOut
=
true
});
response
.
DetailItems
.
Add
(
new
DeptDetailItem
{
Title
=
UniteDept
.
Title
.
考核前绩效
.
ToString
(),
Total
=
account
.
PerforTotal
??
0
,
StandOut
=
true
});
...
@@ -625,6 +628,7 @@ public List<UniteDeptDetailItem> GetUniteDeptDetailSetting(int allotId)
...
@@ -625,6 +628,7 @@ public List<UniteDeptDetailItem> GetUniteDeptDetailSetting(int allotId)
}
}
#
endregion
#
endregion
response
.
Add
(
new
UniteDeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩分值
.
ToString
(),
Children
=
lcUniteDepts
});
response
.
Add
(
new
UniteDeptDetailItem
{
Title
=
UniteDept
.
Title
.
业绩分值
.
ToString
(),
Children
=
lcUniteDepts
});
response
.
Add
(
new
UniteDeptDetailItem
{
Title
=
UniteDept
.
Title
.
在册人数
.
ToString
()
});
#
region
行政工勤
#
region
行政工勤
List
<
UniteDeptDetailItem
>
gqUniteDepts
=
new
List
<
UniteDeptDetailItem
>();
List
<
UniteDeptDetailItem
>
gqUniteDepts
=
new
List
<
UniteDeptDetailItem
>();
{
{
...
...
performance/Performance.Services/PerExcelService/ExcelReadConfig.cs
View file @
267e0849
...
@@ -79,6 +79,7 @@ public class ExcelReadConfig
...
@@ -79,6 +79,7 @@ public class ExcelReadConfig
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
UnitType
),
"核算单元类型"
),
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
UnitType
),
"核算单元类型"
),
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
AccountingUnit
),
"核算单元"
),
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
AccountingUnit
),
"核算单元"
),
//new ColumnInfo(nameof(PerDataAccountBaisc.ManagerNumber), "科主任/护士长人数", true),
//new ColumnInfo(nameof(PerDataAccountBaisc.ManagerNumber), "科主任/护士长人数", true),
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
PermanentStaff
),
"在册人数"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
Number
),
"核算单元人员数量"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
Number
),
"核算单元人员数量"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
BasicFactor
),
"预算比例"
,
true
),
new
ColumnInfo
(
nameof
(
PerDataAccountBaisc
.
BasicFactor
),
"预算比例"
,
true
),
//new ColumnInfo(nameof(PerDataAccountBaisc.OtherPerfor1), "其他绩效1", true),
//new ColumnInfo(nameof(PerDataAccountBaisc.OtherPerfor1), "其他绩效1", 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