public static HR_Department GetHR_DepartmentByDepartmentID(int DepartmentID) { HR_Department hR_Department = new HR_Department(); SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider(); hR_Department = sqlHR_DepartmentProvider.GetHR_DepartmentByDepartmentID(DepartmentID); return hR_Department; }
public static DataSet GetDropDownListAllHR_Department() { DataSet hR_Departments = new DataSet(); SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider(); hR_Departments = sqlHR_DepartmentProvider.GetDropDownLisAllHR_Department(); return hR_Departments; }
public static void LoadHR_DepartmentPage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize) { int recordCount=0; int PageSize = int.Parse(ddlPageSize.SelectedValue); SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider(); DataSet ds = sqlHR_DepartmentProvider.GetHR_DepartmentPageWise(pageIndex, PageSize, out recordCount); gv.DataSource = ds; gv.DataBind(); hR_DepartmentsPaggination(rptPager,recordCount, pageIndex, PageSize); }
public static bool UpdateHR_Department(HR_Department hR_Department) { SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider(); return sqlHR_DepartmentProvider.UpdateHR_Department(hR_Department); }
public static int InsertHR_Department(HR_Department hR_Department) { SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider(); return sqlHR_DepartmentProvider.InsertHR_Department(hR_Department); }
public static bool DeleteHR_Department(int hR_DepartmentID) { SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider(); return sqlHR_DepartmentProvider.DeleteHR_Department(hR_DepartmentID); }