private void BindData() { if (Request["id"] != null) { string id = Request["id"]; U_ZCBAOBU zcb1 = new U_ZCBAOBU(); DataSet ds = zcb1.GetDetailByID(id, "id,depart,bzeren,bstatus,statusText,bname,bljsk,bljzc"); this.Bname.Text = ds.Tables[0].Rows[0]["bname"].ToString(); this.Bid.Text = ds.Tables[0].Rows[0]["id"].ToString(); this.depart.Text = ds.Tables[0].Rows[0]["depart"].ToString(); this.bzeren.Text = ds.Tables[0].Rows[0]["bzeren"].ToString(); this.status.Text = ds.Tables[0].Rows[0]["bstatus"].ToString(); this.statusText.Text = ds.Tables[0].Rows[0]["statusText"].ToString(); this.ljsk.Text = ds.Tables[0].Rows[0]["bljsk"].ToString(); this.ljzc.Text = ds.Tables[0].Rows[0]["bljzc"].ToString(); if (this.statusText.Text == "") { this.statusText.Text = "阅卷"; } ds.Dispose(); Hashtable ht = zcb1.GetZcBbjANDlx(this.Bid.Text); this.bbjhj.Text = ht["bbjhj"].ToString(); this.blxhj.Text = ht["blxhj"].ToString(); zcb1.Close(); //设置数字金额的显示 string[] num1 = new string[] { "bbjhj", "blxhj", "ljzc", "ljsk" }; for (int i = 0; i < num1.Length; i++) { Label l1 = this.bbjhj.Parent.FindControl(num1[i]) as Label; if (l1 != null) { l1.Text = Comm.GetNumberFormat(l1.Text); } } ds.Dispose(); } }