//绑定资产处置数据 private void BindData2(U_ZCBU zc1, string czid) { DataSet ds1 = zc1.GetCZFSByCZID(czid); int i = 1; String[] Afields = new string[] { "czfs", "czjg", "czss", "qcl", "yjfy" }; foreach (DataRow dr in ds1.Tables[0].Rows) { for (int j = 1; j <= 5; j++) { HiddenField hid1 = this.xmbj.Parent.FindControl(Afields[j - 1] + i) as HiddenField; if (hid1 != null) { hid1.Value = dr[Afields[j - 1]].ToString(); } } i++; if (i > 5) { break; } } ds1.Dispose(); }
//绑定资产处置数据 private void BindData2(U_ZCBU zc1, string czid) { DataSet ds1 = zc1.GetCZFSByCZID(czid); this.repeater1.DataSource = ds1; this.repeater1.DataBind(); ds1.Dispose(); }
//绑定资产处置方式明细 private void BindZCCZDetail(U_ZCBU zc1) { if (this.zcczid.Text != "") { DataSet ds2 = zc1.GetCZFSByCZID(this.zcczid.Text); this.Repeater6.DataSource = ds2; this.Repeater6.DataBind(); ds2.Dispose(); } }