public void Init() { var baseUrl = "http://localhost/openretail_webapi/"; _log = LogManager.GetLogger(typeof(JabatanWebAPIBllTest)); _bll = new JabatanBll(true, baseUrl, _log); }
public FrmEntryJabatan(string header, IJabatanBll bll) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); this._bll = bll; this._isNewData = true; }
public FrmEntryJabatan(string header, Jabatan jabatan, IJabatanBll bll) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.SetButtonSelesaiToBatal(); this._bll = bll; this._jabatan = jabatan; txtJabatan.Text = this._jabatan.nama_jabatan; txtKeterangan.Text = this._jabatan.keterangan; }
public FrmListJabatan(string header, Pengguna pengguna, string menuId) : base(header) { InitializeComponent(); _log = MainProgram.log; _bll = new JabatanBll(MainProgram.isUseWebAPI, MainProgram.baseUrl, _log); // set hak akses untuk SELECT var role = pengguna.GetRoleByMenuAndGrant(menuId, GrantState.SELECT); if (role != null) { if (role.is_grant) { LoadData(); } } InitGridList(); // set hak akses selain SELECT (TAMBAH, PERBAIKI dan HAPUS) RolePrivilegeHelper.SetHakAkses(this, pengguna, menuId, _listOfJabatan.Count); }
public void CleanUp() { _bll = null; }
public void Init() { _log = LogManager.GetLogger(typeof(JabatanBllTest)); _bll = new JabatanBll(_log); }