Ejemplo n.º 1
0
        public ReceiptExternal InsertCorrespondence(InsertCorrespondenceShipmentAec2 shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = _context + "InsertCorrespondence";
            return(client.InsertCorrespondenceAECV2(shipment.ExternalShipmentReference, shipment.InsertCorrespondence));
        }
 public CorrespondenceAgencyNoSystemFormEC2()
 {
     InitializeComponent();
     InitializeComponent();
     _caepFunc = new CorrespondenceAgencyNoSystemEndPointFunctionEC2();
     _caepFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     ShipmentTest = new BaseShipment();
     ShipmentIc   = new InsertCorrespondenceShipmentAec2 {
         InsertCorrespondence = new InsertCorrespondenceV2()
     };
     ShipmentIc.InsertCorrespondence.SdpOptions = new SdpOptions();
     Notifications = new NotificationBEList();
     ShipmentIc.InsertCorrespondence.Notifications       = Notifications;
     ShipmentIc.InsertCorrespondence.ReplyOptions        = new CorrespondenceInsertLinkBEList();
     ShipmentIc.InsertCorrespondence.Content             = new ExternalContentV2();
     ShipmentIc.InsertCorrespondence.Content.Attachments = new AttachmentsV2();
     Filter = new GetCorrespondenceStatusEC2();
     CorrespondenceStatus = new CorrespondenceStatusResultV3();
     Filter.CorrespondenceStatusFilter = new CorrespondenceStatusFilterV3();
     Filter.CorrespondenceStatusFilter.SdpSearchOptions = new SdpStatusSearchOptions();
     GchShipment = new GetCorrespondenceStatusHistoryAec2Shipment();
     SetUpObjForPropGrid();
     tb_userName.Enabled = false;
     tb_password.Enabled = false;
 }