예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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);
 }
예제 #4
0
 public static bool UpdateHR_LunchTimeRule(HR_LunchTimeRule hR_LunchTimeRule)
 {
     SqlHR_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider();
     return sqlHR_LunchTimeRuleProvider.UpdateHR_LunchTimeRule(hR_LunchTimeRule);
 }
예제 #5
0
 public static int InsertHR_LunchTimeRule(HR_LunchTimeRule hR_LunchTimeRule)
 {
     SqlHR_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider();
     return sqlHR_LunchTimeRuleProvider.InsertHR_LunchTimeRule(hR_LunchTimeRule);
 }
예제 #6
0
 public static bool DeleteHR_LunchTimeRule(int hR_LunchTimeRuleID)
 {
     SqlHR_LunchTimeRuleProvider sqlHR_LunchTimeRuleProvider = new SqlHR_LunchTimeRuleProvider();
     return sqlHR_LunchTimeRuleProvider.DeleteHR_LunchTimeRule(hR_LunchTimeRuleID);
 }