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
f639bb1f
Commit
f639bb1f
authored
Jun 29, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作量HIS带出来源修改
parent
2421a324
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
performance/Performance.DtoModels/Request/WorkloadRequest.cs
+5
-0
performance/Performance.Services/SecondAllotService.cs
+3
-0
No files found.
performance/Performance.DtoModels/Request/WorkloadRequest.cs
View file @
f639bb1f
...
...
@@ -51,6 +51,11 @@ public class WorkloadRequest
/// 是否是单项奖励
/// </summary>
public
bool
IsSingleAwards
{
get
;
set
;
}
/// <summary>
/// 工作量带出HIS来源
/// </summary>
public
string
SourceCategory
{
get
;
set
;
}
}
public
class
WorkloadRequestValidator
:
AbstractValidator
<
WorkloadRequest
>
{
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
f639bb1f
...
...
@@ -1086,6 +1086,7 @@ public ag_workload_type SaveWorkType(ag_workload_type request, int secondId)
entity
=
agworkloadtypeRepository
.
GetEntity
(
t
=>
t
.
Id
==
request
.
Id
);
entity
.
HospitalId
=
request
.
HospitalId
;
entity
.
TypeName
=
request
.
TypeName
;
entity
.
TypeName
=
request
.
TypeName
;
agworkloadtypeRepository
.
Update
(
entity
);
}
...
...
@@ -1367,6 +1368,7 @@ public bool WorkloadAdd(WorkloadRequest request)
FactorValue
=
request
.
FactorValue
??
1
,
ItemName
=
request
.
ItemName
,
Sort
=
request
.
Sort
??
1
,
SourceCategory
=
request
.
SourceCategory
,
WorkTypeId
=
request
.
IsSingleAwards
?
(
int
)
AgWorkloadType
.
SingleAwards
:
request
.
WorkTypeId
};
var
result
=
agworkloadRepository
.
Add
(
workload
);
...
...
@@ -1396,6 +1398,7 @@ public bool WorkloadUpdate(WorkloadRequest request)
workload
.
UnitType
=
request
.
UnitType
;
workload
.
FactorValue
=
request
.
FactorValue
;
workload
.
ItemName
=
request
.
ItemName
;
workload
.
SourceCategory
=
request
.
SourceCategory
;
workload
.
Sort
=
request
.
Sort
;
workload
.
ItemId
=
getWorkloadItemId
.
Invoke
(
request
.
IsSingleAwards
,
request
.
WorkTypeId
,
workload
.
Id
);
;
workload
.
WorkTypeId
=
request
.
IsSingleAwards
?
(
int
)
AgWorkloadType
.
SingleAwards
:
request
.
WorkTypeId
;
...
...
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