Exemplo n.º 1
0
        public accountReturnDto receive([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] accountReturnDto arg0)
        {
            object[] results = this.Invoke("receive", new object[] {
                arg0
            });

            return((accountReturnDto)(results[0]));
        }
Exemplo n.º 2
0
 /// <remarks/>
 public void receiveAsync(accountReturnDto arg0, object userState)
 {
     if ((this.receiveOperationCompleted == null))
     {
         this.receiveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnreceiveOperationCompleted);
     }
     this.InvokeAsync("receive", new object[] {
         arg0
     }, this.receiveOperationCompleted, userState);
 }
Exemplo n.º 3
0
        // 资金同步接口(好像已弃用,与资金同步一起了)
        /// <summary>
        /// 资金同步接口(好像已弃用,与资金同步一起了)
        /// </summary>
        /// <param name="service"></param>
        /// <param name="param"></param>
        /// <returns></returns>
        public static accountReturnDto Do(this SI05ImplService service, accountReturnDto param)
        {
            service.Url = PubHelper.GetAddress(service.Url);

            string entityName = "资金同步接口";
            long svID = -1;
            if (IsLog)
            {
                svID = ProxyLogger.CreateTransferSV(entityName
                    //, EntitySerialization.EntitySerial(bpObj)
                    , Newtonsoft.Json.JsonConvert.SerializeObject(param)
                    , service.GetType().FullName,Newtonsoft.Json.JsonConvert.SerializeObject(service));
            }

            try
            {
                var result = service.receive(param);

                if (svID > 0)
                {
                    if (result != null
                        )
                    {
                        //string resultXml = EntitySerialization.EntitySerial(result);
                        string resultXml = Newtonsoft.Json.JsonConvert.SerializeObject(result);

                        ProxyLogger.UpdateTransferSV(svID, resultXml, result.flag == 1, result.errMsg, string.Empty, string.Empty);
                    }
                    else
                    {
                        ProxyLogger.UpdateTransferSV(svID, string.Empty, false, Const_ResultNullMessage, string.Empty, string.Empty);
                    }
                }
                return result;
            }
            catch (Exception ex)
            {
                if (svID > 0)
                {
                    ProxyLogger.UpdateTransferSV(svID, string.Empty, false, ex.Message, string.Empty, ex.StackTrace);
                }

                throw ex;
            }

            return null;
        }
Exemplo n.º 4
0
 /// <remarks/>
 public void receiveAsync(accountReturnDto arg0, object userState) {
     if ((this.receiveOperationCompleted == null)) {
         this.receiveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnreceiveOperationCompleted);
     }
     this.InvokeAsync("receive", new object[] {
                 arg0}, this.receiveOperationCompleted, userState);
 }
Exemplo n.º 5
0
 /// <remarks/>
 public void receiveAsync(accountReturnDto arg0) {
     this.receiveAsync(arg0, null);
 }
Exemplo n.º 6
0
        private accountReturnDto GetAccountDTO(ShipLine shipline)
        {
            if (shipline != null
                && shipline.Ship != null
                )
            {
                long shipID = shipline.Ship.ID;

                if (dicAccountDTO.ContainsKey(shipID))
                {
                    return dicAccountDTO[shipID];
                }
                else
                {
                    accountReturnDto accDTO = new accountReturnDto();

                    dicAccountDTO.Add(shipID, accDTO);

                    return accDTO;
                }
            }

            return null;
        }
Exemplo n.º 7
0
 /// <remarks/>
 public void receiveAsync(accountReturnDto arg0)
 {
     this.receiveAsync(arg0, null);
 }