Пример #1
0
        protected void lnk_change_status_click(object sender, CommandEventArgs args)
        {
            try
            {
                int Id = 0;
                int.TryParse(args.CommandName, out Id);
                bool status = false;
                bool.TryParse(args.CommandArgument.ToString(), out status);

                Rol oR = new Rol();
                oR.Id = Id;
                RolMng oRMng = new RolMng();
                oRMng.O_Rol = oR;

                //if (status)
                //    oRMng.dlt();
                //else
                //    oRMng.reactive();

                oRMng = new RolMng();
                oRMng.fillAllLst();
                fillCatalog(oRMng.Lst);
            }
            catch (Exception e)
            {
                ((MstCasc)this.Master).setError = e.Message;
            }
        }
Пример #2
0
 protected void Page_Load(object sender, EventArgs args)
 {
     if (!IsPostBack)
     {
         try
         {
             RolMng oRMng = new RolMng();
             oRMng.fillAllLst();
             fillCatalog(oRMng.Lst);
         }
         catch (Exception e)
         {
             ((MstCasc)this.Master).setError = e.Message;
         }
     }
 }