Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Third.Chinaerdos.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.Third.Chinaerdos.V4.5
Commits
c07802ba
Commit
c07802ba
authored
Oct 24, 2024
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
23a1dbe4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
OrderExtension.cs
Src/Extensions/OrderExtension.cs
+10
-9
No files found.
Src/Extensions/OrderExtension.cs
View file @
c07802ba
...
...
@@ -23,7 +23,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
/// <param name="baseUrl"></param>
/// <param name="apptoken"></param>
/// <returns></returns>
internal
static
OrderResponse
PullOrders
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
DateTime
?
beginTime
=
null
,
DateTime
?
endTime
=
null
,
int
length
=
200
)
public
static
OrderResponse
PullOrders
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
DateTime
?
beginTime
=
null
,
DateTime
?
endTime
=
null
,
int
length
=
200
)
{
(
_client
==
null
).
ThrowIfTrue
(
"PullOrders:请传入_client"
);
(
apptoken
.
IsNullOrEmpty
()).
ThrowIfTrue
(
"PullOrders:请传入apptoken"
);
...
...
@@ -45,7 +45,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
return
response
;
}
internal
static
OrderResponse
PullOrderData
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
string
docNo
)
public
static
OrderResponse
PullOrderData
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
string
docNo
)
{
(
_client
==
null
).
ThrowIfTrue
(
"PullOrderData:请传入_client"
);
(
apptoken
.
IsNullOrEmpty
()).
ThrowIfTrue
(
"PullOrderData:请传入apptoken"
);
...
...
@@ -73,7 +73,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
/// <param name="appsecret"></param>
/// <param name="orderNo"></param>
/// <returns></returns>
internal
static
OrderResponse
AcceptOrderConfirm
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
string
orderNo
)
public
static
OrderResponse
AcceptOrderConfirm
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
string
orderNo
)
{
(
_client
==
null
).
ThrowIfTrue
(
"AcceptOrderConfirm:请传入_client"
);
(
apptoken
.
IsNullOrEmpty
()).
ThrowIfTrue
(
"AcceptOrderConfirm:请传入apptoken"
);
...
...
@@ -98,7 +98,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
}
}
internal
static
OrderResponse
RejectOrder
(
JsonHttpClient
_client
,
string
orderNo
,
string
apptoken
=
null
,
string
appsecret
=
null
)
public
static
OrderResponse
RejectOrder
(
JsonHttpClient
_client
,
string
orderNo
,
string
apptoken
=
null
,
string
appsecret
=
null
)
{
(
_client
==
null
).
ThrowIfTrue
(
"RejectOrder:请传入_client"
);
if
(
apptoken
.
IsNullOrEmpty
())
apptoken
=
Configs
.
_token
;
//.ThrowIfTrue("RejectOrder:请传入apptoken");
...
...
@@ -129,7 +129,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
/// <param name="orders"></param>
/// <param name="conn"></param>
/// <returns></returns>
internal
static
List
<
ThirdReportOrder
>
AcceptThirdContractOrder
(
this
List
<
ErdosOrder
>
orders
,
Guid
?
ownerKvid
=
null
,
string
ownerName
=
null
,
IDbConnection
conn
=
null
)
public
static
List
<
ThirdReportOrder
>
AcceptThirdContractOrder
(
this
List
<
ErdosOrder
>
orders
,
Guid
?
ownerKvid
=
null
,
string
ownerName
=
null
,
IDbConnection
conn
=
null
)
{
(
orders
.
IsNullOrEmpty
()).
ThrowIfTrue
(
"AcceptThirdContractOrder:请传入orders"
);
bool
useTransaction
=
conn
==
null
;
//是否启用事务,如果外部未传入conn,启用内部事务
...
...
@@ -203,7 +203,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
/// <param name="appsecret"></param>
/// <param name="orderResult"></param>
/// <returns></returns>
internal
static
OrderResponse
UploadOrderResult
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
OrderResult
orderResult
)
public
static
OrderResponse
UploadOrderResult
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
OrderResult
orderResult
)
{
(
_client
==
null
).
ThrowIfTrue
(
"UploadOrderResult:请传入_client"
);
(
apptoken
.
IsNullOrEmpty
()).
ThrowIfTrue
(
"UploadOrderResult:请传入apptoken"
);
...
...
@@ -232,7 +232,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
/// <param name="orderNo"></param>
/// <param name="orderPdfs"></param>
/// <returns></returns>
internal
static
OrderResponse
UploadOrderPdf
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
string
orderNo
,
List
<
OrderPdf
>
orderPdfs
)
public
static
OrderResponse
UploadOrderPdf
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
string
orderNo
,
List
<
OrderPdf
>
orderPdfs
)
{
(
_client
==
null
).
ThrowIfTrue
(
"UploadOrderPdf:请传入_client"
);
(
apptoken
.
IsNullOrEmpty
()).
ThrowIfTrue
(
"UploadOrderPdf:请传入apptoken"
);
...
...
@@ -261,7 +261,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
/// <param name="appsecret"></param>
/// <param name="result"></param>
/// <returns></returns>
internal
static
OrderResponse
UploadOrderComplete
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
OrderResult
result
)
public
static
OrderResponse
UploadOrderComplete
(
this
JsonHttpClient
_client
,
string
apptoken
,
string
appsecret
,
OrderResult
result
)
{
(
_client
==
null
).
ThrowIfTrue
(
"UploadOrderComplete:请传入_client"
);
(
apptoken
.
IsNullOrEmpty
()).
ThrowIfTrue
(
"UploadOrderComplete:请传入apptoken"
);
...
...
@@ -280,7 +280,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
return
response
;
}
internal
static
void
LinkReports
(
List
<
ThirdReportOrder
>
thirds
=
null
)
public
static
void
LinkReports
(
List
<
ThirdReportOrder
>
thirds
=
null
)
{
var
conn
=
KiviiContext
.
GetOpenedDbConnection
<
Report
>();
if
(
thirds
.
IsNullOrEmpty
())
...
...
@@ -390,6 +390,7 @@ namespace Kivii.Third.Chinaerdos.Extensions
var
md
=
new
ErdosOrder
();
CultureInfo
cultureInfo
=
Thread
.
CurrentThread
.
CurrentCulture
;
TextInfo
textInfo
=
cultureInfo
.
TextInfo
;
Console
.
WriteLine
(
"-----------------------------------------------"
);
foreach
(
var
d
in
dic
)
{
var
filed
=
textInfo
.
ToTitleCase
(
d
.
Key
);
...
...
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