Exemple #1
0
 public static HR_LunchRule GetHR_LunchRuleByLunchRuleID(int LunchRuleID)
 {
     HR_LunchRule hR_LunchRule = new HR_LunchRule();
     SqlHR_LunchRuleProvider sqlHR_LunchRuleProvider = new SqlHR_LunchRuleProvider();
     hR_LunchRule = sqlHR_LunchRuleProvider.GetHR_LunchRuleByLunchRuleID(LunchRuleID);
     return hR_LunchRule;
 }
Exemple #2
0
 public static HR_LunchRule GetHR_LunchRuleByEmployeeID(string EmployeeID)
 {
     HR_LunchRule hR_LunchRules = new HR_LunchRule();
     SqlHR_LunchRuleProvider sqlHR_LunchRuleProvider = new SqlHR_LunchRuleProvider();
     hR_LunchRules = sqlHR_LunchRuleProvider.GetHR_LunchRuleByEmployeeID(EmployeeID);
     return hR_LunchRules;
 }
Exemple #3
0
 public static DataSet GetDropDownListAllHR_LunchRule()
 {
     DataSet hR_LunchRules = new DataSet();
     SqlHR_LunchRuleProvider sqlHR_LunchRuleProvider = new SqlHR_LunchRuleProvider();
     hR_LunchRules = sqlHR_LunchRuleProvider.GetDropDownLisAllHR_LunchRule();
     return hR_LunchRules;
 }
Exemple #4
0
 public static DataSet GetAllHR_LunchRulesWithRelation()
 {
     DataSet hR_LunchRules = new DataSet();
     SqlHR_LunchRuleProvider sqlHR_LunchRuleProvider = new SqlHR_LunchRuleProvider();
     hR_LunchRules = sqlHR_LunchRuleProvider.GetAllHR_LunchRules();
     return hR_LunchRules;
 }
Exemple #5
0
 public static void LoadHR_LunchRulePage(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_LunchRuleProvider sqlHR_LunchRuleProvider = new SqlHR_LunchRuleProvider();
     DataSet ds =  sqlHR_LunchRuleProvider.GetHR_LunchRulePageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
      hR_LunchRulesPaggination(rptPager,recordCount, pageIndex, PageSize);
 }
Exemple #6
0
 public static int InsertHR_LunchRule(HR_LunchRule hR_LunchRule)
 {
     SqlHR_LunchRuleProvider sqlHR_LunchRuleProvider = new SqlHR_LunchRuleProvider();
     return sqlHR_LunchRuleProvider.InsertHR_LunchRule(hR_LunchRule);
 }
Exemple #7
0
 public static bool DeleteHR_LunchRule(int hR_LunchRuleID)
 {
     SqlHR_LunchRuleProvider sqlHR_LunchRuleProvider = new SqlHR_LunchRuleProvider();
     return sqlHR_LunchRuleProvider.DeleteHR_LunchRule(hR_LunchRuleID);
 }
Exemple #8
0
 public static bool UpdateHR_LunchRule(HR_LunchRule hR_LunchRule)
 {
     SqlHR_LunchRuleProvider sqlHR_LunchRuleProvider = new SqlHR_LunchRuleProvider();
     return sqlHR_LunchRuleProvider.UpdateHR_LunchRule(hR_LunchRule);
 }