示例#1
0
 public static HR_ProvidentfundRules GetHR_ProvidentfundRulesByProvidentfundRulesID(int ProvidentfundRulesID)
 {
     HR_ProvidentfundRules hR_ProvidentfundRules = new HR_ProvidentfundRules();
     SqlHR_ProvidentfundRulesProvider sqlHR_ProvidentfundRulesProvider = new SqlHR_ProvidentfundRulesProvider();
     hR_ProvidentfundRules = sqlHR_ProvidentfundRulesProvider.GetHR_ProvidentfundRulesByProvidentfundRulesID(ProvidentfundRulesID);
     return hR_ProvidentfundRules;
 }
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     if (txtValue.Text.Trim() != string.Empty)
     {
         HR_ProvidentfundRules providentfundRules = new HR_ProvidentfundRules(0, Convert.ToDecimal(txtValue.Text.Trim()), radIsGrossPortion.Checked, Profile.card_id, DateTime.Now, Profile.card_id, DateTime.Now);
         HR_ProvidentfundRulesManager.InsertHR_ProvidentfundRules(providentfundRules);
     }
     Response.Redirect("AdminDisplayHR_ProvidentfundRules.aspx");
 }
示例#3
0
 public static bool UpdateHR_ProvidentfundRules(HR_ProvidentfundRules hR_ProvidentfundRules)
 {
     SqlHR_ProvidentfundRulesProvider sqlHR_ProvidentfundRulesProvider = new SqlHR_ProvidentfundRulesProvider();
     return sqlHR_ProvidentfundRulesProvider.UpdateHR_ProvidentfundRules(hR_ProvidentfundRules);
 }
示例#4
0
 public static int InsertHR_ProvidentfundRules(HR_ProvidentfundRules hR_ProvidentfundRules)
 {
     SqlHR_ProvidentfundRulesProvider sqlHR_ProvidentfundRulesProvider = new SqlHR_ProvidentfundRulesProvider();
     return sqlHR_ProvidentfundRulesProvider.InsertHR_ProvidentfundRules(hR_ProvidentfundRules);
 }