Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.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
陶然
Kivii.Finances.Addons.V4.5
Commits
5847a2b4
Commit
5847a2b4
authored
Oct 26, 2023
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
b4161960
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
RestfulReadExcel.cs
Src/RestfulReadExcel.cs
+4
-2
No files found.
Src/Properties/AssemblyInfo.cs
View file @
5847a2b4
...
@@ -19,5 +19,5 @@ using System.Runtime.InteropServices;
...
@@ -19,5 +19,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("Kivii,K5")]
[assembly: AssemblyTrademark("Kivii,K5")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyVersion("5.4.2023.
805
0")]
[assembly: AssemblyVersion("5.4.2023.
1026
0")]
[assembly: AssemblyFileVersion("5.4.2023.
805
0")]
[assembly: AssemblyFileVersion("5.4.2023.
1026
0")]
Src/RestfulReadExcel.cs
View file @
5847a2b4
...
@@ -50,7 +50,8 @@ namespace Kivii.Finances.Addons
...
@@ -50,7 +50,8 @@ namespace Kivii.Finances.Addons
var
eType
=
sheet
.
Cells
[
i
,
4
].
Value
;
var
eType
=
sheet
.
Cells
[
i
,
4
].
Value
;
if
(
eType
==
null
)
if
(
eType
==
null
)
{
{
throw
new
Exception
(
$"Excel第
{
i
}
行第4列不可为空,请选择指定类型!"
);
eType
=
PaymentType
.
Bank
;
//throw new Exception($"Excel第{i}行第4列不可为空,请选择指定类型!");
}
}
if
(!
Enum
.
TryParse
(
eType
.
ToString
(),
true
,
out
PaymentType
type
))
if
(!
Enum
.
TryParse
(
eType
.
ToString
(),
true
,
out
PaymentType
type
))
{
{
...
@@ -76,7 +77,8 @@ namespace Kivii.Finances.Addons
...
@@ -76,7 +77,8 @@ namespace Kivii.Finances.Addons
var
eCurrency
=
sheet
.
Cells
[
i
,
6
].
Value
;
var
eCurrency
=
sheet
.
Cells
[
i
,
6
].
Value
;
if
(
eCurrency
==
null
)
if
(
eCurrency
==
null
)
{
{
throw
new
Exception
(
$"Excel第
{
i
}
行第6列不可为空,请传入货币单位!"
);
eCurrency
=
CurrencyUnit
.
CNY
;
//throw new Exception($"Excel第{i}行第6列不可为空,请传入货币单位!");
}
}
if
(!
Enum
.
TryParse
(
eCurrency
.
ToString
(),
true
,
out
CurrencyUnit
currency
))
if
(!
Enum
.
TryParse
(
eCurrency
.
ToString
(),
true
,
out
CurrencyUnit
currency
))
{
{
...
...
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