protected void btnDel_Click(object sender, EventArgs e)
        {
            Repeater list = (Repeater)UsersList1.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.Users domainUsers = new ZhuJi.UUMS.Domain.Users();

                domainUsers.Id = int.Parse(id);

                ZhuJi.UUMS.IDAL.IUsers users = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.UUMS.NHibernateDAL.Users)) as ZhuJi.UUMS.IDAL.IUsers;
                users.Delete(domainUsers);

                Response.Redirect(Request.Url.ToString(), true);
            }
            catch (Exception ex)
            {
                ShowMessage(ex);
            }
        }
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            Repeater list = (Repeater)UsersList1.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;
            UsersEdit1.Identity = int.Parse(id);
            UsersEdit1.Command  = "EDIT";
            UsersEdit1.Initialize();
        }