Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 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);
 }
Example #4
0
 public static bool UpdateHR_Department(HR_Department hR_Department)
 {
     SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider();
     return sqlHR_DepartmentProvider.UpdateHR_Department(hR_Department);
 }
Example #5
0
 public static int InsertHR_Department(HR_Department hR_Department)
 {
     SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider();
     return sqlHR_DepartmentProvider.InsertHR_Department(hR_Department);
 }
Example #6
0
 public static bool DeleteHR_Department(int hR_DepartmentID)
 {
     SqlHR_DepartmentProvider sqlHR_DepartmentProvider = new SqlHR_DepartmentProvider();
     return sqlHR_DepartmentProvider.DeleteHR_Department(hR_DepartmentID);
 }