Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         _presenter = new RoleModulePresenter(this);
         _presenter.Init();
     }
     ctlModuleList.ControlInit(ModuleList);
 }
Esempio n. 2
0
        protected void btn_Save_Click(object sender, EventArgs e)
        {
            _presenter = new RoleModulePresenter(this);
            if (_presenter.Save())
            {
                ctlTip.Text = "保存成功!";
            }
            else
            {
                ctlTip.Text = "保存失败!";
            }

            Session["RoleModuleList"] = null;
        }
Esempio n. 3
0
        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            LinkButton btn = sender as LinkButton;
            string roleid = btn.CommandArgument;
            string rolename = btn.Text;
            roleinfo.InnerText = rolename;
            ctlRoleid.Text = roleid;

            _presenter = new RoleModulePresenter(this);
            _presenter.SetRoleModules();
            Moduleinfo.Style.Add("display", "");

            ctlTip.Text = "";
            //  SetUserList();
        }
Esempio n. 4
0
        public IList<Base_User> GetData(int maxRows, int startIndex)
        {
            this.MaxRows = maxRows;
            this.StartIndex = startIndex;

            _presenter = new RoleModulePresenter(this);
            IList<Base_User> list;
            //   if (ctlRoleid != null)
            // {
            _presenter.GetUserList();
            list = this.UserList;
            //}
            //else
            //{
            //   list = new List<Base_User>();
            //}
            return list;
        }