protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { WorkInfoManager Manager = new WorkInfoManager(); txtWorkID.Value = Request.QueryString["ID"]; DataTable dt = Manager.GetWorkInfo(txtWorkID.Value); if (dt.Rows.Count == 1) { txtChuliYj.Value = dt.Rows[0]["ChuLiYiJian"] as string; txtShebei.Value = dt.Rows[0]["ShebeiName"] as string; txtGZXX.Value = dt.Rows[0]["GuZhangXx"] as string; txtCurrentStaus.Value = dt.Rows[0]["Status"] as string; WorkHandLog last = Manager.GetLstWorkHandInfo(txtWorkID.Value); if (last != null) { txtLastHandle.Value = last.ChuliYj; } } } }