//------------------------------------------------------------------------------
// 
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// 
//------------------------------------------------------------------------------
namespace DeiNiu.wms.win.ServiceReferenceNodes {
    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="wcfNode", Namespace="http://schemas.datacontract.org/2004/07/DeiNiu.Wcf")]
    [System.SerializableAttribute()]
    public partial class wcfNode : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string descriptionField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int flagField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int idField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private bool isOnField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private bool isSystemField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string nameField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int parentidField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string valueField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private int valueTypeField;
        
        [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 description {
            get {
                return this.descriptionField;
            }
            set {
                if ((object.ReferenceEquals(this.descriptionField, value) != true)) {
                    this.descriptionField = value;
                    this.RaisePropertyChanged("description");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int flag {
            get {
                return this.flagField;
            }
            set {
                if ((this.flagField.Equals(value) != true)) {
                    this.flagField = value;
                    this.RaisePropertyChanged("flag");
                }
            }
        }
        
        [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 bool isOn {
            get {
                return this.isOnField;
            }
            set {
                if ((this.isOnField.Equals(value) != true)) {
                    this.isOnField = value;
                    this.RaisePropertyChanged("isOn");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public bool isSystem {
            get {
                return this.isSystemField;
            }
            set {
                if ((this.isSystemField.Equals(value) != true)) {
                    this.isSystemField = value;
                    this.RaisePropertyChanged("isSystem");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string name {
            get {
                return this.nameField;
            }
            set {
                if ((object.ReferenceEquals(this.nameField, value) != true)) {
                    this.nameField = value;
                    this.RaisePropertyChanged("name");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int parentid {
            get {
                return this.parentidField;
            }
            set {
                if ((this.parentidField.Equals(value) != true)) {
                    this.parentidField = value;
                    this.RaisePropertyChanged("parentid");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string value {
            get {
                return this.valueField;
            }
            set {
                if ((object.ReferenceEquals(this.valueField, value) != true)) {
                    this.valueField = value;
                    this.RaisePropertyChanged("value");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public int valueType {
            get {
                return this.valueTypeField;
            }
            set {
                if ((this.valueTypeField.Equals(value) != true)) {
                    this.valueTypeField = value;
                    this.RaisePropertyChanged("valueType");
                }
            }
        }
        
        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="ServiceReferenceNodes.INode")]
    public interface INode {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/INode/newNode", ReplyAction="http://tempuri.org/INode/newNodeResponse")]
        int newNode(string name, string description, int parentId, int flag);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/INode/Query", ReplyAction="http://tempuri.org/INode/QueryResponse")]
        System.Data.DataSet Query(string querystr, int rownumStart, int rownumEnd);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/INode/newWcfNode", ReplyAction="http://tempuri.org/INode/newWcfNodeResponse")]
        DeiNiu.wms.win.ServiceReferenceNodes.wcfNode newWcfNode(DeiNiu.wms.win.ServiceReferenceNodes.wcfNode wnode);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/INode/updateWcfNode", ReplyAction="http://tempuri.org/INode/updateWcfNodeResponse")]
        DeiNiu.wms.win.ServiceReferenceNodes.wcfNode updateWcfNode(DeiNiu.wms.win.ServiceReferenceNodes.wcfNode wnode);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/INode/deleteNode", ReplyAction="http://tempuri.org/INode/deleteNodeResponse")]
        int deleteNode(int id);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/INode/getNodesByFlag", ReplyAction="http://tempuri.org/INode/getNodesByFlagResponse")]
        System.Data.DataTable getNodesByFlag(int flag);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/INode/applyDicChanges", ReplyAction="http://tempuri.org/INode/applyDicChangesResponse")]
        void applyDicChanges();
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/INode/getOwners", ReplyAction="http://tempuri.org/INode/getOwnersResponse")]
        System.Data.DataTable getOwners();
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface INodeChannel : DeiNiu.wms.win.ServiceReferenceNodes.INode, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class NodeClient : System.ServiceModel.ClientBase, DeiNiu.wms.win.ServiceReferenceNodes.INode {
        
        public NodeClient() {
        }
        
        public NodeClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public NodeClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public NodeClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public NodeClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public int newNode(string name, string description, int parentId, int flag) {
            return base.Channel.newNode(name, description, parentId, flag);
        }
        
        public System.Data.DataSet Query(string querystr, int rownumStart, int rownumEnd) {
            return base.Channel.Query(querystr, rownumStart, rownumEnd);
        }
        
        public DeiNiu.wms.win.ServiceReferenceNodes.wcfNode newWcfNode(DeiNiu.wms.win.ServiceReferenceNodes.wcfNode wnode) {
            return base.Channel.newWcfNode(wnode);
        }
        
        public DeiNiu.wms.win.ServiceReferenceNodes.wcfNode updateWcfNode(DeiNiu.wms.win.ServiceReferenceNodes.wcfNode wnode) {
            return base.Channel.updateWcfNode(wnode);
        }
        
        public int deleteNode(int id) {
            return base.Channel.deleteNode(id);
        }
        
        public System.Data.DataTable getNodesByFlag(int flag) {
            return base.Channel.getNodesByFlag(flag);
        }
        
        public void applyDicChanges() {
            base.Channel.applyDicChanges();
        }
        
        public System.Data.DataTable getOwners() {
            return base.Channel.getOwners();
        }
    }
}