|
|
@ -1,3 +1,5 @@ |
|
|
|
|
|
|
|
|
|
|
|
//----------------------
|
|
|
|
// <auto-generated>
|
|
|
|
// Generated using the NSwag toolchain v14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
|
@ -212,15 +214,15 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
|
|
|
|
|
/// <returns>Success</returns>
|
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
|
public virtual System.Threading.Tasks.Task<System.Collections.Generic.ICollection<ResponCargoItem>> GetCargoStaticAsync(string p_AreaID) |
|
|
|
public virtual System.Threading.Tasks.Task<System.Collections.Generic.ICollection<ResponCargoItem>> GetCargoStaticAsync(string areaID) |
|
|
|
{ |
|
|
|
return GetCargoStaticAsync(p_AreaID, System.Threading.CancellationToken.None); |
|
|
|
return GetCargoStaticAsync(areaID, System.Threading.CancellationToken.None); |
|
|
|
} |
|
|
|
|
|
|
|
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
|
|
/// <returns>Success</returns>
|
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
|
public virtual async System.Threading.Tasks.Task<System.Collections.Generic.ICollection<ResponCargoItem>> GetCargoStaticAsync(string p_AreaID, System.Threading.CancellationToken cancellationToken) |
|
|
|
public virtual async System.Threading.Tasks.Task<System.Collections.Generic.ICollection<ResponCargoItem>> GetCargoStaticAsync(string areaID, System.Threading.CancellationToken cancellationToken) |
|
|
|
{ |
|
|
|
var client_ = _httpClient; |
|
|
|
var disposeClient_ = false; |
|
|
@ -228,8 +230,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
|
{ |
|
|
|
using (var request_ = new System.Net.Http.HttpRequestMessage()) |
|
|
|
{ |
|
|
|
request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "text/plain"); |
|
|
|
request_.Method = new System.Net.Http.HttpMethod("POST"); |
|
|
|
request_.Method = new System.Net.Http.HttpMethod("GET"); |
|
|
|
request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); |
|
|
|
|
|
|
|
var urlBuilder_ = new System.Text.StringBuilder(); |
|
|
@ -237,9 +238,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
|
// Operation Path: "CargoState/GetCargoStatic"
|
|
|
|
urlBuilder_.Append("CargoState/GetCargoStatic"); |
|
|
|
urlBuilder_.Append('?'); |
|
|
|
if (p_AreaID != null) |
|
|
|
if (areaID != null) |
|
|
|
{ |
|
|
|
urlBuilder_.Append(System.Uri.EscapeDataString("p_AreaID")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(p_AreaID, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); |
|
|
|
urlBuilder_.Append(System.Uri.EscapeDataString("AreaID")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(areaID, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); |
|
|
|
} |
|
|
|
urlBuilder_.Length--; |
|
|
|
|
|
|
@ -535,16 +536,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))")] |
|
|
|
public partial class ResponCargoItem1 |
|
|
|
{ |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 读取次数
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("number", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
public string Number { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 区域ID
|
|
|
|
/// </summary>
|
|
|
@ -569,8 +562,12 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
|
[Newtonsoft.Json.JsonProperty("flag", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
public int Flag { get; set; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("number", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
public string Number { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|