public static HR_Year GetHR_YearByYearID(int YearID) { HR_Year hR_Year = new HR_Year(); SqlHR_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider(); hR_Year = sqlHR_YearProvider.GetHR_YearByYearID(YearID); return hR_Year; }
public static DataSet GetDropDownListAllHR_Year() { DataSet hR_Years = new DataSet(); SqlHR_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider(); hR_Years = sqlHR_YearProvider.GetDropDownListAllHR_Year(); return hR_Years; }
public static void LoadHR_YearPage(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_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider(); DataSet ds = sqlHR_YearProvider.GetHR_YearPageWise(pageIndex, PageSize, out recordCount); gv.DataSource = ds; gv.DataBind(); hR_YearsPaggination(rptPager,recordCount, pageIndex, PageSize); }
public static bool UpdateHR_Year(HR_Year hR_Year) { SqlHR_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider(); return sqlHR_YearProvider.UpdateHR_Year(hR_Year); }
public static int InsertHR_Year(HR_Year hR_Year) { SqlHR_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider(); return sqlHR_YearProvider.InsertHR_Year(hR_Year); }
public static bool DeleteHR_Year(int hR_YearID) { SqlHR_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider(); return sqlHR_YearProvider.DeleteHR_Year(hR_YearID); }