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
c5c952a1
Commit
c5c952a1
authored
Sep 27, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽取数据时带出新建SHEET页和数据信息
parent
dd4fedc9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
performance/Performance.Services/DFExtractService.cs
+3
-2
performance/Performance.Services/ExConfigService.cs
+1
-1
performance/Performance.Services/LogManageService.cs
+1
-1
No files found.
performance/Performance.Services/DFExtractService.cs
View file @
c5c952a1
...
...
@@ -805,6 +805,7 @@ private void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook workbook
}
int
sheetIndex
=
0
;
int
newSheetCount
=
0
;
foreach
(
var
module
in
modulesList
.
Where
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
Income
)?.
OrderBy
(
t
=>
t
.
ModuleName
))
{
var
sheet
=
workbook
.
GetSheet
(
module
.
ModuleName
);
...
...
@@ -822,7 +823,7 @@ private void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook workbook
logger
.
LogInformation
(
$"newSheet:
{
newSheet
.
SheetName
}
"
);
workbook
.
SetSheetOrder
(
newSheet
.
SheetName
,
sheetIndex
);
workbook
.
SetSheetName
(
sheetIndex
,
module
.
ModuleName
);
sheetIndex
++;
sheetIndex
++;
newSheetCount
++;
}
}
}
...
...
@@ -839,7 +840,7 @@ private void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook workbook
{
var
item
=
pairs
.
Where
(
t
=>
t
.
Key
.
StartsWith
(
"3."
)).
OrderByDescending
(
t
=>
t
.
Key
).
First
();
if
(
sheetIndex
==
0
)
sheetIndex
=
item
.
Value
+
1
;
sheetIndex
=
item
.
Value
+
newSheetCount
+
1
;
var
copysheet
=
workbook
.
GetSheet
(
item
.
Key
);
var
newSheet
=
copysheet
.
CopySheet
(
item
.
Key
+
Guid
.
NewGuid
().
ToString
(
"N"
),
true
);
logger
.
LogInformation
(
$"newSheet:
{
newSheet
.
SheetName
}
"
);
...
...
performance/Performance.Services/ExConfigService.cs
View file @
c5c952a1
...
...
@@ -504,7 +504,7 @@ public List<TitleValue> ExtractScheme(int hospitalId, List<int> executeType)
public
List
<
TitleValue
>
FeeType
()
{
var
titlevalue
=
new
List
<
TitleValue
>();
var
type
=
EnumHelper
.
GetItems
<
SheetType
>().
Where
(
t
=>
new
List
<
int
>
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
,
(
int
)
SheetType
.
SpecialUnit
}.
Contains
(
t
.
Value
));
var
type
=
EnumHelper
.
GetItems
<
SheetType
>().
Where
(
t
=>
new
List
<
int
>
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
,
(
int
)
SheetType
.
SpecialUnit
,
(
int
)
SheetType
.
OtherWorkload
}.
Contains
(
t
.
Value
));
if
(
type
!=
null
&&
type
.
Any
())
{
titlevalue
=
type
.
Select
(
t
=>
new
TitleValue
...
...
performance/Performance.Services/LogManageService.cs
View file @
c5c952a1
...
...
@@ -83,7 +83,7 @@ public void ReturnTheLog(int allotId, string groupName, int type, string tag, ob
var
http
=
url
.
ImportFile
+
$"/template/returnlog?type=
{
type
}
&tag=
{
tag
}
&message=
{
message
}
&level=
{
level
}
&groupName=
{
groupName
}
"
;
//logger.LogInformation("发送日志:" + http);
logdbug
.
Add
(
allotId
,
tag
,
message
.
ToString
(),
level
,
type
);
//
HttpHelper.HttpPost(http);
HttpHelper
.
HttpPost
(
http
);
}
catch
(
Exception
ex
)
{
...
...
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