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
712e3cc5
Commit
712e3cc5
authored
Feb 01, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改正基础配置的一些问题
parent
fb5ddc2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
19 deletions
+80
-19
performance/Performance.Services/ConfigService.cs
+63
-8
performance/Performance.Services/PersonService.cs
+17
-11
No files found.
performance/Performance.Services/ConfigService.cs
View file @
712e3cc5
...
@@ -379,6 +379,19 @@ public HandsonTable GetDrugtypeHands(int allotId)
...
@@ -379,6 +379,19 @@ public HandsonTable GetDrugtypeHands(int allotId)
Visible
=
1
,
Visible
=
1
,
Readnoly
=
0
Readnoly
=
0
}).
ToList
());
}).
ToList
());
string
[]
costType
=
{
"手术/麻醉费"
,
"床位/护理费"
,
"材料费"
,
"治疗费"
,
"化验费"
,
"检查费"
,
"药费"
,
"体检费"
,
"其他费"
,
"新筛费"
,
"疫苗费"
};
if
(
handson
.
Columns
!=
null
&&
handson
.
Columns
.
Any
())
{
foreach
(
var
column
in
handson
.
Columns
)
{
if
(
column
.
Data
==
"费用类别"
)
{
column
.
Type
=
"autocomplete"
;
column
.
Source
=
costType
;
column
.
Strict
=
true
;
}
}
}
var
list
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
list
=
_drugtypeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
if
(
list
==
null
)
return
handson
;
if
(
list
==
null
)
return
handson
;
...
@@ -416,14 +429,14 @@ public void SaveDrugtypeHands(int allotId, SaveConfigData request)
...
@@ -416,14 +429,14 @@ public void SaveDrugtypeHands(int allotId, SaveConfigData request)
{
{
var
json
=
JsonHelper
.
Serialize
(
item
);
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
cof_drugtype
>(
json
);
var
data
=
JsonHelper
.
Deserialize
<
cof_drugtype
>(
json
);
if
(!
string
.
IsNullOrEmpty
(
data
.
Charge
)||
!
string
.
IsNullOrEmpty
(
data
.
ChargeType
))
if
(!
string
.
IsNullOrEmpty
(
data
.
Charge
)
||
!
string
.
IsNullOrEmpty
(
data
.
ChargeType
))
{
{
drugs
.
Add
(
data
);
drugs
.
Add
(
data
);
}
}
}
}
_drugtypeRepository
.
Execute
(
"delete from cof_drugtype where allotid = @allotid"
,
new
{
allotId
});
_drugtypeRepository
.
Execute
(
"delete from cof_drugtype where allotid = @allotid"
,
new
{
allotId
});
_drugtypeRepository
.
AddRange
(
drugs
.
ToArray
());
_drugtypeRepository
.
AddRange
(
drugs
.
ToArray
());
}
}
...
@@ -501,7 +514,7 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
...
@@ -501,7 +514,7 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
}).
ToList
());
}).
ToList
());
var
headerArr
=
WorkHeader
(
allotId
).
Select
(
c
=>
c
.
Value
).
ToArray
();
var
headerArr
=
WorkHeader
(
allotId
).
Select
(
c
=>
c
.
Value
).
ToArray
();
string
[]
workType
=
{
"药占比"
,
"CMI"
,
"工作量倾斜"
};
if
(
handson
.
Columns
!=
null
&&
handson
.
Columns
.
Any
())
if
(
handson
.
Columns
!=
null
&&
handson
.
Columns
.
Any
())
{
{
foreach
(
var
column
in
handson
.
Columns
)
foreach
(
var
column
in
handson
.
Columns
)
...
@@ -512,6 +525,13 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
...
@@ -512,6 +525,13 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
column
.
Source
=
headerArr
;
column
.
Source
=
headerArr
;
column
.
Strict
=
true
;
column
.
Strict
=
true
;
}
}
if
(
column
.
Data
==
"类型"
)
{
column
.
Type
=
"autocomplete"
;
column
.
Source
=
workType
;
column
.
Strict
=
true
;
}
}
}
}
}
...
@@ -524,6 +544,7 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
...
@@ -524,6 +544,7 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
int
i
=
0
;
int
i
=
0
;
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
var
json
=
JsonHelper
.
Serialize
(
item
);
var
json
=
JsonHelper
.
Serialize
(
item
);
var
firstDic
=
JsonHelper
.
Deserialize
<
Dictionary
<
string
,
string
>>(
json
);
var
firstDic
=
JsonHelper
.
Deserialize
<
Dictionary
<
string
,
string
>>(
json
);
...
@@ -531,7 +552,21 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
...
@@ -531,7 +552,21 @@ public HandsonTable GetWorkItemHands(int allotId, int type)
join
fst
in
firstDic
on
conf
.
Key
.
ToUpper
()
equals
fst
.
Key
.
ToUpper
()
join
fst
in
firstDic
on
conf
.
Key
.
ToUpper
()
equals
fst
.
Key
.
ToUpper
()
select
new
HandsonCellData
(
conf
.
Value
,
fst
.
Value
)).
ToList
();
select
new
HandsonCellData
(
conf
.
Value
,
fst
.
Value
)).
ToList
();
cells
.
Add
(
new
HandsonCellData
(
nameof
(
item
.
ID
),
item
.
ID
));
cells
.
Add
(
new
HandsonCellData
(
nameof
(
item
.
ID
),
item
.
ID
));
switch
(
item
.
Type
)
{
case
1
:
cells
.
First
(
c
=>
c
.
Value
.
ToString
()
==
"1"
).
Value
=
"药占比"
;
break
;
case
2
:
cells
.
First
(
c
=>
c
.
Value
.
ToString
()
==
"2"
).
Value
=
"CMI"
;
break
;
case
3
:
cells
.
First
(
c
=>
c
.
Value
.
ToString
()
==
"3"
).
Value
=
"工作量倾斜"
;
break
;
default
:
cells
.
First
(
c
=>
c
.
Value
.
ToString
()
==
"0"
).
Value
=
""
;
break
;
}
rowDatas
.
Add
(
new
HandsonRowData
(
i
,
cells
));
rowDatas
.
Add
(
new
HandsonRowData
(
i
,
cells
));
i
++;
i
++;
}
}
...
@@ -548,15 +583,35 @@ public void SaveWorkItemHands(int allotId, SaveConfigData request)
...
@@ -548,15 +583,35 @@ public void SaveWorkItemHands(int allotId, SaveConfigData request)
List
<
cof_workitem
>
works
=
new
List
<
cof_workitem
>();
List
<
cof_workitem
>
works
=
new
List
<
cof_workitem
>();
foreach
(
var
item
in
dicData
)
foreach
(
var
item
in
dicData
)
{
{
if
(
item
.
ContainsKey
(
"Type"
))
{
if
(
item
.
ContainsValue
(
"药占比"
))
{
item
[
"Type"
]
=
"1"
;
}
else
if
(
item
.
ContainsValue
(
"CMI"
))
{
item
[
"Type"
]
=
"2"
;
}
else
if
(
item
.
ContainsValue
(
"工作量倾斜"
))
{
item
[
"Type"
]
=
"3"
;
}
else
{
item
[
"Type"
]
=
"0"
;
}
}
var
json
=
JsonHelper
.
Serialize
(
item
);
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
cof_workitem
>(
json
);
var
data
=
JsonHelper
.
Deserialize
<
cof_workitem
>(
json
);
if
(!
string
.
IsNullOrEmpty
(
data
.
Item
))
if
(!
string
.
IsNullOrEmpty
(
data
.
Item
))
{
{
works
.
Add
(
data
);
works
.
Add
(
data
);
}
}
}
}
_workitemRepository
.
Execute
(
"delete from cof_workitem where allotid = @allotid"
,
new
{
allotId
});
_workitemRepository
.
Execute
(
"delete from cof_workitem where allotid = @allotid"
,
new
{
allotId
});
_workitemRepository
.
AddRange
(
works
.
ToArray
());
_workitemRepository
.
AddRange
(
works
.
ToArray
());
}
}
...
@@ -679,10 +734,10 @@ public void SaveDepttypeHands(int allotId, SaveConfigData request)
...
@@ -679,10 +734,10 @@ public void SaveDepttypeHands(int allotId, SaveConfigData request)
{
{
depts
.
Add
(
data
);
depts
.
Add
(
data
);
}
}
}
}
perforCofdepttypeRepository
.
Execute
(
"delete from cof_depttype where allotid = @allotid"
,
new
{
allotId
});
perforCofdepttypeRepository
.
Execute
(
"delete from cof_depttype where allotid = @allotid"
,
new
{
allotId
});
perforCofdepttypeRepository
.
AddRange
(
depts
.
ToArray
());
perforCofdepttypeRepository
.
AddRange
(
depts
.
ToArray
());
}
}
...
...
performance/Performance.Services/PersonService.cs
View file @
712e3cc5
...
@@ -596,7 +596,7 @@ public HandsonTable GetDepartmentHands(int hospitalId)
...
@@ -596,7 +596,7 @@ public HandsonTable GetDepartmentHands(int hospitalId)
column
.
Strict
=
true
;
column
.
Strict
=
true
;
}
}
if
(
new
[]
{
"住院·核算单元医生组"
,
"住院·核算单元
医生
组"
,
"住院·核算单元医技组"
,
"门诊·核算单元医生组"
,
"门诊·核算单元护理组"
,
"门诊·核算单元医技组"
}.
Contains
(
column
.
Data
))
if
(
new
[]
{
"住院·核算单元医生组"
,
"住院·核算单元
护理
组"
,
"住院·核算单元医技组"
,
"门诊·核算单元医生组"
,
"门诊·核算单元护理组"
,
"门诊·核算单元医技组"
}.
Contains
(
column
.
Data
))
{
{
column
.
Type
=
"autocomplete"
;
column
.
Type
=
"autocomplete"
;
column
.
Source
=
DeptDics
(
hospitalId
,
3
).
Select
(
c
=>
c
.
Value
).
ToArray
();
column
.
Source
=
DeptDics
(
hospitalId
,
3
).
Select
(
c
=>
c
.
Value
).
ToArray
();
...
@@ -666,16 +666,16 @@ public void SaveDeptDicHands(int HospitalId, SaveConfigData request)
...
@@ -666,16 +666,16 @@ public void SaveDeptDicHands(int HospitalId, SaveConfigData request)
{
{
var
json
=
JsonHelper
.
Serialize
(
dic
);
var
json
=
JsonHelper
.
Serialize
(
dic
);
var
data
=
JsonHelper
.
Deserialize
<
DeptdicHands
>(
json
);
var
data
=
JsonHelper
.
Deserialize
<
DeptdicHands
>(
json
);
var
ss
=
""
;
if
(!
string
.
IsNullOrEmpty
(
data
.
Department
)||
!
string
.
IsNullOrEmpty
(
data
.
HISDeptName
))
if
(!
string
.
IsNullOrEmpty
(
data
.
Department
)||
!
string
.
IsNullOrEmpty
(
data
.
HISDeptName
))
{
{
DeptDicList
(
HospitalId
,
deptDics
,
data
);
DeptDicList
(
HospitalId
,
deptDics
,
data
);
}
}
perdeptdicRepository
.
Execute
(
"delete from per_dept_dic where HospitalId = @HospitalId"
,
new
{
HospitalId
});
perdeptdicRepository
.
AddRange
(
deptDics
.
ToArray
());
}
}
perdeptdicRepository
.
Execute
(
"delete from per_dept_dic where HospitalId = @HospitalId"
,
new
{
HospitalId
});
perdeptdicRepository
.
AddRange
(
deptDics
.
ToArray
());
}
}
private
List
<
Dictionary
<
string
,
string
>>
CreateDataRow
(
int
HospitalId
,
SaveConfigData
request
,
Dictionary
<
string
,
string
>
config
)
private
List
<
Dictionary
<
string
,
string
>>
CreateDataRow
(
int
HospitalId
,
SaveConfigData
request
,
Dictionary
<
string
,
string
>
config
)
...
@@ -718,21 +718,24 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
...
@@ -718,21 +718,24 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
if
(
data
.
InpatDoctorAccounting
!=
""
||
data
.
InpatNurseAccounting
!=
""
||
data
.
InpatTechnicAccounting
!=
""
)
if
(
data
.
InpatDoctorAccounting
!=
""
||
data
.
InpatNurseAccounting
!=
""
||
data
.
InpatTechnicAccounting
!=
""
)
{
{
per_dept_dic
deptDic
=
new
per_dept_dic
()
{
Source
=
"住院"
,
HospitalId
=
HospitalId
,
Department
=
data
.
Department
,
HISDeptName
=
data
.
HISDeptName
,
CreateTime
=
nowTime
};
if
(
data
.
InpatDoctorAccounting
!=
""
)
if
(
data
.
InpatDoctorAccounting
!=
""
)
{
{
per_dept_dic
deptDic
=
new
per_dept_dic
()
{
Source
=
"住院"
,
HospitalId
=
HospitalId
,
Department
=
data
.
Department
,
HISDeptName
=
data
.
HISDeptName
,
CreateTime
=
nowTime
};
deptDic
.
AccountingUnit
=
data
.
InpatDoctorAccounting
;
deptDic
.
AccountingUnit
=
data
.
InpatDoctorAccounting
;
deptDic
.
UnitType
=
"医生组"
;
deptDic
.
UnitType
=
"医生组"
;
deptDics
.
Add
(
deptDic
);
deptDics
.
Add
(
deptDic
);
}
}
if
(
data
.
InpatNurseAccounting
!=
""
)
if
(
data
.
InpatNurseAccounting
!=
""
)
{
{
per_dept_dic
deptDic
=
new
per_dept_dic
()
{
Source
=
"住院"
,
HospitalId
=
HospitalId
,
Department
=
data
.
Department
,
HISDeptName
=
data
.
HISDeptName
,
CreateTime
=
nowTime
};
deptDic
.
AccountingUnit
=
data
.
InpatNurseAccounting
;
deptDic
.
AccountingUnit
=
data
.
InpatNurseAccounting
;
deptDic
.
UnitType
=
"护理组"
;
deptDic
.
UnitType
=
"护理组"
;
deptDics
.
Add
(
deptDic
);
deptDics
.
Add
(
deptDic
);
}
}
if
(
data
.
InpatTechnicAccounting
!=
""
)
if
(
data
.
InpatTechnicAccounting
!=
""
)
{
{
per_dept_dic
deptDic
=
new
per_dept_dic
()
{
Source
=
"住院"
,
HospitalId
=
HospitalId
,
Department
=
data
.
Department
,
HISDeptName
=
data
.
HISDeptName
,
CreateTime
=
nowTime
};
deptDic
.
AccountingUnit
=
data
.
InpatTechnicAccounting
;
deptDic
.
AccountingUnit
=
data
.
InpatTechnicAccounting
;
deptDic
.
UnitType
=
"医技组"
;
deptDic
.
UnitType
=
"医技组"
;
deptDics
.
Add
(
deptDic
);
deptDics
.
Add
(
deptDic
);
...
@@ -745,21 +748,24 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
...
@@ -745,21 +748,24 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
if
(
data
.
OutDoctorAccounting
!=
""
||
data
.
OutNurseAccounting
!=
""
||
data
.
OutTechnicAccounting
!=
""
)
if
(
data
.
OutDoctorAccounting
!=
""
||
data
.
OutNurseAccounting
!=
""
||
data
.
OutTechnicAccounting
!=
""
)
{
{
per_dept_dic
deptDic
=
new
per_dept_dic
()
{
Source
=
"门诊"
,
HospitalId
=
HospitalId
,
Department
=
data
.
Department
,
HISDeptName
=
data
.
HISDeptName
,
CreateTime
=
nowTime
};
if
(
data
.
OutDoctorAccounting
!=
""
)
if
(
data
.
OutDoctorAccounting
!=
""
)
{
{
per_dept_dic
deptDic
=
new
per_dept_dic
()
{
Source
=
"门诊"
,
HospitalId
=
HospitalId
,
Department
=
data
.
Department
,
HISDeptName
=
data
.
HISDeptName
,
CreateTime
=
nowTime
};
deptDic
.
AccountingUnit
=
data
.
OutDoctorAccounting
;
deptDic
.
AccountingUnit
=
data
.
OutDoctorAccounting
;
deptDic
.
UnitType
=
"医生组"
;
deptDic
.
UnitType
=
"医生组"
;
deptDics
.
Add
(
deptDic
);
deptDics
.
Add
(
deptDic
);
}
}
if
(
data
.
OutNurseAccounting
!=
""
)
if
(
data
.
OutNurseAccounting
!=
""
)
{
{
per_dept_dic
deptDic
=
new
per_dept_dic
()
{
Source
=
"门诊"
,
HospitalId
=
HospitalId
,
Department
=
data
.
Department
,
HISDeptName
=
data
.
HISDeptName
,
CreateTime
=
nowTime
};
deptDic
.
AccountingUnit
=
data
.
OutNurseAccounting
;
deptDic
.
AccountingUnit
=
data
.
OutNurseAccounting
;
deptDic
.
UnitType
=
"护理组"
;
deptDic
.
UnitType
=
"护理组"
;
deptDics
.
Add
(
deptDic
);
deptDics
.
Add
(
deptDic
);
}
}
if
(
data
.
OutTechnicAccounting
!=
""
)
if
(
data
.
OutTechnicAccounting
!=
""
)
{
{
per_dept_dic
deptDic
=
new
per_dept_dic
()
{
Source
=
"门诊"
,
HospitalId
=
HospitalId
,
Department
=
data
.
Department
,
HISDeptName
=
data
.
HISDeptName
,
CreateTime
=
nowTime
};
deptDic
.
AccountingUnit
=
data
.
OutTechnicAccounting
;
deptDic
.
AccountingUnit
=
data
.
OutTechnicAccounting
;
deptDic
.
UnitType
=
"医技组"
;
deptDic
.
UnitType
=
"医技组"
;
deptDics
.
Add
(
deptDic
);
deptDics
.
Add
(
deptDic
);
...
@@ -802,13 +808,13 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
...
@@ -802,13 +808,13 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
{
{
{
nameof
(
DeptdicResponse
.
Department
),
"标准科室"
},
{
nameof
(
DeptdicResponse
.
Department
),
"标准科室"
},
{
nameof
(
DeptdicResponse
.
HISDeptName
),
"系统科室"
},
{
nameof
(
DeptdicResponse
.
HISDeptName
),
"系统科室"
},
{
nameof
(
DeptdicResponse
.
OutDoctorAccounting
),
"门诊·核算单元医生组"
},
{
nameof
(
DeptdicResponse
.
OutNurseAccounting
),
"门诊·核算单元护理组"
},
{
nameof
(
DeptdicResponse
.
OutTechnicAccounting
),
"门诊·核算单元医技组"
},
{
nameof
(
DeptdicResponse
.
InpatDoctorAccounting
),
"住院·核算单元医生组"
},
{
nameof
(
DeptdicResponse
.
InpatDoctorAccounting
),
"住院·核算单元医生组"
},
{
nameof
(
DeptdicResponse
.
InpatNurseAccounting
),
"住院·核算单元护理组"
},
{
nameof
(
DeptdicResponse
.
InpatNurseAccounting
),
"住院·核算单元护理组"
},
{
nameof
(
DeptdicResponse
.
InpatTechnicAccounting
),
"住院·核算单元医技组"
},
{
nameof
(
DeptdicResponse
.
InpatTechnicAccounting
),
"住院·核算单元医技组"
},
{
nameof
(
DeptdicResponse
.
LogisticsAccounting
),
"行政后勤"
},
{
nameof
(
DeptdicResponse
.
LogisticsAccounting
),
"行政后勤"
},
{
nameof
(
DeptdicResponse
.
OutDoctorAccounting
),
"门诊·核算单元医生组"
},
{
nameof
(
DeptdicResponse
.
OutNurseAccounting
),
"门诊·核算单元护理组"
},
{
nameof
(
DeptdicResponse
.
OutTechnicAccounting
),
"门诊·核算单元医技组"
},
{
nameof
(
DeptdicResponse
.
SpecialAccounting
),
"特殊核算组"
}
{
nameof
(
DeptdicResponse
.
SpecialAccounting
),
"特殊核算组"
}
};
};
}
}
...
...
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