protected void Page_Load(object sender, EventArgs e) { if (Session["isLogin"] != "ok") { Response.Redirect("../Login.aspx"); } if (Request.QueryString["id"] != null) { strid = Request.QueryString["id"].ToString(); Maticsoft.BLL.NewPort.Table_specialFundRecord bll = new Maticsoft.BLL.NewPort.Table_specialFundRecord(); bll.Delete(strid); } }
protected void btneSubmit_Click(object sender, EventArgs e) { Maticsoft.Model.NewPort.Table_specialFundRecord model = new Maticsoft.Model.NewPort.Table_specialFundRecord(); model.project_id = sfid; model.specialFundRecord_id = sfid; model.specialFundRecord_amount = decimal.Parse(this.txtbox_money.Text); model.specialFundRecord_channel = this.txtbox_method.Text; model.specialFundRecord_description = this.txtbox_des.Text; model.specialFundRecord_methods = this.txtbox_method.Text; Maticsoft.BLL.NewPort.Table_specialFundRecord sfbll = new Maticsoft.BLL.NewPort.Table_specialFundRecord(); sfbll.Add(model); Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "Plan_Check.aspx"); }