public EmployeeAuthorizationsWithOwnerInfoOfDataExamined InitialAuthorizationResult(bool isTopPageOfOperation, EmployeeAuthorizations authorizations) { EmployeeAuthorizationsWithOwnerInfoOfDataExamined authAndOwner = new EmployeeAuthorizationsWithOwnerInfoOfDataExamined(authorizations); if (!isTopPageOfOperation) { // get owner info for config-form using (EmployeeAuthorityDataAccess empAuthDao = new EmployeeAuthorityDataAccess()) { string empAccount = empAuthDao.GetEmployeeAccountOfId(qsEmpId); string dbErrMsg = empAuthDao.GetErrMsg(); if (!string.IsNullOrEmpty(empAccount)) { accountOfData = empAccount; EmployeeForBackend empData = empAuthDao.GetEmployeeDataForBackend(empAccount); dbErrMsg = empAuthDao.GetErrMsg(); if (empData != null) { authAndOwner.OwnerAccountOfDataExamined = empData.OwnerAccount; authAndOwner.OwnerDeptIdOfDataExamined = empData.OwnerDeptId; } } } } return(authAndOwner); }