Esempio n. 1
0
            public void Read(getSaleTransferBatchNoOrderList_args structs, Protocol iprot)
            {
                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetWarehouse(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetBatchNo(value);
                }



                if (true)
                {
                    int?value;
                    value = iprot.ReadI32();

                    structs.SetDeliveryNum(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetCustomsCode(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetChinaFreightForwarding(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetGlobalFreightForwarding(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetCustomsClearanceMode(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetCreatTime(value);
                }



                if (true)
                {
                    List <com.vip.haitao.orderservice.service.HtSaleTransferBatchNoReOrder> value;

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

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

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

                    iprot.ReadListEnd();

                    structs.SetOrders(value);
                }



                Validate(structs);
            }
Esempio n. 2
0
        public void Read(HtSaleTransferBatchNoParam structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

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


                    if ("warehouse".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetWarehouse(value);
                    }



                    if ("batchNo".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetBatchNo(value);
                    }



                    if ("deliveryNum".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int value;
                        value = iprot.ReadI32();

                        structs.SetDeliveryNum(value);
                    }



                    if ("customsCode".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetCustomsCode(value);
                    }



                    if ("chinaFreightForwarding".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetChinaFreightForwarding(value);
                    }



                    if ("globalFreightForwarding".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetGlobalFreightForwarding(value);
                    }



                    if ("customsClearanceMode".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetCustomsClearanceMode(value);
                    }



                    if ("creatTime".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetCreatTime(value);
                    }



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

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

                                elem0 = new com.vip.haitao.orderservice.service.HtSaleTransferBatchNoReOrder();
                                com.vip.haitao.orderservice.service.HtSaleTransferBatchNoReOrderHelper.getInstance().Read(elem0, iprot);

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

                        iprot.ReadListEnd();

                        structs.SetOrders(value);
                    }



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

                    iprot.ReadFieldEnd();
                }

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