//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//
//     对此文件的更改可能导致不正确的行为，并在以下条件下丢失:
//     代码重新生成。
// </auto-generated>
//------------------------------------------------------------------------------

namespace TCConfirmApptReference
{
    using System.Runtime.Serialization;
    
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.Runtime.Serialization.DataContractAttribute(Name="TC_API_Abstract_Edit", Namespace="http://www.intersystems.com/trak/ws")]
    [System.Runtime.Serialization.KnownTypeAttribute(typeof(TCConfirmApptReference.TCapiRBAppointmentConfirmApptEdit))]
    public partial class TC_API_Abstract_Edit : object
    {
        
        private string TUSERNAMEField;
        
        private string TPASSWORDField;
        
        private bool TENCRYPTPASSWORDField;
        
        private string TSESSIONIDField;
        
        private string TOVERRIDEField;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
        public string TUSERNAME
        {
            get
            {
                return this.TUSERNAMEField;
            }
            set
            {
                this.TUSERNAMEField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public string TPASSWORD
        {
            get
            {
                return this.TPASSWORDField;
            }
            set
            {
                this.TPASSWORDField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(Order=2)]
        public bool TENCRYPTPASSWORD
        {
            get
            {
                return this.TENCRYPTPASSWORDField;
            }
            set
            {
                this.TENCRYPTPASSWORDField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
        public string TSESSIONID
        {
            get
            {
                return this.TSESSIONIDField;
            }
            set
            {
                this.TSESSIONIDField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
        public string TOVERRIDE
        {
            get
            {
                return this.TOVERRIDEField;
            }
            set
            {
                this.TOVERRIDEField = value;
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.Runtime.Serialization.DataContractAttribute(Name="TC.api.RBAppointment.ConfirmAppt.Edit", Namespace="http://www.intersystems.com/trak/ws")]
    public partial class TCapiRBAppointmentConfirmApptEdit : TCConfirmApptReference.TC_API_Abstract_Edit
    {
        
        private string IDField;
        
        private string APPTUBRNField;
        
        private string APPTUSRNField;
        
        private string EpisodeIDField;
        
        private string PatientIDField;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
        public string ID
        {
            get
            {
                return this.IDField;
            }
            set
            {
                this.IDField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public string APPTUBRN
        {
            get
            {
                return this.APPTUBRNField;
            }
            set
            {
                this.APPTUBRNField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
        public string APPTUSRN
        {
            get
            {
                return this.APPTUSRNField;
            }
            set
            {
                this.APPTUSRNField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
        public string EpisodeID
        {
            get
            {
                return this.EpisodeIDField;
            }
            set
            {
                this.EpisodeIDField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
        public string PatientID
        {
            get
            {
                return this.PatientIDField;
            }
            set
            {
                this.PatientIDField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://www.intersystems.com/trak/ws", ConfigurationName="TCConfirmApptReference.TC_ws_RBAppointment_ConfirmAppt_EditSoap")]
    public interface TC_ws_RBAppointment_ConfirmAppt_EditSoap
    {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://www.intersystems.com/trak/ws/TC.ws.RBAppointment.ConfirmAppt.Edit.Open", ReplyAction="*")]
        System.Threading.Tasks.Task<TCConfirmApptReference.OpenResponse> OpenAsync(TCConfirmApptReference.OpenRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://www.intersystems.com/trak/ws/TC.ws.RBAppointment.ConfirmAppt.Edit.Save", ReplyAction="*")]
        System.Threading.Tasks.Task<TCConfirmApptReference.SaveResponse> SaveAsync(TCConfirmApptReference.SaveRequest request);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class OpenRequest
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="Open", Namespace="http://www.intersystems.com/trak/ws", Order=0)]
        public TCConfirmApptReference.OpenRequestBody Body;
        
        public OpenRequest()
        {
        }
        
        public OpenRequest(TCConfirmApptReference.OpenRequestBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.intersystems.com/trak/ws")]
    public partial class OpenRequestBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string token;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public string ID;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
        public string TUSERNAME;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
        public string TPASSWORD;
        
        public OpenRequestBody()
        {
        }
        
        public OpenRequestBody(string token, string ID, string TUSERNAME, string TPASSWORD)
        {
            this.token = token;
            this.ID = ID;
            this.TUSERNAME = TUSERNAME;
            this.TPASSWORD = TPASSWORD;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class OpenResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="OpenResponse", Namespace="http://www.intersystems.com/trak/ws", Order=0)]
        public TCConfirmApptReference.OpenResponseBody Body;
        
        public OpenResponse()
        {
        }
        
        public OpenResponse(TCConfirmApptReference.OpenResponseBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.intersystems.com/trak/ws")]
    public partial class OpenResponseBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public TCConfirmApptReference.TCapiRBAppointmentConfirmApptEdit OpenResult;
        
        public OpenResponseBody()
        {
        }
        
        public OpenResponseBody(TCConfirmApptReference.TCapiRBAppointmentConfirmApptEdit OpenResult)
        {
            this.OpenResult = OpenResult;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class SaveRequest
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="Save", Namespace="http://www.intersystems.com/trak/ws", Order=0)]
        public TCConfirmApptReference.SaveRequestBody Body;
        
        public SaveRequest()
        {
        }
        
        public SaveRequest(TCConfirmApptReference.SaveRequestBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.intersystems.com/trak/ws")]
    public partial class SaveRequestBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string token;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public TCConfirmApptReference.TCapiRBAppointmentConfirmApptEdit rs;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
        public string TUSERNAME;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
        public string TPASSWORD;
        
        public SaveRequestBody()
        {
        }
        
        public SaveRequestBody(string token, TCConfirmApptReference.TCapiRBAppointmentConfirmApptEdit rs, string TUSERNAME, string TPASSWORD)
        {
            this.token = token;
            this.rs = rs;
            this.TUSERNAME = TUSERNAME;
            this.TPASSWORD = TPASSWORD;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class SaveResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="SaveResponse", Namespace="http://www.intersystems.com/trak/ws", Order=0)]
        public TCConfirmApptReference.SaveResponseBody Body;
        
        public SaveResponse()
        {
        }
        
        public SaveResponse(TCConfirmApptReference.SaveResponseBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.intersystems.com/trak/ws")]
    public partial class SaveResponseBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string SaveResult;
        
        public SaveResponseBody()
        {
        }
        
        public SaveResponseBody(string SaveResult)
        {
            this.SaveResult = SaveResult;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    public interface TC_ws_RBAppointment_ConfirmAppt_EditSoapChannel : TCConfirmApptReference.TC_ws_RBAppointment_ConfirmAppt_EditSoap, System.ServiceModel.IClientChannel
    {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
    public partial class TC_ws_RBAppointment_ConfirmAppt_EditSoapClient : System.ServiceModel.ClientBase<TCConfirmApptReference.TC_ws_RBAppointment_ConfirmAppt_EditSoap>, TCConfirmApptReference.TC_ws_RBAppointment_ConfirmAppt_EditSoap
    {
        
        /// <summary>
        /// 实现此分部方法，配置服务终结点。
        /// </summary>
        /// <param name="serviceEndpoint">要配置的终结点</param>
        /// <param name="clientCredentials">客户端凭据</param>
        static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
        
        public TC_ws_RBAppointment_ConfirmAppt_EditSoapClient() : 
                base(TC_ws_RBAppointment_ConfirmAppt_EditSoapClient.GetDefaultBinding(), TC_ws_RBAppointment_ConfirmAppt_EditSoapClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.TC_ws_RBAppointment_ConfirmAppt_EditSoap.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public TC_ws_RBAppointment_ConfirmAppt_EditSoapClient(EndpointConfiguration endpointConfiguration) : 
                base(TC_ws_RBAppointment_ConfirmAppt_EditSoapClient.GetBindingForEndpoint(endpointConfiguration), TC_ws_RBAppointment_ConfirmAppt_EditSoapClient.GetEndpointAddress(endpointConfiguration))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public TC_ws_RBAppointment_ConfirmAppt_EditSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : 
                base(TC_ws_RBAppointment_ConfirmAppt_EditSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public TC_ws_RBAppointment_ConfirmAppt_EditSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(TC_ws_RBAppointment_ConfirmAppt_EditSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public TC_ws_RBAppointment_ConfirmAppt_EditSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress)
        {
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<TCConfirmApptReference.OpenResponse> TCConfirmApptReference.TC_ws_RBAppointment_ConfirmAppt_EditSoap.OpenAsync(TCConfirmApptReference.OpenRequest request)
        {
            return base.Channel.OpenAsync(request);
        }
        
        public System.Threading.Tasks.Task<TCConfirmApptReference.OpenResponse> OpenAsync(string token, string ID, string TUSERNAME, string TPASSWORD)
        {
            TCConfirmApptReference.OpenRequest inValue = new TCConfirmApptReference.OpenRequest();
            inValue.Body = new TCConfirmApptReference.OpenRequestBody();
            inValue.Body.token = token;
            inValue.Body.ID = ID;
            inValue.Body.TUSERNAME = TUSERNAME;
            inValue.Body.TPASSWORD = TPASSWORD;
            return ((TCConfirmApptReference.TC_ws_RBAppointment_ConfirmAppt_EditSoap)(this)).OpenAsync(inValue);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<TCConfirmApptReference.SaveResponse> TCConfirmApptReference.TC_ws_RBAppointment_ConfirmAppt_EditSoap.SaveAsync(TCConfirmApptReference.SaveRequest request)
        {
            return base.Channel.SaveAsync(request);
        }
        
        public System.Threading.Tasks.Task<TCConfirmApptReference.SaveResponse> SaveAsync(string token, TCConfirmApptReference.TCapiRBAppointmentConfirmApptEdit rs, string TUSERNAME, string TPASSWORD)
        {
            TCConfirmApptReference.SaveRequest inValue = new TCConfirmApptReference.SaveRequest();
            inValue.Body = new TCConfirmApptReference.SaveRequestBody();
            inValue.Body.token = token;
            inValue.Body.rs = rs;
            inValue.Body.TUSERNAME = TUSERNAME;
            inValue.Body.TPASSWORD = TPASSWORD;
            return ((TCConfirmApptReference.TC_ws_RBAppointment_ConfirmAppt_EditSoap)(this)).SaveAsync(inValue);
        }
        
        public virtual System.Threading.Tasks.Task OpenAsync1()
        {
            return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
        }
        
        public virtual System.Threading.Tasks.Task CloseAsync()
        {
            return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
        }
        
        private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.TC_ws_RBAppointment_ConfirmAppt_EditSoap))
            {
                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("找不到名称为“{0}”的终结点。", endpointConfiguration));
        }
        
        private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.TC_ws_RBAppointment_ConfirmAppt_EditSoap))
            {
                return new System.ServiceModel.EndpointAddress("http://192.168.50.235/trakbase/web/api/TC.ws.RBAppointment.ConfirmAppt.Edit.cls");
            }
            throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
        }
        
        private static System.ServiceModel.Channels.Binding GetDefaultBinding()
        {
            return TC_ws_RBAppointment_ConfirmAppt_EditSoapClient.GetBindingForEndpoint(EndpointConfiguration.TC_ws_RBAppointment_ConfirmAppt_EditSoap);
        }
        
        private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
        {
            return TC_ws_RBAppointment_ConfirmAppt_EditSoapClient.GetEndpointAddress(EndpointConfiguration.TC_ws_RBAppointment_ConfirmAppt_EditSoap);
        }
        
        public enum EndpointConfiguration
        {
            
            TC_ws_RBAppointment_ConfirmAppt_EditSoap,
        }
    }
}
