Commit c07802ba by Neo Turing

更新

parent 23a1dbe4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment