Example #1
0
        /// <summary>
        /// Purpose: Grabs audit information based on ID
        /// Accepts: Int
        /// Returns: Nothing
        /// </summary>
        public void GetAuditByID(int id)
        {
            try
            {
                AuditData data = new AuditData();
                Hashtable hsh = new Hashtable();

                hsh = data.GetAuditByID(id);

                AuditID = id;
                AuditTypeID = Convert.ToInt32(hsh["audittypeid"]);
                UserID = Convert.ToInt32(hsh["userid"]);
                AdminID = Convert.ToInt32(hsh["adminid"]);
                Notes = hsh["notes"];
                Created = hsh["created"];
            }
            catch (Exception ex)
            {
                ErrorRoutine(ex, "Audit", "GetAuditByID");
            }
        }