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
b5931dfa
Commit
b5931dfa
authored
Mar 25, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/debug' into feature/new_report
parents
739c6a2c
41c22317
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
performance/Performance.Services/PerExcelService/NopiSevice.cs
+23
-0
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadIncome.cs
+2
-2
No files found.
performance/Performance.Services/PerExcelService/NopiSevice.cs
View file @
b5931dfa
...
...
@@ -10,6 +10,29 @@ namespace Performance.Services
{
public
class
NopiSevice
{
public
static
string
GetCellStringValue
(
ICell
cell
)
{
if
(
cell
!=
null
)
{
try
{
switch
(
cell
.
CellType
)
{
case
CellType
.
Numeric
:
return
cell
.
NumericCellValue
.
ToString
();
case
CellType
.
String
:
return
cell
.
StringCellValue
.
ToString
();
case
CellType
.
Formula
:
return
cell
.
NumericCellValue
.
ToString
();
}
}
catch
(
Exception
ex
)
{
//throw ex;
}
}
return
null
;
}
public
static
decimal
?
GetCellValue
(
ICell
cell
)
{
if
(
cell
!=
null
)
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadIncome.cs
View file @
b5931dfa
...
...
@@ -73,8 +73,8 @@ public List<IPerData> ReadData(ISheet sheet, List<PerHeader> perHeader)
{
RowNumber
=
r
,
SignID
=
athead
.
SignID
,
AccountingUnit
=
row
.
GetCell
(
unit
.
AccountingUnitCellNum
.
Value
)?.
StringCellValue
,
Department
=
row
.
GetCell
(
unit
.
DeptCellNum
.
Value
)?.
StringCellValue
,
AccountingUnit
=
NopiSevice
.
GetCellStringValue
(
row
.
GetCell
(
unit
.
AccountingUnitCellNum
.
Value
))
,
Department
=
NopiSevice
.
GetCellStringValue
(
row
.
GetCell
(
unit
.
DeptCellNum
.
Value
))
,
TypeName
=
athead
?.
CellValue
,
CellValue
=
cellValue
,
Annotation
=
row
.
GetCell
(
athead
.
PointCell
)?.
CellComment
?.
String
?.
String
,
...
...
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