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
5da68974
Commit
5da68974
authored
Mar 05, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HRP保存调整
parent
dd4cd599
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
performance/Performance.Services/ConfigService.cs
+6
-5
No files found.
performance/Performance.Services/ConfigService.cs
View file @
5da68974
...
...
@@ -868,14 +868,14 @@ public HandsonTable GetHrpDeptHands(int HospitalId,int AllotId)
public
void
SaveDepttypeHands
(
int
hospitalId
,
int
allotId
,
SaveCollectData
request
)
{
var
dicData
=
CreateDataRow
(
allotId
,
request
,
HrpDept
);
var
dicData
=
CreateDataRow
(
hospitalId
,
allotId
,
request
,
HrpDept
);
List
<
cof_hrp_department
>
depts
=
new
List
<
cof_hrp_department
>();
foreach
(
var
item
in
dicData
)
{
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
cof_hrp_department
>(
json
);
if
(!
string
.
IsNullOrEmpty
(
data
.
HRPDepartment
))
if
(!
string
.
IsNullOrEmpty
(
data
.
HRPDepartment
)
&&
!
string
.
IsNullOrEmpty
(
data
.
AccountingUnit
)
)
{
data
.
HospitalId
=
hospitalId
;
data
.
AllotId
=
allotId
;
...
...
@@ -888,7 +888,7 @@ public void SaveDepttypeHands(int hospitalId, int allotId,SaveCollectData reques
perforCofHrpDeptRepository
.
AddRange
(
depts
.
ToArray
());
}
private
List
<
Dictionary
<
string
,
string
>>
CreateDataRow
(
int
allotId
,
SaveCollectData
request
,
Dictionary
<
string
,
string
>
config
)
private
List
<
Dictionary
<
string
,
string
>>
CreateDataRow
(
int
hospitalId
,
int
allotId
,
SaveCollectData
request
,
Dictionary
<
string
,
string
>
config
)
{
List
<
Dictionary
<
string
,
string
>>
allData
=
new
List
<
Dictionary
<
string
,
string
>>();
...
...
@@ -896,7 +896,8 @@ public void SaveDepttypeHands(int hospitalId, int allotId,SaveCollectData reques
{
// 创建固定数据列
Dictionary
<
string
,
string
>
baseData
=
CreateBaseData
(
request
,
config
,
r
);
baseData
.
Add
(
nameof
(
collect_data
.
AllotID
),
allotId
.
ToString
());
baseData
.
Add
(
nameof
(
cof_hrp_department
.
AllotId
),
allotId
.
ToString
());
baseData
.
Add
(
nameof
(
cof_hrp_department
.
HospitalId
),
hospitalId
.
ToString
());
allData
.
Add
(
baseData
);
}
...
...
@@ -923,7 +924,7 @@ public void SaveDepttypeHands(int hospitalId, int allotId,SaveCollectData reques
public
static
Dictionary
<
string
,
string
>
HrpDept
{
get
;
}
=
new
Dictionary
<
string
,
string
>
{
{
nameof
(
cof_hrp_department
.
HRPDepartment
),
"
HRP
人员科室"
},
{
nameof
(
cof_hrp_department
.
HRPDepartment
),
"
hrp
人员科室"
},
{
nameof
(
cof_hrp_department
.
AccountingUnit
),
"核算单元"
},
};
///// <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