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
b9125776
Commit
b9125776
authored
Jan 26, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加考核抽取配置
parent
6653902c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
performance/Performance.Services/ExConfigService.cs
+15
-2
No files found.
performance/Performance.Services/ExConfigService.cs
View file @
b9125776
...
@@ -114,7 +114,7 @@ private void DefaultModules(int hospitalId)
...
@@ -114,7 +114,7 @@ private void DefaultModules(int hospitalId)
public
ex_module
AddModule
(
ModModuleRequest
request
)
public
ex_module
AddModule
(
ModModuleRequest
request
)
{
{
if
(!
new
int
[]
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherWorkload
}.
Contains
(
request
.
SheetType
.
Value
))
if
(!
new
int
[]
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherWorkload
,
(
int
)
SheetType
.
Assess
}.
Contains
(
request
.
SheetType
.
Value
))
throw
new
PerformanceException
(
"模块类型错误,只支持收入模板配置"
);
throw
new
PerformanceException
(
"模块类型错误,只支持收入模板配置"
);
string
addname
=
""
;
string
addname
=
""
;
...
@@ -160,7 +160,20 @@ public ex_module AddModule(ModModuleRequest request)
...
@@ -160,7 +160,20 @@ public ex_module AddModule(ModModuleRequest request)
string
modulename
=
moduleList
.
OrderByDescending
(
t
=>
t
.
ModuleName
).
First
().
ModuleName
;
string
modulename
=
moduleList
.
OrderByDescending
(
t
=>
t
.
ModuleName
).
First
().
ModuleName
;
int
[]
sort
=
Array
.
ConvertAll
(
modulename
.
Split
(
' '
)[
0
].
Split
(
new
string
[]
{
"."
},
StringSplitOptions
.
RemoveEmptyEntries
),
t
=>
ConvertHelper
.
TryInt
(
t
));
int
[]
sort
=
Array
.
ConvertAll
(
modulename
.
Split
(
' '
)[
0
].
Split
(
new
string
[]
{
"."
},
StringSplitOptions
.
RemoveEmptyEntries
),
t
=>
ConvertHelper
.
TryInt
(
t
));
sort
[
1
]
+=
1
;
sort
[
1
]
+=
1
;
addname
=
$"
{
sort
[
0
]}
.
{
sort
[
1
]}
.1 "
+
request
.
ModuleName
;
addname
=
$"
{
sort
[
0
]}
.
{
sort
[
1
]}
"
+
request
.
ModuleName
;
}
else
if
(
request
.
SheetType
==
(
int
)
SheetType
.
Assess
)
{
var
incomeList
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
request
.
HospitalId
&&
t
.
SheetType
==
(
int
)
SheetType
.
Assess
);
if
(
incomeList
!=
null
&&
incomeList
.
Any
(
t
=>
Regex
.
Replace
(
t
.
ModuleName
,
@"\d"
,
""
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
)
==
request
.
ModuleName
))
throw
new
PerformanceException
(
"绩效模板已存在!"
);
var
moduleList
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
request
.
HospitalId
&&
t
.
ModuleName
.
IndexOf
(
"5."
)
!=
-
1
);
string
modulename
=
moduleList
.
OrderByDescending
(
t
=>
t
.
ModuleName
).
First
().
ModuleName
;
int
[]
sort
=
Array
.
ConvertAll
(
modulename
.
Split
(
' '
)[
0
].
Split
(
new
string
[]
{
"."
},
StringSplitOptions
.
RemoveEmptyEntries
),
t
=>
ConvertHelper
.
TryInt
(
t
));
sort
[
1
]
+=
1
;
addname
=
$"
{
sort
[
0
]}
.
{
sort
[
1
]}
"
+
request
.
ModuleName
;
}
}
ex_module
entity
=
new
ex_module
ex_module
entity
=
new
ex_module
...
...
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