Beispiel #1
0
        // GET: UserPC
        public ActionResult Index()
        {
            string eid = LoginUser.UserBasic.EnterpriseID;

            ViewData["RoleId"]  = new SelectList(roleBll.GetList(eid, ""), "ID", "RoleName");
            ViewData["RoleId1"] = new SelectList(roleBll.GetList(eid, ""), "ID", "RoleName");
            ViewData["RoleId2"] = new SelectList(roleBll.GetList(eid, ""), "ID", "RoleName");
            ViewData["RoleId3"] = new SelectList(roleBll.GetList(eid, ""), "ID", "RoleName");
            return(View());
        }
        //显示列表数据
        protected void BindRpt()
        {
            UserRoleBll     bll  = new UserRoleBll();
            List <UserRole> list = bll.GetList();

            if (list != null)
            {
                this.rptList.DataSource = list;
                this.rptList.DataBind();
            }
        }
Beispiel #3
0
        //绑定角色下拉列表
        protected void BindRole()
        {
            UserRoleBll     bll  = new UserRoleBll();
            List <UserRole> list = bll.GetList();

            if (list != null)
            {
                this.chkListRole.DataSource     = list;
                this.chkListRole.DataTextField  = "RoleName";
                this.chkListRole.DataValueField = "RoleId";
                this.chkListRole.DataBind();
            }
        }
Beispiel #4
0
        // GET: UserRole

        public ActionResult Index()
        {
            return(View(bll.GetList(LoginUser.UserBasic.EnterpriseID, "")));
        }