Beispiel #1
0
 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, "设置失败");
     }
 }