You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
607 lines
19 KiB
C#
607 lines
19 KiB
C#
//------------------------------------------------------------------------------
|
|
// <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 BranchItemLedgerServices
|
|
{
|
|
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")]
|
|
[System.Runtime.Serialization.KnownTypeAttribute(typeof(BranchItemLedgerServices.branchitemledger))]
|
|
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.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="branchitemledger", Namespace="http://schemas.datacontract.org/2004/07/KWERPService.CommServices")]
|
|
public partial class branchitemledger : BranchItemLedgerServices.items
|
|
{
|
|
|
|
private int adjustmentField;
|
|
|
|
private int beginningqtyField;
|
|
|
|
private string brCodeField;
|
|
|
|
private System.DateTime creationDateField;
|
|
|
|
private System.DateTime editDateField;
|
|
|
|
private int endingqtyField;
|
|
|
|
private int inqtyField;
|
|
|
|
private int outqtyField;
|
|
|
|
private string remarksField;
|
|
|
|
private int salesField;
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int adjustment
|
|
{
|
|
get
|
|
{
|
|
return this.adjustmentField;
|
|
}
|
|
set
|
|
{
|
|
this.adjustmentField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int beginningqty
|
|
{
|
|
get
|
|
{
|
|
return this.beginningqtyField;
|
|
}
|
|
set
|
|
{
|
|
this.beginningqtyField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string brCode
|
|
{
|
|
get
|
|
{
|
|
return this.brCodeField;
|
|
}
|
|
set
|
|
{
|
|
this.brCodeField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public System.DateTime creationDate
|
|
{
|
|
get
|
|
{
|
|
return this.creationDateField;
|
|
}
|
|
set
|
|
{
|
|
this.creationDateField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public System.DateTime editDate
|
|
{
|
|
get
|
|
{
|
|
return this.editDateField;
|
|
}
|
|
set
|
|
{
|
|
this.editDateField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int endingqty
|
|
{
|
|
get
|
|
{
|
|
return this.endingqtyField;
|
|
}
|
|
set
|
|
{
|
|
this.endingqtyField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int inqty
|
|
{
|
|
get
|
|
{
|
|
return this.inqtyField;
|
|
}
|
|
set
|
|
{
|
|
this.inqtyField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int outqty
|
|
{
|
|
get
|
|
{
|
|
return this.outqtyField;
|
|
}
|
|
set
|
|
{
|
|
this.outqtyField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string remarks
|
|
{
|
|
get
|
|
{
|
|
return this.remarksField;
|
|
}
|
|
set
|
|
{
|
|
this.remarksField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int sales
|
|
{
|
|
get
|
|
{
|
|
return this.salesField;
|
|
}
|
|
set
|
|
{
|
|
this.salesField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="BranchItemLedgerServices.IBranchItemLedgerService")]
|
|
public interface IBranchItemLedgerService
|
|
{
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IBranchItemLedgerService/TestCall", ReplyAction="http://tempuri.org/IBranchItemLedgerService/TestCallResponse")]
|
|
System.Threading.Tasks.Task<string> TestCallAsync();
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IBranchItemLedgerService/GetRemoteDataByBrCodeItemcode", ReplyAction="http://tempuri.org/IBranchItemLedgerService/GetRemoteDataByBrCodeItemcodeResponse" +
|
|
"")]
|
|
System.Threading.Tasks.Task<BranchItemLedgerServices.branchitemledger> GetRemoteDataByBrCodeItemcodeAsync(string brCode, string itemcode);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IBranchItemLedgerService/GetRemoteDataByBrCodeModelno", ReplyAction="http://tempuri.org/IBranchItemLedgerService/GetRemoteDataByBrCodeModelnoResponse")]
|
|
System.Threading.Tasks.Task<BranchItemLedgerServices.branchitemledger> GetRemoteDataByBrCodeModelnoAsync(string brCode, string modelno);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IBranchItemLedgerService/GetRemoteDataByBrCode", ReplyAction="http://tempuri.org/IBranchItemLedgerService/GetRemoteDataByBrCodeResponse")]
|
|
System.Threading.Tasks.Task<BranchItemLedgerServices.branchitemledger[]> GetRemoteDataByBrCodeAsync(string brCode);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IBranchItemLedgerService/UpdateRemoteBranchItemLedger", ReplyAction="http://tempuri.org/IBranchItemLedgerService/UpdateRemoteBranchItemLedgerResponse")]
|
|
System.Threading.Tasks.Task<int> UpdateRemoteBranchItemLedgerAsync(BranchItemLedgerServices.branchitemledger branchItemLedger);
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
public interface IBranchItemLedgerServiceChannel : BranchItemLedgerServices.IBranchItemLedgerService, System.ServiceModel.IClientChannel
|
|
{
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
public partial class BranchItemLedgerServiceClient : System.ServiceModel.ClientBase<BranchItemLedgerServices.IBranchItemLedgerService>, BranchItemLedgerServices.IBranchItemLedgerService
|
|
{
|
|
|
|
/// <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 BranchItemLedgerServiceClient() :
|
|
base(BranchItemLedgerServiceClient.GetDefaultBinding(), BranchItemLedgerServiceClient.GetDefaultEndpointAddress())
|
|
{
|
|
this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IBranchItemLedgerService.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public BranchItemLedgerServiceClient(EndpointConfiguration endpointConfiguration) :
|
|
base(BranchItemLedgerServiceClient.GetBindingForEndpoint(endpointConfiguration), BranchItemLedgerServiceClient.GetEndpointAddress(endpointConfiguration))
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public BranchItemLedgerServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
|
|
base(BranchItemLedgerServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public BranchItemLedgerServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(BranchItemLedgerServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public BranchItemLedgerServiceClient(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<BranchItemLedgerServices.branchitemledger> GetRemoteDataByBrCodeItemcodeAsync(string brCode, string itemcode)
|
|
{
|
|
return base.Channel.GetRemoteDataByBrCodeItemcodeAsync(brCode, itemcode);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<BranchItemLedgerServices.branchitemledger> GetRemoteDataByBrCodeModelnoAsync(string brCode, string modelno)
|
|
{
|
|
return base.Channel.GetRemoteDataByBrCodeModelnoAsync(brCode, modelno);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<BranchItemLedgerServices.branchitemledger[]> GetRemoteDataByBrCodeAsync(string brCode)
|
|
{
|
|
return base.Channel.GetRemoteDataByBrCodeAsync(brCode);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<int> UpdateRemoteBranchItemLedgerAsync(BranchItemLedgerServices.branchitemledger branchItemLedger)
|
|
{
|
|
return base.Channel.UpdateRemoteBranchItemLedgerAsync(branchItemLedger);
|
|
}
|
|
|
|
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_IBranchItemLedgerService))
|
|
{
|
|
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_IBranchItemLedgerService))
|
|
{
|
|
return new System.ServiceModel.EndpointAddress("http://kwapp-srv/CommServices/BranchItemLedgerService.svc");
|
|
}
|
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
|
}
|
|
|
|
private static System.ServiceModel.Channels.Binding GetDefaultBinding()
|
|
{
|
|
return BranchItemLedgerServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IBranchItemLedgerService);
|
|
}
|
|
|
|
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
|
|
{
|
|
return BranchItemLedgerServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IBranchItemLedgerService);
|
|
}
|
|
|
|
public enum EndpointConfiguration
|
|
{
|
|
|
|
BasicHttpBinding_IBranchItemLedgerService,
|
|
}
|
|
}
|
|
}
|