Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
Njhg.Finances.Addons.V4.5
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Njhg.Finances.Addons.V4.5
Commits
6c73f765
Commit
6c73f765
authored
Jun 28, 2024
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
e33305f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Njhg.Finances.Payment.Receipt.xlsx
Src/Content/Templates/Njhg.Finances.Payment.Receipt.xlsx
+0
-0
RestfulReadExcel.cs
Src/RestfulReadExcel.cs
+8
-8
No files found.
Src/Content/Templates/Njhg.Finances.Payment.Receipt.xlsx
View file @
6c73f765
No preview for this file type
Src/RestfulReadExcel.cs
View file @
6c73f765
...
...
@@ -74,29 +74,29 @@ namespace Njhg.Finances.Addons
{
throw
new
Exception
(
$"Excel第
{
i
}
行第5列金额不能小于等于零!"
);
}
var
eSerialNumber
=
sheet
.
Cells
[
i
,
9
].
Value
;
var
eSerialNumber
=
sheet
.
Cells
[
i
,
10
].
Value
;
if
(
eSerialNumber
==
null
)
{
throw
new
Exception
(
$"Excel第
{
i
}
行第
9
列不可为空,请传入不重复的流水号!"
);
throw
new
Exception
(
$"Excel第
{
i
}
行第
10
列不可为空,请传入不重复的流水号!"
);
}
var
serialNumber
=
$"
{
operateTime
:
yyyyMMddHHmmss
}{
eSerialNumber
}
"
;
var
ePayerName
=
sheet
.
Cells
[
i
,
7
].
Value
;
var
ePayerName
=
sheet
.
Cells
[
i
,
8
].
Value
;
if
(
ePayerName
==
null
)
{
throw
new
Exception
(
$"Excel第
{
i
}
行第
7
列不可为空,请传入付款单位!"
);
throw
new
Exception
(
$"Excel第
{
i
}
行第
8
列不可为空,请传入付款单位!"
);
}
var
payerName
=
ePayerName
.
ToString
();
var
type
=
PaymentType
.
Bank
;
var
currency
=
CurrencyUnit
.
CNY
;
var
eBank
=
sheet
.
Cells
[
i
,
8
].
Value
;
var
eBank
=
sheet
.
Cells
[
i
,
9
].
Value
;
var
bank
=
eBank
==
null
?
string
.
Empty
:
eBank
.
ToString
();
var
eBankNumber
=
sheet
.
Cells
[
i
,
6
].
Value
;
var
eBankNumber
=
sheet
.
Cells
[
i
,
7
].
Value
;
var
bankNumber
=
eBankNumber
==
null
?
string
.
Empty
:
eBankNumber
.
ToString
();
var
eSummary
=
sheet
.
Cells
[
i
,
1
1
].
Value
;
var
eSummary
=
sheet
.
Cells
[
i
,
1
2
].
Value
;
var
summary
=
eSummary
==
null
?
string
.
Empty
:
eSummary
.
ToString
();
var
eRemark
=
sheet
.
Cells
[
i
,
1
0
].
Value
;
var
eRemark
=
sheet
.
Cells
[
i
,
1
1
].
Value
;
var
remark
=
eRemark
==
null
?
string
.
Empty
:
eRemark
.
ToString
();
#
endregion
...
...
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