void ShowFocusDetail() { AsnHeaderEntity selectedHeader = SelectedHeader; if (selectedHeader == null) { gridDetails.DataSource = null; lblBillNO.Text = "未选择单据"; } else { gridDetails.DataSource = asnDal.GetDetailsByBillID(selectedHeader.BillID); lblBillNO.Text = selectedHeader.BillNO; } }
public void ShowFocusDetail() { AsnHeaderEntity selectedHeader = SelectedHeader; if (selectedHeader == null) { gridDetails.DataSource = null; gvDetails.ViewCaption = "未选择单据"; } else { gridDetails.DataSource = asnDal.GetDetailsByBillID(selectedHeader.BillID); gvDetails.ViewCaption = string.Format("单据号: {0}", selectedHeader.BillNO); } }