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
d46d4293
Commit
d46d4293
authored
Jan 18, 2022
by
lcx
Committed by
纪旭 韦
Jan 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取ename值,加载默认ex_module
parent
e263d637
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
performance/Performance.Services/ExConfigService.cs
+6
-12
performance/Performance.Services/ExtractExcelService/ExtractHelper/WriteDataHelper.cs
+1
-1
No files found.
performance/Performance.Services/ExConfigService.cs
View file @
d46d4293
...
...
@@ -97,24 +97,18 @@ public void DefaultModules(int hospitalId)
};
var
data
=
exmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
var
inexistence
=
data
==
null
?
moduleList
:
moduleList
.
Where
(
t
=>
!
data
.
Any
(
w
=>
w
.
ModuleName
.
StartsWith
(
t
.
ModuleName
.
Split
(
' '
)[
0
])));
var
inexistence
=
(
data
==
null
||
!
data
.
Any
())
?
moduleList
:
moduleList
.
Where
(
t
=>
!
data
.
Any
(
w
=>
w
.
ModuleName
.
StartsWith
(
t
.
ModuleName
.
Split
(
' '
)[
0
])));
if
(
inexistence
!=
null
&&
inexistence
.
Any
())
{
List
<
ex_module
>
modules
=
new
List
<
ex_module
>();
foreach
(
var
item
in
inexistence
)
{
var
module
=
new
ex_module
var
modules
=
inexistence
.
Select
(
t
=>
new
ex_module
{
HospitalId
=
hospitalId
,
ModuleName
=
item
.
ModuleName
,
SheetType
=
(
int
)
item
.
SheetType
,
ReadOnly
=
item
.
SheetType
==
(
int
)
SheetType
.
Income
?
0
:
1
,
ModuleName
=
t
.
ModuleName
,
SheetType
=
(
int
)
t
.
SheetType
,
ReadOnly
=
t
.
SheetType
==
(
int
)
SheetType
.
Income
?
0
:
1
,
TypeId
=
null
,
};
modules
.
Add
(
module
);
}
if
(
modules
.
Any
())
});
exmoduleRepository
.
AddRange
(
modules
.
ToArray
());
}
}
...
...
performance/Performance.Services/ExtractExcelService/ExtractHelper/WriteDataHelper.cs
View file @
d46d4293
...
...
@@ -205,7 +205,7 @@ public static void WriteSheetData(ISheet sheet, PerSheetPoint point, SheetType s
filed
=
sheet
.
SheetName
.
Contains
(
"住院"
)
?
fieldInpat
:
fieldOut
;
var
ename
=
data
.
Where
(
w
=>
w
.
SheetName
==
sheet
.
SheetName
)?.
FirstOrDefault
(
w
=>
!
string
.
IsNullOrEmpty
(
w
.
EName
))?.
EName
;
if
(
string
.
IsNullOrEmpty
(
ename
)
||
ename
.
Contains
(
"住院"
)
||
ename
.
Contains
(
"门诊"
))
if
(
!
string
.
IsNullOrEmpty
(
ename
)
&&
(
ename
.
Contains
(
"住院"
)
||
ename
.
Contains
(
"门诊"
)
))
filed
=
ename
.
Contains
(
"住院"
)
?
fieldInpatOut
:
fieldOutInpat
;
}
else
if
(
sheet
.
SheetName
.
Contains
(
"工作量"
))
...
...
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