private void CheckShipment(BatchLoggingAgencyShipment shipment) { if (shipment.BatchLoggingRequest.TimeRange.DateFrom == DateTime.MinValue && shipment.BatchLoggingRequest.TimeRange.DateTo == DateTime.MinValue) { shipment.BatchLoggingRequest.TimeRange = null; } }
public DataItem GetDataItem(BatchLoggingAgencyShipment shipment) { OperationContext = "BatchLoggingAgencyGetStatusOverview"; using (var client = GenerateBatchLoggingAgencyProxy(shipment)) { return(client.GetDataItem(shipment.Username, shipment.Password, shipment.DataItemIdRequest.DataItemId)); } }
public BatchLoggingDetailedStatus GetDetailedOverview(BatchLoggingAgencyShipment shipment) { OperationContext = "BatchLoggingAgencyGetStatusOverview"; using (var client = GenerateBatchLoggingAgencyProxy(shipment)) { return(client.GetDetailedStatus(shipment.Username, shipment.Password, shipment.BatchLoggingRequest)); } }
public BatchLoggingForm() { func = new BatchLoggingAgencyEndPointFunctionality(); func.ReturnMessageXml += ReturnMessageXmlHandler; shipment = new BatchLoggingAgencyShipment(); result = new BatchLoggingStatusOverview(); resultDetail = new BatchLoggingDetailedStatus(); dataItemResult = new DataItem(); InitializeComponent(); SelectedServiceList.SelectedIndex = 0; SetupObjectsForPropertyGrid(); }
public BatchLoggingForm() { Func = new BatchLoggingAgencyEndPointFunctionality(); Func.ReturnMessageXml += ReturnMessageXmlHandler; Shipment = new BatchLoggingAgencyShipment(); TestShipment = new BaseShipment(); Result = new BatchLoggingStatusOverview(); ResultDetail = new BatchLoggingDetailedStatus(); DataItemResult = new DataItem(); InitializeComponent(); SetupObjectsForPropertyGrid(); AssignActions(); }