/// <summary> /// Initializes a new instance of the <see cref="LoginBll" /> class. /// </summary> /// <param name="config">The config value.</param> public LoginBll(IConfigSetting config, IUnitOfWork unitOfWork, IAdService adService, IRoleBll roleBll) { _config = config; _unitOfWork = unitOfWork; _adService = adService; _roleBll = roleBll; }
public FrmListHakAkses(string header, Pengguna pengguna, string menuId) : base() { InitializeComponent(); base.SetHeader(header); base.WindowState = FormWindowState.Maximized; _log = MainProgram.log; _bll = new RoleBll(_log); // set hak akses untuk SELECT var role = pengguna.GetRoleByMenuAndGrant(menuId, GrantState.SELECT); if (role != null) { if (role.is_grant) { LoadMenuParent(); SetMenuParent(cmbMenu); LoadData(); } cmbMenu.Enabled = role.is_grant; chkPilihSemua.Enabled = role.is_grant; btnSimpan.Enabled = role.is_grant; } InitGridList(); // set hak akses selain SELECT (TAMBAH, PERBAIKI dan HAPUS) RolePrivilegeHelper.SetHakAkses(this, pengguna, menuId, _listOfRole.Count); }
public FrmEntryHakAkses(string header, IRoleBll bll) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); this._bll = bll; this._isNewData = true; }
public FrmEntryHakAkses(string header, Role role, IRoleBll bll) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.SetButtonSelesaiToBatal(); this._bll = bll; this._role = role; txtNamaRole.Text = this._role.nama_role; if (this._role.is_active) { rdoAktif.Checked = true; } else { rdoNonAktif.Checked = true; } }
/// <summary> /// Initializes a new instance of the <see cref="RoleController" /> class. /// </summary> /// <param name="role"></param> public RoleController(IRoleBll role) { _role = role; }
public void CleanUp() { _bll = null; }
public void Init() { _log = LogManager.GetLogger(typeof(RoleBllTest)); _bll = new RoleBll(_log); }
public LoginController(IResourceBll resourceBll, IUserBll userBll, IRoleBll roleBll) { _resourceBll = resourceBll; _userBll = userBll; _roleBll = roleBll; }
public RoleController(IRoleBll roleBll, IResourceBll resourceBll) { _roleBll = roleBll; _resourceBll = resourceBll; }
public UserBll(ILogger logger, IRoleBll roleBll, IUserDao userDao) { _logger = logger; _roleBll = roleBll; _userDao = userDao; }
/// <summary> /// Initializes a new instance of the <see cref="RoleBllTest" /> class. /// </summary> /// <param name="io">The IoCConfig class provide installing all components needed to use.</param> public RoleBllTest(IoCConfig io) { _role = io.ServiceProvider.GetRequiredService <IRoleBll>(); _config = io.ServiceProvider.GetRequiredService <IConfigSetting>(); }
/// <summary> /// Initializes a new instance of the <see cref="MenuBll" /> class. /// </summary> /// <param name="unitOfWork">The utilities unit of work.</param> public MenuBll(IUnitOfWork unitOfWork, IRoleBll roleBll) { _unitOfWork = unitOfWork; _roleBll = roleBll; }
public UserController(IUserBll userBll, IRoleBll roleBll) { _userBll = userBll; _roleBll = roleBll; }