public void SearchEmployee(object sender, EventArgs e) { int positionID = _View.PositionID; int departmentID = _View.DepartmentID; _View.EmployeeLeft = BulletinUtility.RemoteUnAuthAccount( _IAccount.GetAccountByBaseCondition(_View.EmployeeName, departmentID, positionID, null, true, true), AuthType.SEP, LoginUser, Powers.A302); }
private void GetAccountGroupsInBulletin() { List <Error> errorList = new List <Error>(); List <AccountGroup> accountgroupList = new List <AccountGroup>(); try { string accountgroupname = _Context.Request.Params["accountgroupname"]; Account account = HttpContext.Current.Session[SessionKeys.LOGININFO] as Account; accountgroupList = BllInstance.AccountGroupBllInstance.GetAccountGroupByCondition(accountgroupname); foreach (AccountGroup item in accountgroupList) { item.AccountList = BulletinUtility.RemoteUnAuthAccount(item.AccountList, AuthType.SEP, account, Powers.A302); } } catch (Exception ex) { errorList.Add(new Error("ChooseAccountErrorMessage", ex.Message)); } GetAccountGroups(accountgroupList, errorList); }
private void GetAccountsInBulletin() { List <Error> errorList = new List <Error>(); List <Account> accountList = new List <Account>(); try { string accountname = _Context.Request.Params["accountname"]; int departmentid = Convert.ToInt32(_Context.Request.Params["departmentid"]); int positionid = Convert.ToInt32(_Context.Request.Params["positionid"]); Account account = HttpContext.Current.Session[SessionKeys.LOGININFO] as Account; accountList = BllInstance.AccountBllInstance.GetAccountByBaseCondition(accountname, departmentid, positionid, null, true, true); accountList = BulletinUtility.RemoteUnAuthAccount(accountList, AuthType.SEP, account, Powers.A302); } catch (Exception ex) { errorList.Add(new Error("ChooseAccountErrorMessage", ex.Message)); } GetAccounts(accountList, errorList); }