public void Read(HtLadingBillNumberInfoResult structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

            if (schemeStruct != null)
            {
                while (true)
                {
                    String schemeField = iprot.ReadFieldBegin();
                    if (schemeField == null)
                    {
                        break;
                    }
                    bool needSkip = true;


                    if ("head".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.haitao.orderservice.service.Head value;

                        value = new com.vip.haitao.orderservice.service.Head();
                        com.vip.haitao.orderservice.service.HeadHelper.getInstance().Read(value, iprot);

                        structs.SetHead(value);
                    }



                    if ("ladingBill".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.haitao.orderservice.service.HtLadingBillNumberManagmentModel value;

                        value = new com.vip.haitao.orderservice.service.HtLadingBillNumberManagmentModel();
                        com.vip.haitao.orderservice.service.HtLadingBillNumberManagmentModelHelper.getInstance().Read(value, iprot);

                        structs.SetLadingBill(value);
                    }



                    if (needSkip)
                    {
                        ProtocolUtil.skip(iprot);
                    }

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }
Beispiel #2
0
 public void SetHead(com.vip.haitao.orderservice.service.Head value)
 {
     this.head_ = value;
 }
Beispiel #3
0
        public void Read(HtSaleOrderCancellationResult structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

            if (schemeStruct != null)
            {
                while (true)
                {
                    String schemeField = iprot.ReadFieldBegin();
                    if (schemeField == null)
                    {
                        break;
                    }
                    bool needSkip = true;


                    if ("head".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.haitao.orderservice.service.Head value;

                        value = new com.vip.haitao.orderservice.service.Head();
                        com.vip.haitao.orderservice.service.HeadHelper.getInstance().Read(value, iprot);

                        structs.SetHead(value);
                    }



                    if ("cancelledSaleOrderList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <com.vip.haitao.orderservice.service.HtCancelledSaleOrderResultModel> value;

                        value = new List <com.vip.haitao.orderservice.service.HtCancelledSaleOrderResultModel>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                com.vip.haitao.orderservice.service.HtCancelledSaleOrderResultModel elem2;

                                elem2 = new com.vip.haitao.orderservice.service.HtCancelledSaleOrderResultModel();
                                com.vip.haitao.orderservice.service.HtCancelledSaleOrderResultModelHelper.getInstance().Read(elem2, iprot);

                                value.Add(elem2);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetCancelledSaleOrderList(value);
                    }



                    if (needSkip)
                    {
                        ProtocolUtil.skip(iprot);
                    }

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }
Beispiel #4
0
        public void Read(HtSaleTransferLadingBillResult structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

            if (schemeStruct != null)
            {
                while (true)
                {
                    String schemeField = iprot.ReadFieldBegin();
                    if (schemeField == null)
                    {
                        break;
                    }
                    bool needSkip = true;


                    if ("head".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.haitao.orderservice.service.Head value;

                        value = new com.vip.haitao.orderservice.service.Head();
                        com.vip.haitao.orderservice.service.HeadHelper.getInstance().Read(value, iprot);

                        structs.SetHead(value);
                    }



                    if ("interBatchNos".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <com.vip.haitao.orderservice.service.InterBatchNoVo> value;

                        value = new List <com.vip.haitao.orderservice.service.InterBatchNoVo>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                com.vip.haitao.orderservice.service.InterBatchNoVo elem1;

                                elem1 = new com.vip.haitao.orderservice.service.InterBatchNoVo();
                                com.vip.haitao.orderservice.service.InterBatchNoVoHelper.getInstance().Read(elem1, iprot);

                                value.Add(elem1);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetInterBatchNos(value);
                    }



                    if (needSkip)
                    {
                        ProtocolUtil.skip(iprot);
                    }

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }
Beispiel #5
0
        public void Read(HtCustomsDeclarationResponseMessage structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

            if (schemeStruct != null)
            {
                while (true)
                {
                    String schemeField = iprot.ReadFieldBegin();
                    if (schemeField == null)
                    {
                        break;
                    }
                    bool needSkip = true;


                    if ("head".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.haitao.orderservice.service.Head value;

                        value = new com.vip.haitao.orderservice.service.Head();
                        com.vip.haitao.orderservice.service.HeadHelper.getInstance().Read(value, iprot);

                        structs.SetHead(value);
                    }



                    if ("body".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <com.vip.haitao.orderservice.service.HtCustomsDeclarationResponseMessageBody> value;

                        value = new List <com.vip.haitao.orderservice.service.HtCustomsDeclarationResponseMessageBody>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                com.vip.haitao.orderservice.service.HtCustomsDeclarationResponseMessageBody elem1;

                                elem1 = new com.vip.haitao.orderservice.service.HtCustomsDeclarationResponseMessageBody();
                                com.vip.haitao.orderservice.service.HtCustomsDeclarationResponseMessageBodyHelper.getInstance().Read(elem1, iprot);

                                value.Add(elem1);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetBody(value);
                    }



                    if (needSkip)
                    {
                        ProtocolUtil.skip(iprot);
                    }

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }