protected void btnDel_Click(object sender, EventArgs e)
        {
            Repeater list = (Repeater)PermissionByMethodsList1.FindControl("rptList");
            string   id   = UIControlHelper.GetCheckBoxByRepeater(list, "chkId");

            if (id.Length == 0)
            {
                MessageHelper.ShowAndBack(Page, MessageHelper.GetMessage("NOCHECK"));
                return;
            }
            if (id.Split(',').Length > 1)
            {
                MessageHelper.ShowAndBack(Page, MessageHelper.GetMessage("MORECHECK"));
                return;
            }
            try
            {
                ZhuJi.UUMS.Domain.PermissionByMethods domainPermissionByMethods = new ZhuJi.UUMS.Domain.PermissionByMethods();

                domainPermissionByMethods.Id = int.Parse(id);

                ZhuJi.UUMS.IDAL.IPermissionByMethods permissionByMethods = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.UUMS.NHibernateDAL.PermissionByMethods)) as ZhuJi.UUMS.IDAL.IPermissionByMethods;
                permissionByMethods.Delete(domainPermissionByMethods);

                Response.Redirect(Request.Url.ToString(), true);
            }
            catch (Exception ex)
            {
                ShowMessage(ex);
            }
        }
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            Repeater list = (Repeater)PermissionByMethodsList1.FindControl("rptList");
            string   id   = UIControlHelper.GetCheckBoxByRepeater(list, "chkId");

            if (id.Length == 0)
            {
                MessageHelper.ShowAndBack(Page, MessageHelper.GetMessage("NOCHECK"));
                return;
            }
            if (id.Split(',').Length > 1)
            {
                MessageHelper.ShowAndBack(Page, MessageHelper.GetMessage("MORECHECK"));
                return;
            }
            Initialize();
            pnlEdit.Visible = true;
            PermissionByMethodsEdit1.Identity = int.Parse(id);
            PermissionByMethodsEdit1.Command  = "EDIT";
            PermissionByMethodsEdit1.Initialize();
        }