|
|
|
@ -0,0 +1,703 @@
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
// <auto-generated>
|
|
|
|
|
// This code was generated by a tool.
|
|
|
|
|
//
|
|
|
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
|
|
// the code is regenerated.
|
|
|
|
|
// </auto-generated>
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
namespace ItemServices
|
|
|
|
|
{
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="items", Namespace="http://schemas.datacontract.org/2004/07/KWERPService.CommServices")]
|
|
|
|
|
public partial class items : object
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
private string catCodeField;
|
|
|
|
|
|
|
|
|
|
private float ctsField;
|
|
|
|
|
|
|
|
|
|
private string goldIDField;
|
|
|
|
|
|
|
|
|
|
private float gramsField;
|
|
|
|
|
|
|
|
|
|
private string item_descField;
|
|
|
|
|
|
|
|
|
|
private long itemcodeField;
|
|
|
|
|
|
|
|
|
|
private int karatField;
|
|
|
|
|
|
|
|
|
|
private string manrefField;
|
|
|
|
|
|
|
|
|
|
private string modelnoField;
|
|
|
|
|
|
|
|
|
|
private System.DateTime modifieddateField;
|
|
|
|
|
|
|
|
|
|
private double mrpField;
|
|
|
|
|
|
|
|
|
|
private string picField;
|
|
|
|
|
|
|
|
|
|
private double prevsrpField;
|
|
|
|
|
|
|
|
|
|
private string seriescodeField;
|
|
|
|
|
|
|
|
|
|
private string sizeField;
|
|
|
|
|
|
|
|
|
|
private string sizeunitField;
|
|
|
|
|
|
|
|
|
|
private System.DateTime sourceDateField;
|
|
|
|
|
|
|
|
|
|
private double srpField;
|
|
|
|
|
|
|
|
|
|
private string supCodeField;
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string catCode
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.catCodeField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.catCodeField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public float cts
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.ctsField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.ctsField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string goldID
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.goldIDField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.goldIDField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public float grams
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.gramsField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.gramsField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string item_desc
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.item_descField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.item_descField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public long itemcode
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.itemcodeField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.itemcodeField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public int karat
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.karatField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.karatField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string manref
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.manrefField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.manrefField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string modelno
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.modelnoField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.modelnoField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public System.DateTime modifieddate
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.modifieddateField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.modifieddateField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public double mrp
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.mrpField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.mrpField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string pic
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.picField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.picField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public double prevsrp
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.prevsrpField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.prevsrpField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string seriescode
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.seriescodeField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.seriescodeField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string size
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.sizeField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.sizeField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string sizeunit
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.sizeunitField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.sizeunitField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public System.DateTime sourceDate
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.sourceDateField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.sourceDateField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public double srp
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.srpField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.srpField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
|
|
|
public string supCode
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.supCodeField;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.supCodeField = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="ItemServices.IItemService")]
|
|
|
|
|
public interface IItemService
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/TestCall", ReplyAction="http://tempuri.org/IItemService/TestCallResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<string> TestCallAsync();
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/GetData", ReplyAction="http://tempuri.org/IItemService/GetDataResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.items[]> GetDataAsync();
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/GetTopData", ReplyAction="http://tempuri.org/IItemService/GetTopDataResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.items[]> GetTopDataAsync(int limit);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/GetDataByItemcode", ReplyAction="http://tempuri.org/IItemService/GetDataByItemcodeResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.items> GetDataByItemcodeAsync(long itemcode);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/GetDataByModelno", ReplyAction="http://tempuri.org/IItemService/GetDataByModelnoResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.items> GetDataByModelnoAsync(string modelno);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/GetItemListByModelnos", ReplyAction="http://tempuri.org/IItemService/GetItemListByModelnosResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.items[]> GetItemListByModelnosAsync(string[] modelnos);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/GetItemListByModelnoStartsWith", ReplyAction="http://tempuri.org/IItemService/GetItemListByModelnoStartsWithResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.items[]> GetItemListByModelnoStartsWithAsync(string modelno);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/GetItemListByDescription", ReplyAction="http://tempuri.org/IItemService/GetItemListByDescriptionResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.items[]> GetItemListByDescriptionAsync(string description);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/GetItemListByDynamicParameter", ReplyAction="http://tempuri.org/IItemService/GetItemListByDynamicParameterResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.items[]> GetItemListByDynamicParameterAsync(string SQLFilters);
|
|
|
|
|
|
|
|
|
|
// CODEGEN: Generating message contract since the operation has multiple return values.
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/AddItem", ReplyAction="http://tempuri.org/IItemService/AddItemResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.AddItemResponse> AddItemAsync(ItemServices.AddItemRequest request);
|
|
|
|
|
|
|
|
|
|
// CODEGEN: Generating message contract since the operation has multiple return values.
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/UpdateItemDetails", ReplyAction="http://tempuri.org/IItemService/UpdateItemDetailsResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.UpdateItemDetailsResponse> UpdateItemDetailsAsync(ItemServices.UpdateItemDetailsRequest request);
|
|
|
|
|
|
|
|
|
|
// CODEGEN: Generating message contract since the operation has multiple return values.
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/UpdateItemSRP", ReplyAction="http://tempuri.org/IItemService/UpdateItemSRPResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.UpdateItemSRPResponse> UpdateItemSRPAsync(ItemServices.UpdateItemSRPRequest request);
|
|
|
|
|
|
|
|
|
|
// CODEGEN: Generating message contract since the operation has multiple return values.
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/UpdateItemMRPSRP", ReplyAction="http://tempuri.org/IItemService/UpdateItemMRPSRPResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<ItemServices.UpdateItemMRPSRPResponse> UpdateItemMRPSRPAsync(ItemServices.UpdateItemMRPSRPRequest request);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/UpdateItemImage", ReplyAction="http://tempuri.org/IItemService/UpdateItemImageResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<bool> UpdateItemImageAsync(long itemcode, string imgPath);
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IItemService/SendByteImage", ReplyAction="http://tempuri.org/IItemService/SendByteImageResponse")]
|
|
|
|
|
System.Threading.Tasks.Task<byte[]> SendByteImageAsync(byte[] img);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="AddItem", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
|
|
|
|
|
public partial class AddItemRequest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ItemServices.items item;
|
|
|
|
|
|
|
|
|
|
public AddItemRequest()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AddItemRequest(ItemServices.items item)
|
|
|
|
|
{
|
|
|
|
|
this.item = item;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="AddItemResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
|
|
|
|
|
public partial class AddItemResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public bool AddItemResult;
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
|
|
|
|
|
public long itemcode;
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
|
|
|
|
|
public string modelno;
|
|
|
|
|
|
|
|
|
|
public AddItemResponse()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AddItemResponse(bool AddItemResult, long itemcode, string modelno)
|
|
|
|
|
{
|
|
|
|
|
this.AddItemResult = AddItemResult;
|
|
|
|
|
this.itemcode = itemcode;
|
|
|
|
|
this.modelno = modelno;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="UpdateItemDetails", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
|
|
|
|
|
public partial class UpdateItemDetailsRequest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ItemServices.items item;
|
|
|
|
|
|
|
|
|
|
public UpdateItemDetailsRequest()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UpdateItemDetailsRequest(ItemServices.items item)
|
|
|
|
|
{
|
|
|
|
|
this.item = item;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="UpdateItemDetailsResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
|
|
|
|
|
public partial class UpdateItemDetailsResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public int UpdateItemDetailsResult;
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
|
|
|
|
|
public string ERROR_MSG;
|
|
|
|
|
|
|
|
|
|
public UpdateItemDetailsResponse()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UpdateItemDetailsResponse(int UpdateItemDetailsResult, string ERROR_MSG)
|
|
|
|
|
{
|
|
|
|
|
this.UpdateItemDetailsResult = UpdateItemDetailsResult;
|
|
|
|
|
this.ERROR_MSG = ERROR_MSG;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="UpdateItemSRP", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
|
|
|
|
|
public partial class UpdateItemSRPRequest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ItemServices.items[] itemList;
|
|
|
|
|
|
|
|
|
|
public UpdateItemSRPRequest()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UpdateItemSRPRequest(ItemServices.items[] itemList)
|
|
|
|
|
{
|
|
|
|
|
this.itemList = itemList;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="UpdateItemSRPResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
|
|
|
|
|
public partial class UpdateItemSRPResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public int UpdateItemSRPResult;
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
|
|
|
|
|
public string ERROR_MSG;
|
|
|
|
|
|
|
|
|
|
public UpdateItemSRPResponse()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UpdateItemSRPResponse(int UpdateItemSRPResult, string ERROR_MSG)
|
|
|
|
|
{
|
|
|
|
|
this.UpdateItemSRPResult = UpdateItemSRPResult;
|
|
|
|
|
this.ERROR_MSG = ERROR_MSG;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="UpdateItemMRPSRP", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
|
|
|
|
|
public partial class UpdateItemMRPSRPRequest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public ItemServices.items[] itemList;
|
|
|
|
|
|
|
|
|
|
public UpdateItemMRPSRPRequest()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UpdateItemMRPSRPRequest(ItemServices.items[] itemList)
|
|
|
|
|
{
|
|
|
|
|
this.itemList = itemList;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="UpdateItemMRPSRPResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
|
|
|
|
|
public partial class UpdateItemMRPSRPResponse
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
|
|
|
|
|
public int UpdateItemMRPSRPResult;
|
|
|
|
|
|
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
|
|
|
|
|
public string ERROR_MSG;
|
|
|
|
|
|
|
|
|
|
public UpdateItemMRPSRPResponse()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UpdateItemMRPSRPResponse(int UpdateItemMRPSRPResult, string ERROR_MSG)
|
|
|
|
|
{
|
|
|
|
|
this.UpdateItemMRPSRPResult = UpdateItemMRPSRPResult;
|
|
|
|
|
this.ERROR_MSG = ERROR_MSG;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
public interface IItemServiceChannel : ItemServices.IItemService, System.ServiceModel.IClientChannel
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
|
|
|
public partial class ItemServiceClient : System.ServiceModel.ClientBase<ItemServices.IItemService>, ItemServices.IItemService
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Implement this partial method to configure the service endpoint.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="serviceEndpoint">The endpoint to configure</param>
|
|
|
|
|
/// <param name="clientCredentials">The client credentials</param>
|
|
|
|
|
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
|
|
|
|
|
|
|
|
|
|
public ItemServiceClient() :
|
|
|
|
|
base(ItemServiceClient.GetDefaultBinding(), ItemServiceClient.GetDefaultEndpointAddress())
|
|
|
|
|
{
|
|
|
|
|
this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IItemService.ToString();
|
|
|
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ItemServiceClient(EndpointConfiguration endpointConfiguration) :
|
|
|
|
|
base(ItemServiceClient.GetBindingForEndpoint(endpointConfiguration), ItemServiceClient.GetEndpointAddress(endpointConfiguration))
|
|
|
|
|
{
|
|
|
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
|
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ItemServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
|
|
|
|
|
base(ItemServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
|
|
|
|
|
{
|
|
|
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
|
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ItemServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
|
|
|
base(ItemServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
|
|
|
|
|
{
|
|
|
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
|
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ItemServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
|
|
|
base(binding, remoteAddress)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<string> TestCallAsync()
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.TestCallAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.items[]> GetDataAsync()
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetDataAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.items[]> GetTopDataAsync(int limit)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetTopDataAsync(limit);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.items> GetDataByItemcodeAsync(long itemcode)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetDataByItemcodeAsync(itemcode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.items> GetDataByModelnoAsync(string modelno)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetDataByModelnoAsync(modelno);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.items[]> GetItemListByModelnosAsync(string[] modelnos)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetItemListByModelnosAsync(modelnos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.items[]> GetItemListByModelnoStartsWithAsync(string modelno)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetItemListByModelnoStartsWithAsync(modelno);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.items[]> GetItemListByDescriptionAsync(string description)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetItemListByDescriptionAsync(description);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.items[]> GetItemListByDynamicParameterAsync(string SQLFilters)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.GetItemListByDynamicParameterAsync(SQLFilters);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.AddItemResponse> AddItemAsync(ItemServices.AddItemRequest request)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.AddItemAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.UpdateItemDetailsResponse> UpdateItemDetailsAsync(ItemServices.UpdateItemDetailsRequest request)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.UpdateItemDetailsAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.UpdateItemSRPResponse> UpdateItemSRPAsync(ItemServices.UpdateItemSRPRequest request)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.UpdateItemSRPAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<ItemServices.UpdateItemMRPSRPResponse> UpdateItemMRPSRPAsync(ItemServices.UpdateItemMRPSRPRequest request)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.UpdateItemMRPSRPAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<bool> UpdateItemImageAsync(long itemcode, string imgPath)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.UpdateItemImageAsync(itemcode, imgPath);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Threading.Tasks.Task<byte[]> SendByteImageAsync(byte[] img)
|
|
|
|
|
{
|
|
|
|
|
return base.Channel.SendByteImageAsync(img);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual System.Threading.Tasks.Task OpenAsync()
|
|
|
|
|
{
|
|
|
|
|
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
|
|
|
|
|
{
|
|
|
|
|
if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding_IItemService))
|
|
|
|
|
{
|
|
|
|
|
System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
|
|
|
|
|
result.MaxBufferSize = int.MaxValue;
|
|
|
|
|
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
|
|
|
|
|
result.MaxReceivedMessageSize = int.MaxValue;
|
|
|
|
|
result.AllowCookies = true;
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
|
|
|
|
|
{
|
|
|
|
|
if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding_IItemService))
|
|
|
|
|
{
|
|
|
|
|
return new System.ServiceModel.EndpointAddress("http://kwapp-srv/CommServices/ItemService.svc");
|
|
|
|
|
}
|
|
|
|
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static System.ServiceModel.Channels.Binding GetDefaultBinding()
|
|
|
|
|
{
|
|
|
|
|
return ItemServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IItemService);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
|
|
|
|
|
{
|
|
|
|
|
return ItemServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IItemService);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum EndpointConfiguration
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
BasicHttpBinding_IItemService,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|