protected void ButtonEditSub_Click(object sender, EventArgs e) { DtCms.BLL.Activity activityBLL = new DtCms.BLL.Activity(); DtCms.Model.Activity activity = new DtCms.Model.Activity(); activity.ActivityId = TextBoxActivityId.Text.Trim(); activity.Applicant = TextBoxApplicant.Text.Trim(); activity.Title = TextBoxTitle.Text.Trim(); activity.Budget = Convert.ToInt32(TextBoxBudget.Text.Trim()); activity.ATime = Convert.ToDateTime(TextBoxATime.Text); activity.Place = TextBoxPlace.Text.Trim(); activity.AConten = TextBoxAcontent.Text.Trim(); activity.CheckStatus = TextBoxCheckStatus.Text.Trim(); activityBLL.Update(activity); Response.Write("<script>alert('提交成功。')</script>"); }
protected void ButtonEditSub_Click(object sender, EventArgs e) { DtCms.BLL.Activity activityBLL = new DtCms.BLL.Activity(); DtCms.Model.Activity activity = new DtCms.Model.Activity(); activity.ActivityId = TextBoxActivityId.Text.Trim(); activity.Applicant = TextBoxApplicant.Text.Trim(); activity.Title = TextBoxTitle.Text.Trim(); activity.Budget = Convert.ToInt32(TextBoxBudget.Text.Trim()); activity.ATime = Convert.ToDateTime(Request.Form["test5"]); activity.Place = DropDownAPlace.SelectedValue.Trim(); activity.AConten = TextBoxAcontent.Text.Trim(); activity.CheckStatus = TextBoxCheckStatus.Text.Trim(); activity.ASuggestion = "无建议"; activityBLL.Update(activity); Response.Write("<script>alert('提交成功。')</script>"); activityBLL.ReupdateOneRecordAuditStatus(TextBoxActivityId.Text.Trim()); GridView1.DataBind(); }