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
3946dc4a
Commit
3946dc4a
authored
Apr 07, 2022
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
25009ce4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
Kivii.Biz.Finances.V2.0.csproj
Src/Kivii.Biz.Finances.V2.0.csproj
+4
-4
RestfulSettlement.Offset.cs
Src/Transforms/RestfulSettlement.Offset.cs
+1
-1
RestfulSettlement.cs
Src/Transforms/RestfulSettlement.cs
+1
-1
packages.config
Src/packages.config
+3
-2
No files found.
Src/Kivii.Biz.Finances.V2.0.csproj
View file @
3946dc4a
...
...
@@ -31,14 +31,14 @@
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"Kivii.Common.V4.5, Version=5.6.2022.40
0
0, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\Kivii.Common.5.6.2022.40
0
0\lib\net45\Kivii.Common.V4.5.dll
</HintPath>
<Reference
Include=
"Kivii.Common.V4.5, Version=5.6.2022.40
2
0, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\Kivii.Common.5.6.2022.40
2
0\lib\net45\Kivii.Common.V4.5.dll
</HintPath>
</Reference>
<Reference
Include=
"Kivii.Core.V4.5, Version=5.6.2022.4000, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\Kivii.Core.5.6.2022.4000\lib\net45\Kivii.Core.V4.5.dll
</HintPath>
</Reference>
<Reference
Include=
"Kivii.Linq.V4.5, Version=5.6.2022.40
11
, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\Kivii.Linq.5.6.2022.40
1
1\lib\net45\Kivii.Linq.V4.5.dll
</HintPath>
<Reference
Include=
"Kivii.Linq.V4.5, Version=5.6.2022.40
20
, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\..\packages\Kivii.Linq.5.6.2022.40
2
1\lib\net45\Kivii.Linq.V4.5.dll
</HintPath>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
...
...
Src/Transforms/RestfulSettlement.Offset.cs
View file @
3946dc4a
...
...
@@ -25,7 +25,7 @@ namespace Kivii.Finances.Transforms
var
settlements
=
connF
.
Select
<
Settlement
>(
o
=>
Sql
.
In
(
o
.
Kvid
,
Kvids
));
(
settlements
.
Count
!=
Kvids
.
Count
).
ThrowIfTrue
(
"所选结算和查询结果不一致!"
);
settlements
.
Exists
(
o
=>
o
.
OffsetKvid
!=
Guid
.
Empty
).
ThrowIfTrue
(
"存在已作废结算,无法重复作废"
);
settlements
.
Exists
(
o
=>
o
.
AmountPayment
!=
o
.
Amount
).
ThrowIfTrue
(
"作废错误:作废的结算中包含未收款的结算!"
);
settlements
.
Exists
(
o
=>
o
.
AmountPayment
<=
0
).
ThrowIfTrue
(
"作废错误:作废的结算中包含未收款的结算!"
);
//connF.Exists<Settlement>(o => o.AmountPayment != o.Amount && Sql.In(o.Kvid, Kvids)).ThrowIfTrue("作废错误:作废的结算中包含未收款的结算!");
////如果泛型类型不是Settlement本身就需要判断
//if (typeof(G) != typeof(Settlement)) connE.Exists<EntitySettlement<G>>(o => o.AmountPayment != o.Amount && Sql.In(o.Kvid, Kvids)).ThrowIfTrue("作废错误:作废的结算中包含未收款的结算!");
...
...
Src/Transforms/RestfulSettlement.cs
View file @
3946dc4a
...
...
@@ -291,7 +291,7 @@ namespace Kivii.Finances.Transforms
if
(
IsPayed
!=
null
)
{
if
(
IsPayed
.
Value
)
sqlExpress
.
And
(
o
=>
o
.
AmountPayment
==
o
.
Amount
);
else
sqlExpress
.
And
(
o
=>
o
.
AmountPayment
<
o
.
Amount
||
o
.
AmountPayment
=
=
0
);
else
sqlExpress
.
And
(
o
=>
o
.
AmountPayment
<
o
.
Amount
||
o
.
AmountPayment
<
=
0
);
}
if
(
IsBilled
!=
null
)
{
...
...
Src/packages.config
View file @
3946dc4a
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"Kivii.Common"
version
=
"5.6.2022.40
0
0"
targetFramework
=
"net45"
/>
<
package
id
=
"Kivii.Common"
version
=
"5.6.2022.40
2
0"
targetFramework
=
"net45"
/>
<
package
id
=
"Kivii.Core"
version
=
"5.6.2022.4000"
targetFramework
=
"net45"
/>
<
package
id
=
"Kivii.Linq"
version
=
"5.6.2022.40
1
1"
targetFramework
=
"net45"
/>
<
package
id
=
"Kivii.Linq"
version
=
"5.6.2022.40
2
1"
targetFramework
=
"net45"
/>
</
packages
>
\ No newline at end of file
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