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
f78291b1
Commit
f78291b1
authored
Feb 15, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精简代码
parent
402df3e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
performance/Performance.Services/OnlineExcel/OnlineExcelService.Read.cs
+3
-5
No files found.
performance/Performance.Services/OnlineExcel/OnlineExcelService.Read.cs
View file @
f78291b1
...
@@ -105,9 +105,8 @@ public EpSheet ReadSheet(per_allot allot, string sheetName)
...
@@ -105,9 +105,8 @@ public EpSheet ReadSheet(per_allot allot, string sheetName)
using
(
ExcelPackage
package
=
new
ExcelPackage
(
file
))
using
(
ExcelPackage
package
=
new
ExcelPackage
(
file
))
{
{
foreach
(
var
sheet
in
package
.
Workbook
.
Worksheets
)
var
sheet
=
package
.
Workbook
.
Worksheets
.
FirstOrDefault
(
w
=>
w
.
Name
==
sheetName
);
{
if
(
sheet
==
null
)
return
null
;
if
(
sheet
.
Name
!=
sheetName
)
continue
;
IEnumerable
<
EpMerge
>
mergeCells
=
GetMergeCells
(
sheet
);
IEnumerable
<
EpMerge
>
mergeCells
=
GetMergeCells
(
sheet
);
List
<
double
>
colWidths
=
GetColWidths
(
sheet
);
List
<
double
>
colWidths
=
GetColWidths
(
sheet
);
...
@@ -160,10 +159,9 @@ public EpSheet ReadSheet(per_allot allot, string sheetName)
...
@@ -160,10 +159,9 @@ public EpSheet ReadSheet(per_allot allot, string sheetName)
_cache
.
Set
(
key
,
epSheet
,
absoluteExpirationRelativeToNow
);
_cache
.
Set
(
key
,
epSheet
,
absoluteExpirationRelativeToNow
);
return
epSheet
;
return
epSheet
;
}
}
}
}
return
null
;
}
#
region
#
region
//private static List<double> GetRowHeights(ExcelWorksheet sheet)
//private static List<double> GetRowHeights(ExcelWorksheet sheet)
...
...
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