/// <summary> /// 绑定列表 /// </summary> private void BindList() { using (PurProvider purProvider = new PurProvider()) { string prNo = PRNo.Text.Trim(); if (prNo.Length > 0) { PRStatus.Text = LocalGlobal.GetPRStatus(prNo); DataTable table = purProvider.GetMatPRDetailList(prNo); ViewState["ViewDT"] = table; BindTempData(); } else { this.Initialize(); List.DataSource = null; List.DataBind(); } } }