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
790e80ce
Commit
790e80ce
authored
Nov 23, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/科室详情修改' into develop
parents
0d417378
5275c85f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
performance/Performance.Services/ComputeService.cs
+13
-13
No files found.
performance/Performance.Services/ComputeService.cs
View file @
790e80ce
...
...
@@ -1188,7 +1188,7 @@ public List<res_baiscnorm> GetBaiscnorm(int allotId)
/// <param name="accountId"></param>
/// <param name="type"></param>
/// <returns></returns>
public
DeptDataDetails
<
DetailModuleExtend
>
DeptDetail
(
int
accountId
)
public
DeptDataDetails
DeptDetail
(
int
accountId
)
{
var
account
=
perforResaccountRepository
.
GetEntity
(
t
=>
t
.
ID
==
accountId
);
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
account
.
AllotID
);
...
...
@@ -1196,18 +1196,18 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
var
headers
=
_perforImheaderRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
account
.
AllotID
);
var
basicData
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
account
.
AllotID
&&
t
.
AccountingUnit
==
account
.
AccountingUnit
);
Func
<
string
,
string
>
getShowKey
=
(
name
)
=>
{
string
_key
=
"开单"
;
if
(
string
.
IsNullOrEmpty
(
name
))
return
_key
;
//
Func<string, string> getShowKey = (name) =>
//
{
//
string _key = "开单";
//
if (string.IsNullOrEmpty(name)) return _key;
if
(
name
.
IndexOf
(
"就诊"
)
>
-
1
)
_key
=
"就诊"
;
//
if (name.IndexOf("就诊") > -1)
//
_key = "就诊";
return
_key
;
};
//
return _key;
//
};
string
key
=
getShowKey
.
Invoke
(
persheet
.
FirstOrDefault
(
t
=>
t
.
SheetName
.
NoBlank
().
StartsWith
(
"1.1.1"
))?.
SheetName
);
//
string key = getShowKey.Invoke(persheet.FirstOrDefault(t => t.SheetName.NoBlank().StartsWith("1.1.1"))?.SheetName);
DeptDataDetails
deptDetails
=
new
DeptDataDetails
...
...
@@ -1217,7 +1217,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
Detail
=
new
List
<
DetailDtos
>()
};
if
(
basicData
==
null
||
!
basicData
.
Any
())
return
MergeDetails
(
deptDetails
,
key
)
;
if
(
basicData
==
null
||
!
basicData
.
Any
())
return
deptDetails
;
var
sheetType
=
new
List
<
int
>
{
...
...
@@ -1285,8 +1285,8 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
deptDetails
.
Pandect
.
MaterialsExtra
=
deptDetails
.
Detail
?.
FirstOrDefault
(
w
=>
w
.
OriginalType
==
(
int
)
SheetType
.
AccountMaterialsAssess
)?.
Amount
??
deptDetails
.
Pandect
.
MaterialsExtra
;
deptDetails
.
Pandect
.
MedicineExtra
=
deptDetails
.
Detail
?.
FirstOrDefault
(
w
=>
w
.
OriginalType
==
(
int
)
SheetType
.
AccountDrugAssess
)?.
Amount
??
deptDetails
.
Pandect
.
MedicineExtra
;
return
MergeDetails
(
deptDetails
,
key
);
//
return deptDetails;
//
return MergeDetails(deptDetails, key);
return
deptDetails
;
}
private
decimal
?
GetFactors
(
List
<
per_sheet
>
persheet
,
List
<
im_data
>
basicData
,
UnitType
type
,
SheetType
sheetType
)
...
...
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