Ejemplo n.º 1
0
        private void HyperLinkCancelShipment_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(this.m_TrackingNumber) == false)
            {
                Business.MaterialTracking.Model.FedexAccountProduction     fedExAccount          = new Business.MaterialTracking.Model.FedexAccountProduction();
                Business.MaterialTracking.Model.FedexDeleteShipmentRequest deleteShipmentRequest = new Business.MaterialTracking.Model.FedexDeleteShipmentRequest(fedExAccount, this.m_TrackingNumber);
                Business.MaterialTracking.Model.FedexDeleteShipmentReply   result = deleteShipmentRequest.Post();

                if (result.RequestWasSuccessful == true)
                {
                    this.m_ZPLII          = null;
                    this.m_TrackingNumber = null;
                    this.NotifyPropertyChanged(string.Empty);
                }
                else
                {
                    MessageBox.Show("There was a problem with this Request.");
                }
            }
        }
Ejemplo n.º 2
0
        private void HyperLinkCancelShipment_Click(object sender, RoutedEventArgs e)
        {
            Business.Task.Model.TaskOrderDetailFedexShipment taskOrderDetail = this.m_TaskOrder.TaskOrderDetailCollection.GetFedexShipment();
            if (string.IsNullOrEmpty(taskOrderDetail.TrackingNumber) == false)
            {
                Business.MaterialTracking.Model.FedexAccountProduction     fedExAccount          = new Business.MaterialTracking.Model.FedexAccountProduction();
                Business.MaterialTracking.Model.FedexDeleteShipmentRequest deleteShipmentRequest = new Business.MaterialTracking.Model.FedexDeleteShipmentRequest(fedExAccount, taskOrderDetail.TrackingNumber);
                Business.MaterialTracking.Model.FedexDeleteShipmentReply   result = deleteShipmentRequest.Post();

                if (result.RequestWasSuccessful == true)
                {
                    taskOrderDetail.ZPLII               = null;
                    taskOrderDetail.TrackingNumber      = null;
                    taskOrderDetail.LabelHasBeenPrinted = false;
                }
                else
                {
                    MessageBox.Show("There was a problem with this Request.");
                }
            }
        }
Ejemplo n.º 3
0
        private void HyperLinkCancelShipment_Click(object sender, RoutedEventArgs e)
        {
            Business.Task.Model.TaskOrderDetailFedexShipment taskOrderDetail = this.m_TaskOrder.TaskOrderDetailCollection.GetFedexShipment();
            if(string.IsNullOrEmpty(taskOrderDetail.TrackingNumber) == false)
            {
                Business.MaterialTracking.Model.FedexAccountProduction fedExAccount = new Business.MaterialTracking.Model.FedexAccountProduction();
                Business.MaterialTracking.Model.FedexDeleteShipmentRequest deleteShipmentRequest = new Business.MaterialTracking.Model.FedexDeleteShipmentRequest(fedExAccount, taskOrderDetail.TrackingNumber);
                Business.MaterialTracking.Model.FedexDeleteShipmentReply result = deleteShipmentRequest.Post();

                if(result.RequestWasSuccessful == true)
                {
                    taskOrderDetail.ZPLII = null;
                    taskOrderDetail.TrackingNumber = null;
                    taskOrderDetail.LabelHasBeenPrinted = false;
                }
                else
                {
                    MessageBox.Show("There was a problem with this Request.");
                }
            }
        }