Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Biz.Finances.V2.0
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.Biz.Finances.V2.0
Commits
1c5e53d9
Commit
1c5e53d9
authored
Jul 29, 2024
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
fab67818
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
13 deletions
+32
-13
RestfulInvoiceApply.Apply.cs
Src/Transforms/RestfulInvoiceApply.Apply.cs
+19
-0
RestfulStatistic.cs
Src/Transforms/Statistics/RestfulStatistic.cs
+13
-13
No files found.
Src/Transforms/RestfulInvoiceApply.Apply.cs
View file @
1c5e53d9
...
@@ -1014,4 +1014,23 @@ namespace Kivii.Finances.Transforms
...
@@ -1014,4 +1014,23 @@ namespace Kivii.Finances.Transforms
}
}
#
endregion
#
endregion
public
class
VatInvoice
{
public
decimal
Amount
{
get
;
set
;
}
/// <summary>
/// 发票号码
/// </summary>
public
string
SerialCode
{
get
;
set
;
}
/// <summary>
/// 发票代码
/// </summary>
public
string
SerialNumber
{
get
;
set
;
}
/// <summary>
/// 开票日期
/// </summary>
public
DateTime
OperateTime
{
get
;
set
;
}
}
}
}
Src/Transforms/Statistics/RestfulStatistic.cs
View file @
1c5e53d9
...
@@ -445,19 +445,19 @@ namespace Kivii.Finances.Transforms
...
@@ -445,19 +445,19 @@ namespace Kivii.Finances.Transforms
if
(
Type
==
AnalysisType
.
Depart
)
if
(
Type
==
AnalysisType
.
Depart
)
{
{
sqlExpress
.
GroupBy
(
o
=>
o
.
OwnerName
);
sqlExpress
.
GroupBy
(
o
=>
o
.
OwnerName
);
sqlExpress
.
Select
(
o
=>
new
sqlExpress
.
Select
(
o
=>
new
{
{
Summary
=
o
.
OwnerName
,
Summary
=
o
.
OwnerName
,
Amount
=
Sql
.
Sum
(
o
.
Amount
),
Amount
=
Sql
.
Sum
(
o
.
Amount
),
Quantity
=
Sql
.
Count
(
o
.
Kvid
),
Quantity
=
Sql
.
Count
(
o
.
Kvid
),
AmountInvoice
=
Sql
.
Sum
(
o
.
AmountInvoice
),
AmountInvoice
=
Sql
.
Sum
(
o
.
AmountInvoice
),
QuantityInvoice
=
Sql
.
Sum
(
o
.
AmountInvoice
==
o
.
Amount
?
1
:
0
),
QuantityInvoice
=
Sql
.
Sum
(
o
.
AmountInvoice
==
o
.
Amount
?
1
:
0
),
AmountUsed
=
Sql
.
Sum
(
o
.
AmountUsed
),
AmountUsed
=
Sql
.
Sum
(
o
.
AmountUsed
),
QuantityUsed
=
Sql
.
Sum
(
o
.
AmountUsed
==
o
.
Amount
?
1
:
0
),
QuantityUsed
=
Sql
.
Sum
(
o
.
AmountUsed
==
o
.
Amount
?
1
:
0
),
AmountSplit
=
Sql
.
Sum
(
o
.
Amount
),
AmountSplit
=
Sql
.
Sum
(
o
.
Amount
),
QuantitySplit
=
Sql
.
Count
(
o
.
Kvid
)
QuantitySplit
=
Sql
.
Count
(
o
.
Kvid
)
});
});
rtns
.
Results
=
conn
.
Select
<
Analysis
>(
sqlExpress
);
rtns
.
Results
=
conn
.
Select
<
Analysis
>(
sqlExpress
);
//var group = results.GroupBy(o => o.OwnerName);
//var group = results.GroupBy(o => o.OwnerName);
//foreach (var kv in group)
//foreach (var kv in group)
//{
//{
...
...
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