//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为，并且如果
//     重新生成代码，这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

namespace PushPlatform.Common.MIPFService {
    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="ApiResultOfString", Namespace="http://tempuri.org/")]
    [System.SerializableAttribute()]
    public partial class ApiResultOfString : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private int ResultField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string ErrorMsgField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string DataField;
        
        [global::System.ComponentModel.BrowsableAttribute(false)]
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
            get {
                return this.extensionDataField;
            }
            set {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public int Result {
            get {
                return this.ResultField;
            }
            set {
                if ((this.ResultField.Equals(value) != true)) {
                    this.ResultField = value;
                    this.RaisePropertyChanged("Result");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public string ErrorMsg {
            get {
                return this.ErrorMsgField;
            }
            set {
                if ((object.ReferenceEquals(this.ErrorMsgField, value) != true)) {
                    this.ErrorMsgField = value;
                    this.RaisePropertyChanged("ErrorMsg");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
        public string Data {
            get {
                return this.DataField;
            }
            set {
                if ((object.ReferenceEquals(this.DataField, value) != true)) {
                    this.DataField = value;
                    this.RaisePropertyChanged("Data");
                }
            }
        }
        
        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="MIPFService.EdcMipfServiceSoap")]
    public interface EdcMipfServiceSoap {
        
        // CODEGEN: 命名空间 http://tempuri.org/ 的元素名称 HelloWorldResult 以后生成的消息协定未标记为 nillable
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/HelloWorld", ReplyAction="*")]
        PushPlatform.Common.MIPFService.HelloWorldResponse HelloWorld(PushPlatform.Common.MIPFService.HelloWorldRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/HelloWorld", ReplyAction="*")]
        System.Threading.Tasks.Task<PushPlatform.Common.MIPFService.HelloWorldResponse> HelloWorldAsync(PushPlatform.Common.MIPFService.HelloWorldRequest request);
        
        // CODEGEN: 命名空间 http://tempuri.org/ 的元素名称 projectId 以后生成的消息协定未标记为 nillable
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/InsertPatient", ReplyAction="*")]
        PushPlatform.Common.MIPFService.InsertPatientResponse InsertPatient(PushPlatform.Common.MIPFService.InsertPatientRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/InsertPatient", ReplyAction="*")]
        System.Threading.Tasks.Task<PushPlatform.Common.MIPFService.InsertPatientResponse> InsertPatientAsync(PushPlatform.Common.MIPFService.InsertPatientRequest request);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class HelloWorldRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="HelloWorld", Namespace="http://tempuri.org/", Order=0)]
        public PushPlatform.Common.MIPFService.HelloWorldRequestBody Body;
        
        public HelloWorldRequest() {
        }
        
        public HelloWorldRequest(PushPlatform.Common.MIPFService.HelloWorldRequestBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute()]
    public partial class HelloWorldRequestBody {
        
        public HelloWorldRequestBody() {
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class HelloWorldResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="HelloWorldResponse", Namespace="http://tempuri.org/", Order=0)]
        public PushPlatform.Common.MIPFService.HelloWorldResponseBody Body;
        
        public HelloWorldResponse() {
        }
        
        public HelloWorldResponse(PushPlatform.Common.MIPFService.HelloWorldResponseBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class HelloWorldResponseBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string HelloWorldResult;
        
        public HelloWorldResponseBody() {
        }
        
        public HelloWorldResponseBody(string HelloWorldResult) {
            this.HelloWorldResult = HelloWorldResult;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class InsertPatientRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="InsertPatient", Namespace="http://tempuri.org/", Order=0)]
        public PushPlatform.Common.MIPFService.InsertPatientRequestBody Body;
        
        public InsertPatientRequest() {
        }
        
        public InsertPatientRequest(PushPlatform.Common.MIPFService.InsertPatientRequestBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class InsertPatientRequestBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string projectId;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public string hosId;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
        public string groupId;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
        public string patientName;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
        public string patientNumber;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=5)]
        public string gender;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=6)]
        public string createUser;
        
        [System.Runtime.Serialization.DataMemberAttribute(Order=7)]
        public System.Nullable<System.DateTime> birthday;
        
        [System.Runtime.Serialization.DataMemberAttribute(Order=8)]
        public System.Nullable<System.DateTime> inDate;
        
        public InsertPatientRequestBody() {
        }
        
        public InsertPatientRequestBody(string projectId, string hosId, string groupId, string patientName, string patientNumber, string gender, string createUser, System.Nullable<System.DateTime> birthday, System.Nullable<System.DateTime> inDate) {
            this.projectId = projectId;
            this.hosId = hosId;
            this.groupId = groupId;
            this.patientName = patientName;
            this.patientNumber = patientNumber;
            this.gender = gender;
            this.createUser = createUser;
            this.birthday = birthday;
            this.inDate = inDate;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class InsertPatientResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="InsertPatientResponse", Namespace="http://tempuri.org/", Order=0)]
        public PushPlatform.Common.MIPFService.InsertPatientResponseBody Body;
        
        public InsertPatientResponse() {
        }
        
        public InsertPatientResponse(PushPlatform.Common.MIPFService.InsertPatientResponseBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class InsertPatientResponseBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public PushPlatform.Common.MIPFService.ApiResultOfString InsertPatientResult;
        
        public InsertPatientResponseBody() {
        }
        
        public InsertPatientResponseBody(PushPlatform.Common.MIPFService.ApiResultOfString InsertPatientResult) {
            this.InsertPatientResult = InsertPatientResult;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface EdcMipfServiceSoapChannel : PushPlatform.Common.MIPFService.EdcMipfServiceSoap, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class EdcMipfServiceSoapClient : System.ServiceModel.ClientBase<PushPlatform.Common.MIPFService.EdcMipfServiceSoap>, PushPlatform.Common.MIPFService.EdcMipfServiceSoap {
        
        public EdcMipfServiceSoapClient() {
        }
        
        public EdcMipfServiceSoapClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public EdcMipfServiceSoapClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public EdcMipfServiceSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public EdcMipfServiceSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        PushPlatform.Common.MIPFService.HelloWorldResponse PushPlatform.Common.MIPFService.EdcMipfServiceSoap.HelloWorld(PushPlatform.Common.MIPFService.HelloWorldRequest request) {
            return base.Channel.HelloWorld(request);
        }
        
        public string HelloWorld() {
            PushPlatform.Common.MIPFService.HelloWorldRequest inValue = new PushPlatform.Common.MIPFService.HelloWorldRequest();
            inValue.Body = new PushPlatform.Common.MIPFService.HelloWorldRequestBody();
            PushPlatform.Common.MIPFService.HelloWorldResponse retVal = ((PushPlatform.Common.MIPFService.EdcMipfServiceSoap)(this)).HelloWorld(inValue);
            return retVal.Body.HelloWorldResult;
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<PushPlatform.Common.MIPFService.HelloWorldResponse> PushPlatform.Common.MIPFService.EdcMipfServiceSoap.HelloWorldAsync(PushPlatform.Common.MIPFService.HelloWorldRequest request) {
            return base.Channel.HelloWorldAsync(request);
        }
        
        public System.Threading.Tasks.Task<PushPlatform.Common.MIPFService.HelloWorldResponse> HelloWorldAsync() {
            PushPlatform.Common.MIPFService.HelloWorldRequest inValue = new PushPlatform.Common.MIPFService.HelloWorldRequest();
            inValue.Body = new PushPlatform.Common.MIPFService.HelloWorldRequestBody();
            return ((PushPlatform.Common.MIPFService.EdcMipfServiceSoap)(this)).HelloWorldAsync(inValue);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        PushPlatform.Common.MIPFService.InsertPatientResponse PushPlatform.Common.MIPFService.EdcMipfServiceSoap.InsertPatient(PushPlatform.Common.MIPFService.InsertPatientRequest request) {
            return base.Channel.InsertPatient(request);
        }
        
        public PushPlatform.Common.MIPFService.ApiResultOfString InsertPatient(string projectId, string hosId, string groupId, string patientName, string patientNumber, string gender, string createUser, System.Nullable<System.DateTime> birthday, System.Nullable<System.DateTime> inDate) {
            PushPlatform.Common.MIPFService.InsertPatientRequest inValue = new PushPlatform.Common.MIPFService.InsertPatientRequest();
            inValue.Body = new PushPlatform.Common.MIPFService.InsertPatientRequestBody();
            inValue.Body.projectId = projectId;
            inValue.Body.hosId = hosId;
            inValue.Body.groupId = groupId;
            inValue.Body.patientName = patientName;
            inValue.Body.patientNumber = patientNumber;
            inValue.Body.gender = gender;
            inValue.Body.createUser = createUser;
            inValue.Body.birthday = birthday;
            inValue.Body.inDate = inDate;
            PushPlatform.Common.MIPFService.InsertPatientResponse retVal = ((PushPlatform.Common.MIPFService.EdcMipfServiceSoap)(this)).InsertPatient(inValue);
            return retVal.Body.InsertPatientResult;
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<PushPlatform.Common.MIPFService.InsertPatientResponse> PushPlatform.Common.MIPFService.EdcMipfServiceSoap.InsertPatientAsync(PushPlatform.Common.MIPFService.InsertPatientRequest request) {
            return base.Channel.InsertPatientAsync(request);
        }
        
        public System.Threading.Tasks.Task<PushPlatform.Common.MIPFService.InsertPatientResponse> InsertPatientAsync(string projectId, string hosId, string groupId, string patientName, string patientNumber, string gender, string createUser, System.Nullable<System.DateTime> birthday, System.Nullable<System.DateTime> inDate) {
            PushPlatform.Common.MIPFService.InsertPatientRequest inValue = new PushPlatform.Common.MIPFService.InsertPatientRequest();
            inValue.Body = new PushPlatform.Common.MIPFService.InsertPatientRequestBody();
            inValue.Body.projectId = projectId;
            inValue.Body.hosId = hosId;
            inValue.Body.groupId = groupId;
            inValue.Body.patientName = patientName;
            inValue.Body.patientNumber = patientNumber;
            inValue.Body.gender = gender;
            inValue.Body.createUser = createUser;
            inValue.Body.birthday = birthday;
            inValue.Body.inDate = inDate;
            return ((PushPlatform.Common.MIPFService.EdcMipfServiceSoap)(this)).InsertPatientAsync(inValue);
        }
    }
}
