private void RoleForm_Load(object sender, EventArgs e)
        {
            _roleBll = new RoleBussiness();
            RefleshGrid();
            AuthoryBussiness _authory = new AuthoryBussiness();

            cmbAuthory.DataSource    = _authory.GetAllBLL();
            cmbAuthory.ValueMember   = "ID";
            cmbAuthory.DisplayMember = "AuthoryName";
        }
示例#2
0
        private void EmployeeRegistration_Load(object sender, EventArgs e)
        {
            _employeeBLL = new EmployeeBussiness();
            RoleBussiness _roleBussines = new RoleBussiness();

            cmbRoleID.DataSource    = _roleBussines.GetAllBLL();
            cmbRoleID.DisplayMember = "RoleName";
            cmbRoleID.ValueMember   = "ID";

            RefreshGrid();
        }
        public Framework.Common.CommonBase.DtoContainer GetAll()
        {
            var              result    = securityUserBs.GetAll();
            RoleBussiness    roleBs    = new RoleBussiness();
            GroupBussiness   groupBs   = new GroupBussiness();
            var              roles     = roleBs.GetAll().ToList();
            var              grps      = groupBs.GetAll().ToList();
            UserDtoContainer container = new UserDtoContainer()
            {
                UserDtoList  = result.ToList(),
                RoleDtoList  = roles,
                GroupDtoList = grps
            };

            return(container);
        }
示例#4
0
 public RoleController()
 {
     _rb = new RoleBussiness();
 }