public static ATTEmployee GetEmployees(double empID, string symbolNo) { ATTEmployee emp = new ATTEmployee(); object obj; try { obj = DLLEmployee.GetConnection(); emp.LstEmployeeVisits = BLLEmployeeVisits.GetEmployeeVisits(obj, empID); emp.LstEmployeeExperience = BLLEmployeeExperience.GetEmployeeExperience(obj, empID); emp.LstEmployeePosting = BLLEmployeePosting.GetEmployeeAllPosting(obj, empID); //emp.LSTAttachments = BLLPersonAttachments.GetAttachments(obj, empID); emp.LstEmployeePublication = BLLEmployeePublication.GetEmployeePublication(empID, obj); emp.LstEmpRelativeBeneficiary = BLLVwEmpRelativeBeneficiary.GetEmpRelativeBeneficiary(empID, obj); emp.LstInsurance = BLLInsurance.GetEmpInsurance(empID); emp.LSTEmpDeputation = BLLEmployeeDeputation.GetEmpForDeputationInfo(null, "Y", empID); emp.LstManonayan = BLLManonayan.GetManonayan(empID); emp.ObjPerson = BLLPerson.GetPersonnelDetails(obj, empID); return(emp); } catch (Exception ex) { throw ex; } finally { DLLEmployee.CloseConnection(); } }
public static List <ATTEmployeePosting> GetEmpPosting(double empID) { ATTEmployee emp = new ATTEmployee(); object obj; try { obj = DLLEmployee.GetConnection(); emp.LstEmployeePosting = BLLEmployeePosting.GetEmployeePosting(obj, empID); return(emp.LstEmployeePosting); } catch (Exception ex) { throw ex; } finally { DLLEmployee.CloseConnection(); } }