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
5971bbc3
Commit
5971bbc3
authored
Oct 26, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特殊核算组 自定义显示“科主任”“护士长”
parent
ac99d873
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+1
-1
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+1
-1
performance/Performance.Services/UnitTypeUtil.cs
+19
-0
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
5971bbc3
...
...
@@ -249,7 +249,7 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
UnitType
=
UnitType
.
特殊核算组
.
ToString
(),
AccountingUnit
=
group
.
AccountingUnit
,
AccountType
=
Account
UnitType
.
科主任
.
ToString
(
),
AccountType
=
Account
TypeUnit
.
Recognition
(
empolyee
.
JobTitle
,
AccountUnitType
.
科主任
),
EmployeeName
=
empolyee
.
DoctorName
,
FitPeople
=
empolyee
.
FitPeople
,
JobTitle
=
empolyee
.
JobTitle
,
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
5971bbc3
...
...
@@ -372,7 +372,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
UnitType
=
empolyee
.
UnitType
,
AccountingUnit
=
empolyee
.
AccountingUnit
,
AccountType
=
basicRule
.
AccountUnitType
.
ToString
(
),
AccountType
=
AccountTypeUnit
.
Recognition
(
empolyee
.
JobTitle
,
basicRule
.
AccountUnitType
),
EmployeeName
=
empolyee
.
DoctorName
,
FitPeople
=
empolyee
.
FitPeople
,
FitPeopleRatio
=
empolyee
.
FitPeopleRatio
,
...
...
performance/Performance.Services/UnitTypeUtil.cs
View file @
5971bbc3
...
...
@@ -43,4 +43,23 @@ public static bool Is(string unit, params UnitType[] types)
return
!
string
.
IsNullOrEmpty
(
unit
)
&&
types
.
Any
(
w
=>
IsEqualsUnitType
(
w
.
ToString
(),
unit
));
}
}
public
class
AccountTypeUnit
{
private
static
string
[]
dic
=
new
string
[]
{
"科主任"
,
"护士长"
};
/// <summary>
/// 自动识别职称文本
/// </summary>
/// <param name="name"></param>
/// <param name="defaultValue"></param>
/// <returns></returns>
public
static
string
Recognition
(
string
name
,
AccountUnitType
defaultValue
)
{
if
(
dic
.
Any
(
w
=>
!
string
.
IsNullOrEmpty
(
name
)
&&
name
.
Contains
(
w
)))
return
dic
.
First
(
w
=>
!
string
.
IsNullOrEmpty
(
name
)
&&
name
.
Contains
(
w
));
return
defaultValue
.
ToString
();
}
}
}
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