/// <summary> /// 取得員工身分資料 /// </summary> public EmployeeRoleForBackend GetEmployeeRoleData(int roleId) { EmployeeRoleForBackend entity = null; using (EmployeeAuthorityDataAccess empAuthDao = new EmployeeAuthorityDataAccess()) { entity = empAuthDao.GetEmployeeRoleDataForBackend(roleId); dbErrMsg = empAuthDao.GetErrMsg(); } return(entity); }
public EmployeeAuthorizationsWithOwnerInfoOfDataExamined InitialAuthorizationResult(bool isTopPageOfOperation, EmployeeAuthorizations authorizations) { EmployeeAuthorizationsWithOwnerInfoOfDataExamined authAndOwner = new EmployeeAuthorizationsWithOwnerInfoOfDataExamined(authorizations); if (!isTopPageOfOperation) { // get owner info for config-form EmployeeRoleForBackend empRole = null; using (EmployeeAuthorityDataAccess empAuthDao = new EmployeeAuthorityDataAccess()) { empRole = empAuthDao.GetEmployeeRoleDataForBackend(qsRoleId); string dbErrMsg = empAuthDao.GetErrMsg(); } if (empRole != null) { authAndOwner.OwnerAccountOfDataExamined = empRole.PostAccount; authAndOwner.OwnerDeptIdOfDataExamined = empRole.PostDeptId.Value; } } return(authAndOwner); }