private void SetPageData() { if (Request["tcid"] != null) { U_ZCTimeBU time1 = new U_ZCTimeBU(); Hashtable ht = time1.GetTimeDataByID(Request["tcid"]); time1.Close(); if (ht.Count > 0) { foreach (string item in arr1) { Util.SetControlValue(this.timename.Parent.FindControl(item), ht[item]); } } if (this.time0.Text != "" && this.time0.Text != null) { this.time0.Text = DateTime.Parse(this.time0.Text).ToString("yyyy-M-d"); } string sName = ""; string zcid = ht["zcid"].ToString(); U_ZCBU zc1 = new U_ZCBU(); DataSet ds2 = zc1.GetDetailByID(zcid); if (ds2.Tables[0].Rows.Count > 0) { sName = ds2.Tables[0].Rows[0]["danwei"].ToString(); } zc1.Close(); this.hidCorp.Value = sName; this.HiddenField1.Value = ht["zcid"].ToString(); } }