public static HR_LunchTimeRule GetHR_LunchTimeRuleByLunchTimeRuleID(int LunchTimeRuleID) { HR_LunchTimeRule hR_LunchTimeRule = new HR_LunchTimeRule(); SqlHR_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider(); hR_LunchTimeRule = sqlHR_LunchTimeRuleProvider.GetHR_LunchTimeRuleByLunchTimeRuleID(LunchTimeRuleID); return hR_LunchTimeRule; }
public static DataSet GetDropDownListAllHR_LunchTimeRule() { DataSet hR_LunchTimeRules = new DataSet(); SqlHR_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider(); hR_LunchTimeRules = sqlHR_LunchTimeRuleProvider.GetDropDownListAllHR_LunchTimeRule(); return hR_LunchTimeRules; }
public static void LoadHR_LunchTimeRulePage(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_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider(); DataSet ds = sqlHR_LunchTimeRuleProvider.GetHR_LunchTimeRulePageWise(pageIndex, PageSize, out recordCount); gv.DataSource = ds; gv.DataBind(); hR_LunchTimeRulesPaggination(rptPager,recordCount, pageIndex, PageSize); }
public static bool UpdateHR_LunchTimeRule(HR_LunchTimeRule hR_LunchTimeRule) { SqlHR_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider(); return sqlHR_LunchTimeRuleProvider.UpdateHR_LunchTimeRule(hR_LunchTimeRule); }
public static int InsertHR_LunchTimeRule(HR_LunchTimeRule hR_LunchTimeRule) { SqlHR_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider(); return sqlHR_LunchTimeRuleProvider.InsertHR_LunchTimeRule(hR_LunchTimeRule); }
public static bool DeleteHR_LunchTimeRule(int hR_LunchTimeRuleID) { SqlHR_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider(); return sqlHR_LunchTimeRuleProvider.DeleteHR_LunchTimeRule(hR_LunchTimeRuleID); }