//------------------------------------------------------------------------------
// 
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// 
//------------------------------------------------------------------------------
namespace DeiNiu.wms.win.FlowService {
    using System.Runtime.Serialization;
    using System;
    
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="WcfWmsFlow", Namespace="http://schemas.datacontract.org/2004/07/DeiNiu.Wcf")]
    [System.SerializableAttribute()]
    public partial class WcfWmsFlow : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string createtimeField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private bool drField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int finishedCntField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string flowNoField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string fromLocationIdField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int fromPartionField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int idField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string lastmodifiedField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int operaterField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string orderNoField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int ownerField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int progressField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int stateField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string taskField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int taskCntField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string toLocationIdField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int toPartionField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int typeField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string typeNameField;
        
        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string createtime {
            get {
                return this.createtimeField;
            }
            set {
                if ((object.ReferenceEquals(this.createtimeField, value) != true)) {
                    this.createtimeField = value;
                    this.RaisePropertyChanged("createtime");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public bool dr {
            get {
                return this.drField;
            }
            set {
                if ((this.drField.Equals(value) != true)) {
                    this.drField = value;
                    this.RaisePropertyChanged("dr");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int finishedCnt {
            get {
                return this.finishedCntField;
            }
            set {
                if ((this.finishedCntField.Equals(value) != true)) {
                    this.finishedCntField = value;
                    this.RaisePropertyChanged("finishedCnt");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string flowNo {
            get {
                return this.flowNoField;
            }
            set {
                if ((object.ReferenceEquals(this.flowNoField, value) != true)) {
                    this.flowNoField = value;
                    this.RaisePropertyChanged("flowNo");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string fromLocationId {
            get {
                return this.fromLocationIdField;
            }
            set {
                if ((object.ReferenceEquals(this.fromLocationIdField, value) != true)) {
                    this.fromLocationIdField = value;
                    this.RaisePropertyChanged("fromLocationId");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int fromPartion {
            get {
                return this.fromPartionField;
            }
            set {
                if ((this.fromPartionField.Equals(value) != true)) {
                    this.fromPartionField = value;
                    this.RaisePropertyChanged("fromPartion");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int id {
            get {
                return this.idField;
            }
            set {
                if ((this.idField.Equals(value) != true)) {
                    this.idField = value;
                    this.RaisePropertyChanged("id");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string lastmodified {
            get {
                return this.lastmodifiedField;
            }
            set {
                if ((object.ReferenceEquals(this.lastmodifiedField, value) != true)) {
                    this.lastmodifiedField = value;
                    this.RaisePropertyChanged("lastmodified");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int operater {
            get {
                return this.operaterField;
            }
            set {
                if ((this.operaterField.Equals(value) != true)) {
                    this.operaterField = value;
                    this.RaisePropertyChanged("operater");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string orderNo {
            get {
                return this.orderNoField;
            }
            set {
                if ((object.ReferenceEquals(this.orderNoField, value) != true)) {
                    this.orderNoField = value;
                    this.RaisePropertyChanged("orderNo");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int owner {
            get {
                return this.ownerField;
            }
            set {
                if ((this.ownerField.Equals(value) != true)) {
                    this.ownerField = value;
                    this.RaisePropertyChanged("owner");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int progress {
            get {
                return this.progressField;
            }
            set {
                if ((this.progressField.Equals(value) != true)) {
                    this.progressField = value;
                    this.RaisePropertyChanged("progress");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int state {
            get {
                return this.stateField;
            }
            set {
                if ((this.stateField.Equals(value) != true)) {
                    this.stateField = value;
                    this.RaisePropertyChanged("state");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string task {
            get {
                return this.taskField;
            }
            set {
                if ((object.ReferenceEquals(this.taskField, value) != true)) {
                    this.taskField = value;
                    this.RaisePropertyChanged("task");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int taskCnt {
            get {
                return this.taskCntField;
            }
            set {
                if ((this.taskCntField.Equals(value) != true)) {
                    this.taskCntField = value;
                    this.RaisePropertyChanged("taskCnt");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string toLocationId {
            get {
                return this.toLocationIdField;
            }
            set {
                if ((object.ReferenceEquals(this.toLocationIdField, value) != true)) {
                    this.toLocationIdField = value;
                    this.RaisePropertyChanged("toLocationId");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int toPartion {
            get {
                return this.toPartionField;
            }
            set {
                if ((this.toPartionField.Equals(value) != true)) {
                    this.toPartionField = value;
                    this.RaisePropertyChanged("toPartion");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int type {
            get {
                return this.typeField;
            }
            set {
                if ((this.typeField.Equals(value) != true)) {
                    this.typeField = value;
                    this.RaisePropertyChanged("type");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string typeName {
            get {
                return this.typeNameField;
            }
            set {
                if ((object.ReferenceEquals(this.typeNameField, value) != true)) {
                    this.typeNameField = value;
                    this.RaisePropertyChanged("typeName");
                }
            }
        }
        
        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
        
        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="FlowService.IWmsFlow")]
    public interface IWmsFlow {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsFlow/query", ReplyAction="http://tempuri.org/IWmsFlow/queryResponse")]
        System.Data.DataSet query(string querystr, int rownumStart, int rownumEnd);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsFlow/add", ReplyAction="http://tempuri.org/IWmsFlow/addResponse")]
        int add(DeiNiu.wms.win.FlowService.WcfWmsFlow wcfData);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsFlow/update", ReplyAction="http://tempuri.org/IWmsFlow/updateResponse")]
        int update(DeiNiu.wms.win.FlowService.WcfWmsFlow wcfData);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsFlow/delete", ReplyAction="http://tempuri.org/IWmsFlow/deleteResponse")]
        int delete(DeiNiu.wms.win.FlowService.WcfWmsFlow wcfData);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsFlow/getDetail", ReplyAction="http://tempuri.org/IWmsFlow/getDetailResponse")]
        System.Data.DataTable getDetail(string taskNo);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWmsFlow/startTask", ReplyAction="http://tempuri.org/IWmsFlow/startTaskResponse")]
        DeiNiu.Utils.enumFlowTaskResult startTask(string taskNo);
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface IWmsFlowChannel : DeiNiu.wms.win.FlowService.IWmsFlow, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class WmsFlowClient : System.ServiceModel.ClientBase, DeiNiu.wms.win.FlowService.IWmsFlow {
        
        public WmsFlowClient() {
        }
        
        public WmsFlowClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public WmsFlowClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public WmsFlowClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public WmsFlowClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public System.Data.DataSet query(string querystr, int rownumStart, int rownumEnd) {
            return base.Channel.query(querystr, rownumStart, rownumEnd);
        }
        
        public int add(DeiNiu.wms.win.FlowService.WcfWmsFlow wcfData) {
            return base.Channel.add(wcfData);
        }
        
        public int update(DeiNiu.wms.win.FlowService.WcfWmsFlow wcfData) {
            return base.Channel.update(wcfData);
        }
        
        public int delete(DeiNiu.wms.win.FlowService.WcfWmsFlow wcfData) {
            return base.Channel.delete(wcfData);
        }
        
        public System.Data.DataTable getDetail(string taskNo) {
            return base.Channel.getDetail(taskNo);
        }
        
        public DeiNiu.Utils.enumFlowTaskResult startTask(string taskNo) {
            return base.Channel.startTask(taskNo);
        }
    }
}