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
04817020
Commit
04817020
authored
Jun 05, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9e926eac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
performance/Performance.Api/Controllers/ExConfigController.cs
+0
-0
performance/Performance.Services/DFExtractService - 副本.cs
+0
-0
performance/Performance.Services/ExConfigService.cs
+18
-7
No files found.
performance/Performance.Api/Controllers/ExConfigController.cs
View file @
04817020
This diff is collapsed.
Click to expand it.
performance/Performance.Services/DFExtractService - 副本.cs
0 → 100644
View file @
04817020
This diff is collapsed.
Click to expand it.
performance/Performance.Services/ExConfigService.cs
View file @
04817020
using
Microsoft.Extensions.Logging
;
using
Microsoft.EntityFrameworkCore.Metadata.Internal
;
using
Microsoft.Extensions.Logging
;
using
Performance.DtoModels
;
using
Performance.EntityModels
;
using
Performance.Infrastructure
;
...
...
@@ -200,12 +201,6 @@ public List<ex_item> QueryItems(int moduleId)
return
list
?.
OrderBy
(
t
=>
t
.
Id
).
ToList
();
}
public
List
<
ex_item
>
Items
(
int
moduleId
)
{
var
list
=
exitemRepository
.
GetEntities
(
t
=>
t
.
ModuleId
==
moduleId
);
return
list
?.
OrderBy
(
t
=>
t
.
Id
).
ToList
();
}
public
List
<
ex_item
>
AddItem
(
ItemListRequest
request
)
{
var
entity
=
exitemRepository
.
GetEntity
(
t
=>
t
.
Id
==
request
.
ModuleId
);
...
...
@@ -316,6 +311,22 @@ public void DelSpecial(int specialId)
#
endregion
public
bool
QueryHosConfigs
(
int
moduleId
)
{
var
module
=
exmoduleRepository
.
GetEntity
(
t
=>
t
.
Id
==
moduleId
);
if
(
module
==
null
)
throw
new
PerformanceException
(
"绩效模板不存在,请重新选择!"
);
if
(
module
.
SheetType
!=
(
int
)
SheetType
.
Income
)
throw
new
PerformanceException
(
"当前模板不能进行考核项目自动添加"
);
var
hospitalConfigs
=
hospitalconfigRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
module
.
HospitalId
);
if
(
hospitalConfigs
!=
null
&&
hospitalConfigs
.
Any
())
return
true
;
return
false
;
}
/// <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