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
83a949aa
Commit
83a949aa
authored
Jan 12, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/二次分配审核提示人均' into develop
parents
382085f6
f7149456
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
performance/Performance.Api/wwwroot/Performance.Api.xml
+5
-0
performance/Performance.EntityModels/Entity/ex_result.cs
+3
-3
performance/Performance.EntityModels/Entity/ex_result_gather.cs
+3
-3
performance/Performance.Services/RedistributionService.cs
+15
-0
No files found.
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
83a949aa
...
@@ -2165,6 +2165,11 @@
...
@@ -2165,6 +2165,11 @@
<param
name=
"query"
></param>
<param
name=
"query"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"T:Performance.Api.ClearLoggerJob"
>
<summary>
删除历史日志
</summary>
</member>
<member
name=
"T:Performance.Api.ExpirationLimitMiddleware"
>
<member
name=
"T:Performance.Api.ExpirationLimitMiddleware"
>
<summary>
<summary>
过期限制
过期限制
...
...
performance/Performance.EntityModels/Entity/ex_result.cs
View file @
83a949aa
...
@@ -76,9 +76,9 @@ public class ex_result
...
@@ -76,9 +76,9 @@ public class ex_result
/// </summary>
/// </summary>
public
Nullable
<
DateTime
>
CreateTime
{
get
;
set
;
}
public
Nullable
<
DateTime
>
CreateTime
{
get
;
set
;
}
/// <summary>
//
//
/ <summary>
/// 1 删除 0 未删除
//
//
/ 1 删除 0 未删除
/// </summary>
//
//
/ </summary>
// public int IsDelete { get; set; }
// public int IsDelete { get; set; }
}
}
}
}
performance/Performance.EntityModels/Entity/ex_result_gather.cs
View file @
83a949aa
...
@@ -46,9 +46,9 @@ public class ex_result_gather
...
@@ -46,9 +46,9 @@ public class ex_result_gather
/// 备注
/// 备注
/// </summary>
/// </summary>
public
string
Remark
{
get
;
set
;
}
public
string
Remark
{
get
;
set
;
}
/// <summary>
//
//
/ <summary>
/// 1 未通过 2 通过
//
//
/ 1 未通过 2 通过
/// </summary>
//
//
/ </summary>
// public int States { get; set; }
// public int States { get; set; }
}
}
}
}
performance/Performance.Services/RedistributionService.cs
View file @
83a949aa
...
@@ -27,6 +27,7 @@ public class RedistributionService : IAutoInjection
...
@@ -27,6 +27,7 @@ public class RedistributionService : IAutoInjection
private
readonly
PerforPerallotRepository
_perallotRepository
;
private
readonly
PerforPerallotRepository
_perallotRepository
;
private
readonly
PerforPeremployeeRepository
_peremployeeRepository
;
private
readonly
PerforPeremployeeRepository
_peremployeeRepository
;
private
readonly
PerforRescomputeRepository
_rescomputeRepository
;
private
readonly
PerforRescomputeRepository
_rescomputeRepository
;
private
readonly
PerforResaccountRepository
_resaccountRepository
;
private
readonly
PerforAgsecondallotRepository
_secondallotRepository
;
private
readonly
PerforAgsecondallotRepository
_secondallotRepository
;
private
readonly
PerforPerapramountRepository
_perapramountRepository
;
private
readonly
PerforPerapramountRepository
_perapramountRepository
;
private
readonly
PerforAgothersourceRepository
_agothersourceRepository
;
private
readonly
PerforAgothersourceRepository
_agothersourceRepository
;
...
@@ -45,6 +46,7 @@ public class RedistributionService : IAutoInjection
...
@@ -45,6 +46,7 @@ public class RedistributionService : IAutoInjection
PerforPerallotRepository
perallotRepository
,
PerforPerallotRepository
perallotRepository
,
PerforPeremployeeRepository
peremployeeRepository
,
PerforPeremployeeRepository
peremployeeRepository
,
PerforRescomputeRepository
rescomputeRepository
,
PerforRescomputeRepository
rescomputeRepository
,
PerforResaccountRepository
resaccountRepository
,
PerforAgsecondallotRepository
secondallotRepository
,
PerforAgsecondallotRepository
secondallotRepository
,
PerforPerapramountRepository
perapramountRepository
,
PerforPerapramountRepository
perapramountRepository
,
PerforAgothersourceRepository
agothersourceRepository
,
PerforAgothersourceRepository
agothersourceRepository
,
...
@@ -62,6 +64,7 @@ public class RedistributionService : IAutoInjection
...
@@ -62,6 +64,7 @@ public class RedistributionService : IAutoInjection
_perallotRepository
=
perallotRepository
;
_perallotRepository
=
perallotRepository
;
_peremployeeRepository
=
peremployeeRepository
;
_peremployeeRepository
=
peremployeeRepository
;
_rescomputeRepository
=
rescomputeRepository
;
_rescomputeRepository
=
rescomputeRepository
;
_resaccountRepository
=
resaccountRepository
;
_secondallotRepository
=
secondallotRepository
;
_secondallotRepository
=
secondallotRepository
;
_perapramountRepository
=
perapramountRepository
;
_perapramountRepository
=
perapramountRepository
;
_agothersourceRepository
=
agothersourceRepository
;
_agothersourceRepository
=
agothersourceRepository
;
...
@@ -369,6 +372,18 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
...
@@ -369,6 +372,18 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
),
(
allot
.
States
==
(
int
)
AllotStates
.
GenerateSucceed
)
?
(
second
.
NightShiftWorkPerforFee
??
0
)
:
0
);
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
),
(
allot
.
States
==
(
int
)
AllotStates
.
GenerateSucceed
)
?
(
second
.
NightShiftWorkPerforFee
??
0
)
:
0
);
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
TotalPerformance
),
head
.
GetDecimal
(
nameof
(
ag_headsource
.
TotalDistPerformance
))
-
head
.
GetDecimal
(
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
)));
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
TotalPerformance
),
head
.
GetDecimal
(
nameof
(
ag_headsource
.
TotalDistPerformance
))
-
head
.
GetDecimal
(
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
)));
head
.
AddOrUpdate
(
"Remark"
,
(
allot
.
States
==
(
int
)
AllotStates
.
GenerateSucceed
)
?
""
:
"(非正式)"
);
head
.
AddOrUpdate
(
"Remark"
,
(
allot
.
States
==
(
int
)
AllotStates
.
GenerateSucceed
)
?
""
:
"(非正式)"
);
#
region
添加参考人均
lcr
:
参考人均那里直接取
4.1
的人均绩效
// 添加参考人均(二次分配审核时,提示业务中层测算表的基础绩效或实际人均)
var
refAvg
=
0
m
;
if
(
Enum
.
TryParse
(
typeof
(
UnitType
),
second
.
UnitType
,
true
,
out
object
unittype
))
{
var
rescompute
=
_resaccountRepository
.
GetEntity
(
w
=>
w
.
AccountingUnit
==
second
.
Department
&&
w
.
UnitType
==
(
int
)((
UnitType
)
unittype
));
refAvg
=
rescompute
?.
Avg
??
0
;
}
head
.
AddOrUpdate
(
"RefAvg"
,
refAvg
);
#
endregion
// 横向 纵向 特有顶部信息
// 横向 纵向 特有顶部信息
if
(
computeMode
!=
ComputeMode
.
NotCalculate
)
if
(
computeMode
!=
ComputeMode
.
NotCalculate
)
{
{
...
...
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