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
d48c18ad
Commit
d48c18ad
authored
Jun 15, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改 科室详情中医技工作量未加载,读取核算科室数据列头过滤
parent
b412f956
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
13 deletions
+29
-13
performance/Performance.Services/ComputeService.cs
+27
-13
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadDeptAccounting.cs
+2
-0
No files found.
performance/Performance.Services/ComputeService.cs
View file @
d48c18ad
...
@@ -515,9 +515,8 @@ public List<res_baiscnorm> GetBaiscnorm(int allotId)
...
@@ -515,9 +515,8 @@ public List<res_baiscnorm> GetBaiscnorm(int allotId)
/// <returns></returns>
/// <returns></returns>
public
DeptDataDetails
DeptDetail
(
int
accountId
)
public
DeptDataDetails
DeptDetail
(
int
accountId
)
{
{
var
sheetType
=
new
List
<
int
>
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
};
var
doctor
=
perforResaccountRepository
.
GetEntity
(
t
=>
t
.
ID
==
accountId
);
var
doctor
=
perforResaccountRepository
.
GetEntity
(
t
=>
t
.
ID
==
accountId
);
string
typeValue
=
EnumHelper
.
GetItems
<
UnitType
>().
FirstOrDefault
(
t
=>
t
.
Value
==
doctor
.
UnitType
).
Name
.
ToString
();
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
doctor
.
AllotID
);
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
doctor
.
AllotID
);
DeptDataDetails
deptDetails
=
new
DeptDataDetails
DeptDataDetails
deptDetails
=
new
DeptDataDetails
{
{
...
@@ -525,27 +524,41 @@ public DeptDataDetails DeptDetail(int accountId)
...
@@ -525,27 +524,41 @@ public DeptDataDetails DeptDetail(int accountId)
Pandect
=
Mapper
.
Map
<
PerDataAccountBaisc
>(
doctor
),
Pandect
=
Mapper
.
Map
<
PerDataAccountBaisc
>(
doctor
),
Detail
=
new
List
<
DetailDtos
>()
Detail
=
new
List
<
DetailDtos
>()
};
};
int
type
=
doctor
.
UnitType
.
Value
;
if
(
type
==
(
int
)
UnitType
.
专家组
||
type
==
(
int
)
UnitType
.
其他医技组
||
type
==
(
int
)
UnitType
.
其他医生组
)
type
=
1
;
else
if
(
type
==
(
int
)
UnitType
.
其他护理组
)
type
=
2
;
var
basicData
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
doctor
.
AllotID
&&
t
.
UnitType
==
type
&&
t
.
AccountingUnit
==
doctor
.
AccountingUnit
);
var
persheet
=
_perforPerSheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
doctor
.
AllotID
);
var
persheet
=
_perforPerSheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
doctor
.
AllotID
);
var
headers
=
_perforImheaderRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
doctor
.
AllotID
);
//科室经济
//科室经济
var
sheetEconomic
=
persheet
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
ComputeEconomic
);
var
sheetEconomic
=
persheet
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
ComputeEconomic
);
var
dataEconomicList
=
basicData
.
Where
(
t
=>
t
.
SheetID
==
sheetEconomic
?.
ID
&&
t
.
UnitType
==
type
&&
t
.
IsTotal
!=
1
&&
t
.
AccountingUnit
==
doctor
.
AccountingUnit
).
ToList
();
var
basicData
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
doctor
.
AllotID
&&
t
.
AccountingUnit
==
doctor
.
AccountingUnit
);
var
economic
=
dataEconomicList
?.
Select
(
t
=>
new
DeptDetail
{
ItemName
=
t
.
TypeName
.
Replace
(
$"(
{
typeValue
}
)"
,
""
),
ItemValue
=
t
.
CellValue
??
0
});
var
dataEconomicList
=
basicData
.
Where
(
t
=>
t
.
SheetID
==
sheetEconomic
?.
ID
&&
t
.
IsTotal
!=
1
&&
t
.
AccountingUnit
==
doctor
.
AccountingUnit
).
ToList
();
string
typeValue
=
EnumHelper
.
GetDescription
((
UnitType
)
doctor
.
UnitType
);
var
economic
=
dataEconomicList
?.
Select
(
t
=>
new
{
ItemName
=
t
.
TypeName
.
Replace
(
$"(
{
typeValue
}
)"
,
""
),
ItemValue
=
t
.
CellValue
??
0
,
t
.
UnitType
});
var
headers
=
_perforImheaderRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
doctor
.
AllotID
);
Regex
reg
=
new
Regex
(
"[0-9]*"
);
Regex
reg
=
new
Regex
(
"[0-9]*"
);
int
type
=
doctor
.
UnitType
.
Value
;
var
docUnitTypes
=
new
List
<
int
>
{
(
int
)
UnitType
.
专家组
,
(
int
)
UnitType
.
其他医生组
,
(
int
)
UnitType
.
其他医技组
};
if
(
docUnitTypes
.
Contains
(
type
))
type
=
1
;
else
if
(
type
==
(
int
)
UnitType
.
其他护理组
)
type
=
2
;
var
sheetType
=
new
List
<
int
>
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
};
foreach
(
var
stype
in
sheetType
)
foreach
(
var
stype
in
sheetType
)
{
{
if
(
type
==
3
&&
stype
==
(
int
)
SheetType
.
Workload
)
type
=
1
;
foreach
(
var
sheet
in
persheet
.
Where
(
t
=>
t
.
SheetType
==
stype
))
foreach
(
var
sheet
in
persheet
.
Where
(
t
=>
t
.
SheetType
==
stype
))
{
{
var
sheetName
=
reg
.
Replace
(
sheet
.
SheetName
,
""
,
5
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
);
var
sheetName
=
reg
.
Replace
(
sheet
.
SheetName
,
""
,
5
).
Replace
(
"."
,
""
).
Replace
(
" "
,
""
);
var
sheetData
=
basicData
.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
).
ToList
();
var
sheetData
=
basicData
.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
UnitType
==
type
).
ToList
();
if
(
sheetData
==
null
||
!
sheetData
.
Any
())
continue
;
if
(
sheetData
==
null
||
!
sheetData
.
Any
())
continue
;
var
headerData
=
headers
?.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
);
var
headerData
=
headers
?.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
);
...
@@ -554,7 +567,8 @@ public DeptDataDetails DeptDetail(int accountId)
...
@@ -554,7 +567,8 @@ public DeptDataDetails DeptDetail(int accountId)
{
{
ItemName
=
sheetName
,
ItemName
=
sheetName
,
IncomeType
=
sheet
.
SheetType
==
(
int
)
SheetType
.
Expend
?
2
:
sheet
.
SheetType
==
(
int
)
SheetType
.
Workload
?
3
:
1
,
IncomeType
=
sheet
.
SheetType
==
(
int
)
SheetType
.
Expend
?
2
:
sheet
.
SheetType
==
(
int
)
SheetType
.
Workload
?
3
:
1
,
Amount
=
(
sheet
.
SheetType
==
(
int
)
SheetType
.
Workload
?
doctor
.
WorkloadFee
:
economic
.
FirstOrDefault
(
t
=>
t
.
ItemName
.
Contains
(
sheetName
))?.
ItemValue
)
??
0
m
,
Amount
=
(
sheet
.
SheetType
==
(
int
)
SheetType
.
Workload
?
doctor
.
WorkloadFee
:
economic
.
FirstOrDefault
(
t
=>
t
.
ItemName
.
Contains
(
sheetName
)
&&
t
.
UnitType
==
type
)?.
ItemValue
)
??
0
m
,
};
};
var
items
=
sheetData
?.
Select
(
t
=>
new
DetailModule
var
items
=
sheetData
?.
Select
(
t
=>
new
DetailModule
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadDeptAccounting.cs
View file @
d48c18ad
...
@@ -39,6 +39,8 @@ public List<IPerData> ReadData(ISheet sheet, List<PerHeader> perHeader)
...
@@ -39,6 +39,8 @@ public List<IPerData> ReadData(ISheet sheet, List<PerHeader> perHeader)
"保底绩效系数"
,
"保底绩效系数"
,
"其他绩效1"
,
"其他绩效1"
,
"其他绩效2"
,
"其他绩效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