protected void Btn_Ok_Click(object s, EventArgs e) { Model.ZD_hourse modelzd = bllzd.GetModel(1); modelzd.beigin = TimeSpan.Parse(begintime.Value); modelzd.endtime = TimeSpan.Parse(endtime.Value); //modelzd.latest = TimeSpan.Parse(latest.Value); modelzd.Buffer = Convert.ToInt32(buffer.Value); modelzd.tixing = Convert.ToInt32(tixing.Value); bllzd.Update(modelzd); ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script>alert('更新成功');window.location='PartHouse.aspx';</script>"); }
void Bind() { Model.ZD_hourse modelzd = bllzd.GetModel(1); begintime.Value = modelzd.beigin.ToString(); endtime.Value = modelzd.endtime.ToString(); //latest.Value = modelzd.latest.ToString(); buffer.Value = modelzd.Buffer.ToString(); tixing.Value = modelzd.tixing.ToString(); rp1.DataSource = bllhr.GetModelList(""); rp1.DataBind(); }