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
513ba520
Commit
513ba520
authored
Apr 10, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验数据是,修改提示;行政工勤绩效,参加工作时间数据格式修改
parent
3a7f28f3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
152 additions
and
21 deletions
+152
-21
performance/Performance.DtoModels/AutoMapper/AutoMapperConfigs.cs
+1
-0
performance/Performance.DtoModels/Response/ResComputeResponse.cs
+144
-0
performance/Performance.Services/AllotCompute/CheckDataService.cs
+1
-17
performance/Performance.Services/ComputeService.cs
+6
-4
No files found.
performance/Performance.DtoModels/AutoMapper/AutoMapperConfigs.cs
View file @
513ba520
...
...
@@ -128,6 +128,7 @@ public AutoMapperConfigs()
CreateMap
<
per_againallot
,
AgainAllotResponse
>();
CreateMap
<
res_compute
,
ComputeResponse
>();
CreateMap
<
EmployeeRequest
,
im_employee
>();
CreateMap
<
res_compute
,
ResComputeResponse
>();
}
}
}
performance/Performance.DtoModels/Response/ResComputeResponse.cs
0 → 100644
View file @
513ba520
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
ResComputeResponse
{
/// <summary>
///
/// </summary>
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// sheet页id
/// </summary>
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 绩效基数核算参考对象
/// </summary>
public
string
FitPeople
{
get
;
set
;
}
/// <summary>
/// 人员姓名
/// </summary>
public
string
EmployeeName
{
get
;
set
;
}
/// <summary>
/// 职称
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
/// 绩效合计(来自科室经济测算表)
/// </summary>
public
Nullable
<
decimal
>
PerforTotal
{
get
;
set
;
}
/// <summary>
/// 核算单元医生数量(来自科室经济测算表)
/// </summary>
public
Nullable
<
decimal
>
Number
{
get
;
set
;
}
/// <summary>
/// 人均绩效(来自科室经济测算表)
/// </summary>
public
Nullable
<
decimal
>
Avg
{
get
;
set
;
}
/// <summary>
/// 效率绩效(需计算)
/// </summary>
public
Nullable
<
decimal
>
Efficiency
{
get
;
set
;
}
/// <summary>
/// 规模绩效(需计算)
/// </summary>
public
Nullable
<
decimal
>
Scale
{
get
;
set
;
}
/// <summary>
/// 岗位系数
/// </summary>
public
Nullable
<
decimal
>
PostCoefficient
{
get
;
set
;
}
/// <summary>
/// 发放系数(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
Grant
{
get
;
set
;
}
/// <summary>
/// 应发管理绩效(需计算,科主任护士长独有)
/// </summary>
public
Nullable
<
decimal
>
ShouldGiveFee
{
get
;
set
;
}
/// <summary>
/// 绩效合计(需计算)
/// </summary>
public
Nullable
<
decimal
>
PerforSumFee
{
get
;
set
;
}
/// <summary>
/// 考核对分率(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
ScoreAverageRate
{
get
;
set
;
}
/// <summary>
/// 医院奖罚(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
Punishment
{
get
;
set
;
}
/// <summary>
/// 其他绩效(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor
{
get
;
set
;
}
/// <summary>
/// 应发绩效(需计算)
/// </summary>
public
Nullable
<
decimal
>
GiveFee
{
get
;
set
;
}
/// <summary>
/// 出勤率(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
Attendance
{
get
;
set
;
}
/// <summary>
/// 参加工作时间(来自人员名单)
/// </summary>
public
string
WorkTime
{
get
;
set
;
}
/// <summary>
/// 绩效基础金额(计算)
/// </summary>
public
Nullable
<
decimal
>
BaiscNormValue
{
get
;
set
;
}
/// <summary>
/// 年资系数(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
WorkYear
{
get
;
set
;
}
/// <summary>
/// 调节系数
/// </summary>
public
Nullable
<
decimal
>
Adjust
{
get
;
set
;
}
/// <summary>
/// 工作量绩效
/// </summary>
public
Nullable
<
decimal
>
Workload
{
get
;
set
;
}
/// <summary>
/// 实发绩效
/// </summary>
public
Nullable
<
decimal
>
RealGiveFee
{
get
;
set
;
}
}
}
performance/Performance.Services/AllotCompute/CheckDataService.cs
View file @
513ba520
...
...
@@ -34,8 +34,6 @@ internal bool Check(PerExcel excel, per_allot allot)
result
=
false
;
//匹配绩效参考标准
//MatchStandard(excel, allot);
//空行数据警告
if
(!
CheckData
(
excel
,
allot
))
result
=
false
;
...
...
@@ -137,20 +135,6 @@ public bool Discern(PerExcel excel, per_allot allot)
}
#
endregion
#
region
匹配绩效参考标准
/// <summary>
/// 匹配绩效参考标准
/// </summary>
/// <param name="excel"></param>
/// <param name="allot"></param>
/// <returns></returns>
public
bool
MatchStandard
(
PerExcel
excel
,
per_allot
allot
)
{
return
true
;
}
#
endregion
#
region
空行数据警告
public
bool
CheckData
(
PerExcel
excel
,
per_allot
allot
)
{
...
...
@@ -243,7 +227,7 @@ public bool CheckData(PerExcel excel, per_allot allot)
if
(!
flag
)
{
result
=
false
;
message
=
$"
{
sheet
.
SheetName
}
-- 有
{
count
}
行
空数据
,行号是
{
String
.
Join
(
"、"
,
rowNumber
.
ToArray
())}
;"
;
message
=
$"
{
sheet
.
SheetName
}
-- 有
{
count
}
行
数据不合规范
,行号是
{
String
.
Join
(
"、"
,
rowNumber
.
ToArray
())}
;"
;
}
InsertLog
(
allot
.
ID
,
(
int
)
sheet
.
SheetType
,
"空行数据警告"
,
message
.
ToString
());
}
...
...
performance/Performance.Services/ComputeService.cs
View file @
513ba520
...
...
@@ -48,9 +48,9 @@ public class ComputeService : IAutoInjection
/// <param name="allotId">绩效ID</param>
/// <param name="type">绩效基数核算参考对象</param>
/// <returns></returns>
public
List
<
res_comput
e
>
GetCompute
(
int
allotId
,
int
type
)
public
List
<
ResComputeRespons
e
>
GetCompute
(
int
allotId
,
int
type
)
{
var
list
=
new
List
<
res_comput
e
>();
var
data
=
new
List
<
ResComputeRespons
e
>();
Dictionary
<
int
,
List
<
PerformanceType
>>
keyValues
=
new
Dictionary
<
int
,
List
<
PerformanceType
>>
{
{
1
,
new
List
<
PerformanceType
>{
PerformanceType
.
ReferenceDirector
}
},
...
...
@@ -63,14 +63,16 @@ public List<res_compute> GetCompute(int allotId, int type)
if
(
keyValues
.
ContainsKey
(
type
))
{
var
conList
=
keyValues
[
type
].
Select
(
t
=>
EnumHelper
.
GetDescription
(
t
));
list
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
conList
.
Contains
(
t
.
FitPeople
))
var
list
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
conList
.
Contains
(
t
.
FitPeople
))
.
OrderBy
(
t
=>
t
.
AccountingUnit
).
ThenBy
(
t
=>
t
.
FitPeople
).
ToList
();
data
=
Mapper
.
Map
<
List
<
ResComputeResponse
>>(
list
);
data
?.
ForEach
(
t
=>
t
.
WorkTime
=
string
.
IsNullOrEmpty
(
t
.
WorkTime
)
?
null
:
Convert
.
ToDateTime
(
t
.
WorkTime
).
ToString
(
"yyyy-MM-dd"
));
}
else
{
throw
new
PerformanceException
(
"参数错误,type无效"
);
}
return
Mapper
.
Map
<
List
<
res_compute
>>(
list
)
;
return
data
;
}
/// <summary>
...
...
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