protected void Button1_Click(object sender, EventArgs e) { NCPEP.Model.T_Bid model = new NCPEP.Model.T_Bid(); NCPEP.Dal.T_Bid dal = new NCPEP.Dal.T_Bid(); model = dal.GetModel(int.Parse(Request.QueryString["id"])); model.Jbjzsj = System.DateTime.Now.AddMinutes(double.Parse(this.ddljjsj.SelectedValue)).ToString(); model.Jbqbj = this.txtjjdj.Text; model.Jbzt = "1"; if (dal.Update(model)) { MessageBox.ShowAndRedirect(this, "设置成功", "jbone.aspx"); } else { MessageBox.Show(this, "设置失败"); } }
/// <summary> /// 得到一个对象实体 /// </summary> public NCPEP.Model.T_Bid GetModel(int Id) { return(dal.GetModel(Id)); }