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
327a87e0
Commit
327a87e0
authored
Dec 03, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整顺序
parent
49c49eea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
performance/Performance.Services/RedistributionService.cs
+2
-2
performance/Performance.Services/UnitTypeUtil.cs
+5
-2
No files found.
performance/Performance.Services/RedistributionService.cs
View file @
327a87e0
...
...
@@ -91,8 +91,8 @@ public SecondDetailDto Load(int secondId, ComputeMode computeMode, EmployeeSourc
var
allot
=
_perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
second
.
AllotId
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"绩效记录不存在!"
);
// 填报模板带出 行政工勤 绩效
var
computes
=
_rescomputeRepository
.
GetEntities
(
w
=>
w
.
AllotID
==
allot
.
ID
&&
(
w
.
AccountType
==
"行政后勤"
||
w
.
AccountType
==
"行政工勤"
));
// 填报模板带出 行政工勤 绩效
var
computes
=
_rescomputeRepository
.
GetEntities
(
w
=>
w
.
AllotID
==
allot
.
ID
&&
UnitTypeUtil
.
Office
.
Contains
(
w
.
AccountType
));
var
loads
=
GetWorkLoads
(
allot
.
HospitalId
,
second
.
UnitType
,
second
.
Department
);
var
employees
=
_peremployeeRepository
.
GetEntities
(
w
=>
w
.
AllotId
==
second
.
AllotId
);
...
...
performance/Performance.Services/UnitTypeUtil.cs
View file @
327a87e0
...
...
@@ -8,6 +8,8 @@ namespace Performance.Services
{
public
class
UnitTypeUtil
{
public
static
string
[]
Office
=
new
string
[]
{
"行政后勤"
,
"行政工勤"
};
/// <summary>
/// 是否是行政后勤/工勤
/// </summary>
...
...
@@ -17,6 +19,7 @@ public static bool IsOffice(int? unit)
{
return
unit
==
(
int
)
UnitType
.
行政后勤
;
}
/// <summary>
/// 是否是行政后勤/工勤
/// </summary>
...
...
@@ -24,7 +27,7 @@ public static bool IsOffice(int? unit)
/// <returns></returns>
public
static
bool
IsOffice
(
string
unit
)
{
return
!
string
.
IsNullOrEmpty
(
unit
)
&&
(
unit
==
"行政后勤"
||
unit
==
"行政工勤"
);
return
!
string
.
IsNullOrEmpty
(
unit
)
&&
Office
.
Contains
(
unit
);
}
/// <summary>
...
...
@@ -47,7 +50,7 @@ public static bool Is(string unit, params UnitType[] types)
public
class
AccountTypeUnit
{
private
static
string
[]
dic
=
new
string
[]
{
"科主任"
,
"护士长"
};
/// <summary>
/// 自动识别职称文本
/// </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