Exemple #1
0
        private void CarrierDataUpdate_Loaded(object sender, RoutedEventArgs e)
        {
            //get contents from the last page
            CarrierData selectedCarrier = selectedCarrierTemp;

            CarrierID.Text    = Convert.ToString(selectedCarrier.CarrierID);
            CarrierName.Text  = selectedCarrier.CarrierName;
            DepotCity.Text    = selectedCarrier.DepotCity;
            FTLAvail.Text     = Convert.ToString(selectedCarrier.FTLAvail);
            LTLAvail.Text     = Convert.ToString(selectedCarrier.LTLAvail);
            FTLRate.Text      = Convert.ToString(selectedCarrier.FTLRate);
            LTLRate.Text      = Convert.ToString(selectedCarrier.LTLRate);
            ReeferCharge.Text = Convert.ToString(selectedCarrier.ReeferCharge);
        }
Exemple #2
0
 public CarrierDataUpdate(CarrierData carrier) : this()
 {
     selectedCarrierTemp = carrier;
     this.Loaded        += new RoutedEventHandler(CarrierDataUpdate_Loaded);
 }
Exemple #3
0
 ///
 /// \brief This method updates the carrier information in the TMS Database
 ///
 ///
 ///  \details <b>Details</b>
 ///  This method takes the carrier data and updates the current Carrier information in the TMS Database
 ///
 ///  \param newCarrierData - <b>struct CarrierData</b> - Struct containing Carrier Name, FTL Availability, LTL Availability, FTL Rate, LTL Rate and Reefer Charge
 ///
 ///  \return - <b>void</b> - Does not return anything
 ///
 public void UpdateCarrier(CarrierData newCarrierData)
 {
 }
Exemple #4
0
 ///
 /// \brief This method validates the carrier information being added into the TMS Database
 ///
 ///
 ///  \details <b>Details</b>
 ///  This method takes the carrier information that is being added to the system, and validates it.
 ///
 ///  \param newCarrierData - <b>struct CarrierData</b> - Struct containing Carrier Name, FTL Availability, LTL Availability, FTL Rate, LTL Rate and Reefer Charge
 ///
 ///  \return True / False - <b>bool</b> - Return true if validation is successful, false if failed.
 ///
 public bool ValidateCarrierData(CarrierData newCarrierData)
 {
     return(true);
 }
Exemple #5
0
 ///
 /// \brief This method adds a Carrier into the system
 ///
 ///
 ///  \details <b>Details</b>
 ///  This method takes the carrier information that is entered by the user, and calls the ValidateCarrierData function
 ///  to validate the data. If the data is verified and good to go, it is added into the TMS System.
 ///
 ///  \param newCarrierData - <b>struct CarrierData</b> - Struct containing Carrier Name, FTL Availability, LTL Availability, FTL Rate, LTL Rate and Reefer Charge
 ///
 ///  \return - <b>void</b> - Does not return anything
 ///
 public void AddCarrier(CarrierData newCarrierData)
 {
 }