private void CheckShipment(BatchLoggingAgencyShipmentEC2 shipment)
 {
     if (shipment.BatchLoggingRequest.TimeRange.DateFrom == DateTime.MinValue && shipment.BatchLoggingRequest.TimeRange.DateTo == DateTime.MinValue)
     {
         shipment.BatchLoggingRequest.TimeRange = null;
     }
 }
 public DataItem GetDataItem(BatchLoggingAgencyShipmentEC2 shipment)
 {
     OperationContext = "BatchLoggingAgencyGetStatusOverview";
     CheckShipment(shipment);
     using (var client = GenerateBatchLoggingAgencyProxy(shipment))
     {
         return(client.GetDataItem(shipment.Username, shipment.Password, shipment.DataItemIdRequest.DataItemId));
     }
 }
 public BatchLoggingDetailedStatus GetDetailedOverview(BatchLoggingAgencyShipmentEC2 shipment)
 {
     OperationContext = "BatchLoggingAgencyGetStatusOverview";
     CheckShipment(shipment);
     using (var client = GenerateBatchLoggingAgencyProxy(shipment))
     {
         return(client.GetDetailedStatus(shipment.Username, shipment.Password, shipment.BatchLoggingRequest));
     }
 }
Esempio n. 4
0
 public BatchLoggingFormEC2()
 {
     Func = new BatchLoggingAgencyEndPointFunctionalityEC2();
     Func.ReturnMessageXml += ReturnMessageXmlHandler;
     Shipment       = new BatchLoggingAgencyShipmentEC2();
     TestShipment   = new BaseShipment();
     Result         = new BatchLoggingStatusOverview();
     ResultDetail   = new BatchLoggingDetailedStatus();
     DataItemResult = new DataItem();
     InitializeComponent();
     SetupObjectsForPropertyGrid();
     AssignActions();
 }