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
cd52fcaa
Commit
cd52fcaa
authored
Apr 09, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增根据工号自动补全功能
parent
8228ebed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
performance/Performance.Api/Controllers/SecondAllotController.cs
+14
-2
performance/Performance.EntityModels/Entity/ag_workload_source.cs
+0
-5
performance/Performance.Services/SecondAllot/SecondAllotService.cs
+3
-2
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
cd52fcaa
...
@@ -152,8 +152,8 @@ public ApiResponse SecondDetail([CustomizeValidator(RuleSet = "Refresh"), FromBo
...
@@ -152,8 +152,8 @@ public ApiResponse SecondDetail([CustomizeValidator(RuleSet = "Refresh"), FromBo
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
AutoComplete
([
FromBody
]
SecondEmpRequest
request
)
public
ApiResponse
AutoComplete
([
FromBody
]
SecondEmpRequest
request
)
{
{
//
var result = secondAllotService.AutoComplete(request, claimService.GetUserId());
var
result
=
secondAllotService
.
AutoComplete
(
request
,
claimService
.
GetUserId
());
var
result
=
secondAllotService
.
AutoComplete
(
request
.
SecondId
,
request
.
JobNumber
);
//
var result = secondAllotService.AutoComplete(request.SecondId, request.JobNumber);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
}
...
@@ -517,5 +517,17 @@ public ApiResponse SaveValue([FromRoute] int secondId, [FromBody] dynamic reques
...
@@ -517,5 +517,17 @@ public ApiResponse SaveValue([FromRoute] int secondId, [FromBody] dynamic reques
secondAllotService
.
SaveSecondAllotData
(
secondId
,
request
);
secondAllotService
.
SaveSecondAllotData
(
secondId
,
request
);
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
/// <summary>
/// 二次绩效录入页面自动补全
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/autocomplete/{secondId}/{jobNumber}"
)]
[
HttpPost
]
public
ApiResponse
AutoCompleteBodyData
([
FromRoute
]
int
secondId
,
string
jobNumber
)
{
var
result
=
secondAllotService
.
AutoComplete
(
secondId
,
jobNumber
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
}
}
}
}
performance/Performance.EntityModels/Entity/ag_workload_source.cs
View file @
cd52fcaa
...
@@ -32,11 +32,6 @@ public class ag_workload_source
...
@@ -32,11 +32,6 @@ public class ag_workload_source
public
int
BodyId
{
get
;
set
;
}
public
int
BodyId
{
get
;
set
;
}
/// <summary>
/// <summary>
///
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 工作量考核项ID
/// 工作量考核项ID
/// </summary>
/// </summary>
public
string
ItemId
{
get
;
set
;
}
public
string
ItemId
{
get
;
set
;
}
...
...
performance/Performance.Services/SecondAllot/SecondAllotService.cs
View file @
cd52fcaa
...
@@ -316,8 +316,9 @@ private JArray GetBodyResultAfterAudit(int hospitalId, ag_secondallot second, Li
...
@@ -316,8 +316,9 @@ private JArray GetBodyResultAfterAudit(int hospitalId, ag_secondallot second, Li
{
{
int
usingTempId
=
(
int
)
Temp
.
other
;
int
usingTempId
=
(
int
)
Temp
.
other
;
var
usedTemp
=
agusetempRepository
.
GetEntity
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
Department
==
second
.
Department
&&
t
.
UnitType
==
second
.
UnitType
);
var
usedTemp
=
agusetempRepository
.
GetEntity
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
Department
==
second
.
Department
&&
t
.
UnitType
==
second
.
UnitType
);
if
(
usedTemp
!=
null
)
if
(
usedTemp
!=
null
&&
usedTemp
.
UseTempId
.
HasValue
)
{
{
usingTempId
=
usedTemp
.
UseTempId
.
Value
;
if
(
IsAudit
(
second
.
Status
))
if
(
IsAudit
(
second
.
Status
))
usingTempId
=
(
second
.
UseTempId
??
0
)
==
0
?
(
int
)
Temp
.
other
:
second
.
UseTempId
.
Value
;
usingTempId
=
(
second
.
UseTempId
??
0
)
==
0
?
(
int
)
Temp
.
other
:
second
.
UseTempId
.
Value
;
}
}
...
@@ -413,7 +414,7 @@ public dynamic GetWorkloadDict(int secondId)
...
@@ -413,7 +414,7 @@ public dynamic GetWorkloadDict(int secondId)
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
second
.
AllotId
);
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
second
.
AllotId
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"绩效记录不存在!"
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"绩效记录不存在!"
);
var
workloads
=
agworkloadRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
allot
.
HospitalId
&&
t
.
Department
==
second
.
Department
&&
t
.
UnitType
==
second
.
UnitType
)
var
workloads
=
agworkloadRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
allot
.
HospitalId
&&
t
.
Department
==
second
.
Department
&&
t
.
UnitType
==
second
.
UnitType
)
??
new
List
<
ag_workload
>();
??
new
List
<
ag_workload
>();
return
workloads
.
OrderBy
(
t
=>
t
.
WorkTypeId
).
ThenBy
(
t
=>
t
.
Sort
).
Select
(
t
=>
new
return
workloads
.
OrderBy
(
t
=>
t
.
WorkTypeId
).
ThenBy
(
t
=>
t
.
Sort
).
Select
(
t
=>
new
{
{
...
...
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