Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 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);
 }
Example #4
0
 public static bool UpdateHR_Year(HR_Year hR_Year)
 {
     SqlHR_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider();
     return sqlHR_YearProvider.UpdateHR_Year(hR_Year);
 }
Example #5
0
 public static int InsertHR_Year(HR_Year hR_Year)
 {
     SqlHR_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider();
     return sqlHR_YearProvider.InsertHR_Year(hR_Year);
 }
Example #6
0
 public static bool DeleteHR_Year(int hR_YearID)
 {
     SqlHR_YearProvider sqlHR_YearProvider = new SqlHR_YearProvider();
     return sqlHR_YearProvider.DeleteHR_Year(hR_YearID);
 }