public void tier_delete(int ID) { tier.Delete(ID); Insert_tier_GridView.DataBind(); Update_tier_GridView.DataBind(); Delete_tier_GridView.DataBind(); }
public tier tier_insert() { tier.include_req = Insert_include_req_txt.Text; tier.campaign_id = Convert.ToInt32(Insert_campaign_id_txt.Text); tier.Tier_Age_Begin_Month = Convert.ToInt32(Insert_Tier_Age_Begin_Month_txt.Text); tier.Tier_Age_Begin_Year = Convert.ToInt32(Insert_Tier_Age_Begin_Year_txt.Text); tier.Tier_Age_End_Month = Convert.ToInt32(Insert_Tier_Age_End_Month_txt.Text); tier.Tier_Age_End_Year = Convert.ToInt32(Insert_Tier_Age_End_Year_txt.Text); tier = tier.Insert(tier); Insert_tier_GridView.DataBind(); Update_tier_GridView.DataBind(); Delete_tier_GridView.DataBind(); return(tier); }
public tier tier_update(int ID) { tier = tier.Select(ID); tier.tier_id = Convert.ToInt32(Update_tier_id_txt.Text); tier.include_req = Update_include_req_txt.Text; tier.campaign_id = Convert.ToInt32(Update_campaign_id_txt.Text); tier.Tier_Age_Begin_Month = Convert.ToInt32(Update_Tier_Age_Begin_Month_txt.Text); tier.Tier_Age_Begin_Year = Convert.ToInt32(Update_Tier_Age_Begin_Year_txt.Text); tier.Tier_Age_End_Month = Convert.ToInt32(Update_Tier_Age_End_Month_txt.Text); tier.Tier_Age_End_Year = Convert.ToInt32(Update_Tier_Age_End_Year_txt.Text); tier.Update(tier); Insert_tier_GridView.DataBind(); Update_tier_GridView.DataBind(); Delete_tier_GridView.DataBind(); return(tier); }