Пример #1
0
        public PrefillDataBEv2 GetPrefillDataV2(GetPrefillDataV2ShipmentEC2 shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = _context + "GetPrefillDataV2";
            return(client.GetPrefillDataECV2(shipment.Username, shipment.Password, shipment.ReporteeNumber, shipment.ExternalServiceCode, shipment.ExternalServiceEditionCode, shipment.PrefillBeList, false));
        }
Пример #2
0
        public void GetPrefillDataV2()
        {
            GetPrefillDataV2ShipmentEC2 ship = new GetPrefillDataV2ShipmentEC2();

            SetBasicShipmentSettings(ship);
            ship.PrefillBeList              = new PreFillRequestBEList();
            ship.ExternalServiceCode        = ShipmentGpdv2.ExternalServiceCode;
            ship.ExternalServiceEditionCode = ShipmentGpdv2.ExternalServiceEditionCode;
            ship.ReporteeNumber             = ShipmentGpdv2.ReporteeNumber;
            if (ShipmentGpdv2.PrefillBeList != null)
            {
                foreach (string s in ShipmentGpdv2.PrefillBeList)
                {
                    ship.PrefillBeList.Add(s);
                }
            }
            try
            {
                ResultGpdv2 = _peusepFunc.GetPrefillDataV2(ship);
                SetViewedItem(ResultGpdv2, "Result from GetPrefillDataV2");
            }
            catch (Exception ex)
            {
                SetViewedItem(ex, "Error from GetPrefillDataV2");
            }
        }
Пример #3
0
        private void btn_GPDV2LoadShip_Click(object sender, EventArgs e)
        {
            GetPrefillDataV2ShipmentEC2 ship = new GetPrefillDataV2ShipmentEC2();

            ship          = Functionality.IoFunctionality.GeneralizedLoadFile(ship);
            ShipmentGpdv2 = ListToArray(ship);
            SetViewedItem(ShipmentGpdv2, "Shipment for GetPrefillDataV2");
        }
Пример #4
0
        private GetPrefillDataV2ShipmentExtEC2 ListToArray(GetPrefillDataV2ShipmentEC2 inship)
        {
            GetPrefillDataV2ShipmentExtEC2 ship = new GetPrefillDataV2ShipmentExtEC2();

            ship.ExternalServiceCode        = inship.ExternalServiceCode;
            ship.ExternalServiceEditionCode = inship.ExternalServiceEditionCode;
            ship.ReporteeNumber             = inship.ReporteeNumber;
            ship.PrefillBeList = inship.PrefillBeList.ToArray();
            return(ship);
        }