private void BindData(U_ZCTimeBU time1) { if (Request["id"] != null) { DataSet ds1 = time1.GetTimeListByParentID(Request["id"]); foreach (DataRow dr1 in ds1.Tables[0].Rows) { dr1["TimeName"] = U_TimeTypeBU.GetTimeNameByCode(dr1["TimeName"].ToString()); } this.Repeater1.DataSource = ds1; this.Repeater1.DataBind(); ds1.Dispose(); } }
private void BindData() { if (Request["id"] != null) { U_ZCTimeBU time1 = new U_ZCTimeBU(); DataSet ds1 = time1.GetTimeListByParentID(Request["id"]); foreach (DataRow dr1 in ds1.Tables[0].Rows) { dr1["TimeName"] = U_TimeTypeBU.GetTimeNameByCode(dr1["TimeName"].ToString()); } this.Repeater1.DataSource = ds1; this.Repeater1.DataBind(); time1.Close(); ds1.Dispose(); string id = Request["id"]; U_ZCBU zc1 = new U_ZCBU(); DataSet ds = zc1.GetDetailByID(id, "danwei"); this.depart.Text = ds.Tables[0].Rows[0][0].ToString(); zc1.Close(); } }