Ejemplo n.º 1
0
 /// <remarks/>
 public void endorPolicyAsync(string userName, string passWord, TransportAccidentForEndorseRequsetDto transportAccidentForEndorseRequsetDto, object userState)
 {
     if ((this.endorPolicyOperationCompleted == null))
     {
         this.endorPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnendorPolicyOperationCompleted);
     }
     this.InvokeAsync("endorPolicy", new object[] {
         userName,
         passWord,
         transportAccidentForEndorseRequsetDto
     }, this.endorPolicyOperationCompleted, userState);
 }
Ejemplo n.º 2
0
        public TraceEntity Withdraw(WithdrawEntity entity)
        {
            TraceEntity trace = new TraceEntity();

            if (string.IsNullOrEmpty(entity.PolicyNo))
            {
                return(trace);//兼容之前未对接的已出单证(没有正式保单号)
            }
            TransportAccidentForEndorseRequsetDto dto = new TransportAccidentForEndorseRequsetDto();

            dto.policyNo   = entity.PolicyNo;
            dto.functionId = "2";
            TransportAccidentResponseDto ret = null;

            try
            {
                ret = wsCancel.endorPolicy("zgrs", "zgrs", dto);

                if (ret == null)
                {
                    throw new Exception("北京国寿WebService返回为空!");
                }
            }
            catch
            {
                Common.LogIt(wsCancel.Url);
                throw;
            }

            if (!string.IsNullOrEmpty(ret.error))
            {
                Common.LogIt("北京国寿 退保:" + ret.error);
                trace.ErrorMsg = ret.error;
            }

            return(trace);
        }
Ejemplo n.º 3
0
 /// <remarks/>
 public void endorPolicyAsync(string userName, string passWord, TransportAccidentForEndorseRequsetDto transportAccidentForEndorseRequsetDto)
 {
     this.endorPolicyAsync(userName, passWord, transportAccidentForEndorseRequsetDto, null);
 }
Ejemplo n.º 4
0
 /// <remarks/>
 public System.IAsyncResult BeginendorPolicy(string userName, string passWord, TransportAccidentForEndorseRequsetDto transportAccidentForEndorseRequsetDto, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("endorPolicy", new object[] {
         userName,
         passWord,
         transportAccidentForEndorseRequsetDto
     }, callback, asyncState));
 }
Ejemplo n.º 5
0
        public TransportAccidentResponseDto endorPolicy([System.Xml.Serialization.XmlElementAttribute(IsNullable = true)] string userName, [System.Xml.Serialization.XmlElementAttribute(IsNullable = true)] string passWord, [System.Xml.Serialization.XmlElementAttribute(IsNullable = true)] TransportAccidentForEndorseRequsetDto transportAccidentForEndorseRequsetDto)
        {
            object[] results = this.Invoke("endorPolicy", new object[] {
                userName,
                passWord,
                transportAccidentForEndorseRequsetDto
            });

            return((TransportAccidentResponseDto)(results[0]));
        }