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
e72ad6a3
Commit
e72ad6a3
authored
Apr 12, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增模板可提交,补充其他绩效(科室、核算单元类型)
parent
b324b8f5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
22 deletions
+19
-22
performance/Performance.Api/wwwroot/Performance.Api.xml
+6
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+0
-5
performance/Performance.Services/SecondAllot/SecondAllotService.cs
+3
-13
performance/Performance.Services/SecondAllotService.cs
+10
-4
No files found.
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
e72ad6a3
...
@@ -1448,6 +1448,12 @@
...
@@ -1448,6 +1448,12 @@
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.AutoCompleteBodyData(System.Int32,System.String)"
>
<summary>
二次绩效录入页面自动补全
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SheetController.SheetList(Performance.DtoModels.SheetRequest)"
>
<member
name=
"M:Performance.Api.Controllers.SheetController.SheetList(Performance.DtoModels.SheetRequest)"
>
<summary>
<summary>
sheet 列表
sheet 列表
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
e72ad6a3
...
@@ -1403,11 +1403,6 @@
...
@@ -1403,11 +1403,6 @@
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.ag_workload_source.UnitType"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_workload_source.ItemId"
>
<member
name=
"P:Performance.EntityModels.ag_workload_source.ItemId"
>
<summary>
<summary>
工作量考核项ID
工作量考核项ID
...
...
performance/Performance.Services/SecondAllot/SecondAllotService.cs
View file @
e72ad6a3
...
@@ -216,17 +216,7 @@ private void SupplementOtherPerfor(ag_secondallot secondAllot, List<ag_bodysourc
...
@@ -216,17 +216,7 @@ private void SupplementOtherPerfor(ag_secondallot secondAllot, List<ag_bodysourc
foreach
(
var
item
in
groupData
)
foreach
(
var
item
in
groupData
)
{
{
var
employee
=
employeeList
.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
PersonnelNumber
);
var
employee
=
employeeList
.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
PersonnelNumber
);
if
(
employee
==
null
)
if
(
employee
!=
null
&&
employee
.
UnitType
==
secondAllot
.
UnitType
)
{
bodyItems
.
Add
(
new
ag_bodysource
{
WorkNumber
=
item
.
PersonnelNumber
,
Name
=
item
.
DoctorName
,
StaffCoefficient
=
1
,
OtherPerformance
=
item
.
Amount
});
}
else
{
{
bodyItems
.
Add
(
new
ag_bodysource
bodyItems
.
Add
(
new
ag_bodysource
{
{
...
@@ -377,8 +367,8 @@ public JArray AutoComplete(int secodId, string workNumber)
...
@@ -377,8 +367,8 @@ public JArray AutoComplete(int secodId, string workNumber)
if
(
usetemp
==
null
)
if
(
usetemp
==
null
)
throw
new
PerformanceException
(
"当前科室暂未配置绩效模板"
);
throw
new
PerformanceException
(
"当前科室暂未配置绩效模板"
);
var
employees
=
peremployeeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allot
.
ID
&&
!
string
.
IsNullOrEmpty
(
t
.
PersonnelNumber
)
&&
t
.
PersonnelNumber
.
IndexOf
(
workNumber
)
>
-
1
)
var
employees
=
peremployeeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allot
.
ID
&&
t
.
UnitType
==
second
.
UnitType
&&
!
string
.
IsNullOrEmpty
(
t
.
PersonnelNumber
)
?.
OrderBy
(
t
=>
t
.
PersonnelNumber
).
ThenByDescending
(
t
=>
t
.
DoctorName
).
ToList
();
&&
t
.
PersonnelNumber
.
IndexOf
(
workNumber
)
>
-
1
)
?.
OrderBy
(
t
=>
t
.
PersonnelNumber
).
ThenByDescending
(
t
=>
t
.
DoctorName
).
ToList
();
if
(
employees
==
null
||
!
employees
.
Any
())
return
new
JArray
();
if
(
employees
==
null
||
!
employees
.
Any
())
return
new
JArray
();
var
bodysources
=
new
List
<
ag_bodysource
>();
var
bodysources
=
new
List
<
ag_bodysource
>();
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
e72ad6a3
...
@@ -1210,7 +1210,7 @@ private void AddWorkTypeDefaultHeadValue(int hospitalId, ag_secondallot second)
...
@@ -1210,7 +1210,7 @@ private void AddWorkTypeDefaultHeadValue(int hospitalId, ag_secondallot second)
List
<
ag_worktype_source
>
insertData
=
new
List
<
ag_worktype_source
>(),
updateData
=
new
List
<
ag_worktype_source
>();
List
<
ag_worktype_source
>
insertData
=
new
List
<
ag_worktype_source
>(),
updateData
=
new
List
<
ag_worktype_source
>();
foreach
(
var
type
in
worktypes
)
foreach
(
var
type
in
worktypes
)
{
{
var
sources
=
worktypeSources
.
Where
(
t
=>
t
.
WorkTypeId
==
type
.
Id
)?
.
ToList
();
var
sources
=
worktypeSources
?.
Where
(
t
=>
t
.
WorkTypeId
==
type
.
Id
)
.
ToList
();
if
(
sources
!=
null
&&
sources
.
Any
())
if
(
sources
!=
null
&&
sources
.
Any
())
{
{
sources
.
ForEach
(
t
=>
t
.
FieldName
=
type
.
TypeName
+
t
.
FieldName
.
Substring
(
t
.
FieldName
.
Length
-
2
));
sources
.
ForEach
(
t
=>
t
.
FieldName
=
type
.
TypeName
+
t
.
FieldName
.
Substring
(
t
.
FieldName
.
Length
-
2
));
...
@@ -1232,9 +1232,9 @@ private void AddWorkTypeDefaultHeadValue(int hospitalId, ag_secondallot second)
...
@@ -1232,9 +1232,9 @@ private void AddWorkTypeDefaultHeadValue(int hospitalId, ag_secondallot second)
{
{
var
amounts
=
insertData
.
Select
(
t
=>
new
ag_worktype_source
var
amounts
=
insertData
.
Select
(
t
=>
new
ag_worktype_source
{
{
WorkTypeId
=
t
.
Id
,
WorkTypeId
=
t
.
WorkType
Id
,
SecondId
=
second
.
Id
,
SecondId
=
second
.
Id
,
FieldId
=
$"
{
AgWorkloadType
.
Workload
}
_Amount_
{
t
.
Id
}
"
,
FieldId
=
$"
{
AgWorkloadType
.
Workload
}
_Amount_
{
t
.
WorkType
Id
}
"
,
FieldName
=
t
.
FieldName
.
Substring
(
0
,
t
.
FieldName
.
Length
-
2
)
+
"金额"
FieldName
=
t
.
FieldName
.
Substring
(
0
,
t
.
FieldName
.
Length
-
2
)
+
"金额"
}).
ToList
();
}).
ToList
();
insertData
.
AddRange
(
amounts
);
insertData
.
AddRange
(
amounts
);
...
@@ -1581,7 +1581,7 @@ public bool AuditSubmit(ag_secondallot second, int userId)
...
@@ -1581,7 +1581,7 @@ public bool AuditSubmit(ag_secondallot second, int userId)
//if (!method(total, second.RealGiveFee))
//if (!method(total, second.RealGiveFee))
// throw new PerformanceException("总金额与考核后金额不一致!");
// throw new PerformanceException("总金额与考核后金额不一致!");
}
}
else
else
if
(
new
int
[]
{
7
,
8
}.
Contains
(
temp
.
UseTempId
.
Value
))
{
{
var
data
=
agfixatitemRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
second
.
Id
);
var
data
=
agfixatitemRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
second
.
Id
);
if
(
data
==
null
||
!
data
.
Any
())
if
(
data
==
null
||
!
data
.
Any
())
...
@@ -1592,6 +1592,12 @@ public bool AuditSubmit(ag_secondallot second, int userId)
...
@@ -1592,6 +1592,12 @@ public bool AuditSubmit(ag_secondallot second, int userId)
//if (!method(total, second.RealGiveFee))
//if (!method(total, second.RealGiveFee))
// throw new PerformanceException("总金额与考核后金额不一致!");
// throw new PerformanceException("总金额与考核后金额不一致!");
}
}
else
if
(
new
int
[]
{
9
,
10
}.
Contains
(
temp
.
UseTempId
.
Value
))
{
var
data
=
agbodysourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
second
.
Id
);
if
(
data
==
null
||
!
data
.
Any
())
throw
new
PerformanceException
(
"提交时未检测到数据!"
);
}
second
.
UseTempId
=
temp
.
UseTempId
;
second
.
UseTempId
=
temp
.
UseTempId
;
second
.
Status
=
2
;
second
.
Status
=
2
;
second
.
NursingDeptStatus
=
2
;
second
.
NursingDeptStatus
=
2
;
...
...
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