public bool AddDepartment(Department department) { department.MainOfficeTypeID = this.MainOfficeTypeID; DepartmentDBAccess departmentDBAccess = new DepartmentDBAccess(); if (departmentDBAccess.Insert(department)>0) return (true); return (false); }
public bool AddDepartment(Department department) { department.AdjutancyTypeID = this.AdjutancyTypeID; DepartmentDBAccess departmentDBAccess = new DepartmentDBAccess(); if (departmentDBAccess.Insert(department) > 0) { return(true); } return(false); }
public DepartmentHandler() { departmentDb = new DepartmentDBAccess(); }
public List <OfficialEmployeeReward> GetListOfficialEmployeeReward() { OfficialEmployeeRewardList = new DepartmentDBAccess().GetListOfficialEmployeeReward(this.DepartmentID); return(OfficialEmployeeRewardList); }
public List <Employee> GetListEmployee() { EmployeeList = new DepartmentDBAccess().GetListEmployee(this.DepartmentID); return(EmployeeList); }
public List <DepartmentMonthlyInformation> GetListDepartmentMonthlyInformation() { DepartmentMonthlyInformationList = new DepartmentDBAccess().GetListDepartmentMonthlyInformation(this.DepartmentID); return(DepartmentMonthlyInformationList); }