Beispiel #1
0
        /// <summary>
        /// Purpose: Grabs delivery type information based on ID
        /// Accepts: Int
        /// Returns: Nothing
        /// </summary>
        public void GetDeliveryTypeByID(int id)
        {
            try
            {
                DeliveryTypeData data = new DeliveryTypeData();
                Hashtable        hsh  = new Hashtable();

                hsh = data.GetDeliveryTypeByID(id);

                _deliveryTypeID = id;
                Name            = hsh["name"].ToString();
                Description     = hsh["description"].ToString();
                Cost            = Convert.ToDouble(hsh["cost"]);
                Created         = Convert.ToDateTime(hsh["created"]);
                Modified        = Convert.ToDateTime(hsh["modified"]);
            }
            catch (Exception ex)
            {
                ErrorRoutine(ex, "DeliveryType", "GetDeliveryTypeByID");
            }
        }