Esempio n. 1
0
        protected void btnUnarchive_Click(object sender, EventArgs e)
        {
            var iCount = 0;

            try
            {
                var sLoadName = mgLoads.Table.Rows[mgLoads.SelectedIndex][2].ToString();
                Admin.UnarchiveLoad(Convert.ToInt32(mgLoads.ItemID));
                mgLoads.FillMultiGrid("spGetLoadInfo", "LoadID", "", "", false, out iCount);
                lblError.Text = DisplayMessage("Review unarchived.", false);
                btnArchive.AddDisplayNone();
                btnUnarchive.AddDisplayNone();
                mgLoads.SelectedIndex = -1;
                SendEmail("The " + sLoadName + " has been re-activated", "The " + sLoadName + " has been re-activated");
            }
            catch (Exception ex)
            {
                lblError.Text = DisplayMessage("Error: " + ex.Message, true);
            }
        }