void ShowFocusedDetail() { POBodyEntity po = FocusedHeader; if (po != null && po.Details == null) { po.Details = poQueryDal.GetDetailByBillID(po.BillID); gvHeader.RefreshData(); } }
void ShowPODetail() { if (!string.IsNullOrEmpty(this.BillID)) { POBodyEntity header = poQueryDal.GetBillHeader(this.BillID); if (header != null) { header.Details = poQueryDal.GetDetailByBillID(this.BillID); ShowPODetail(header); //复制并创建新单据 if (this.IsCopyNew) { ClearBillID(); } } } }
public void BindingDetail() { POBodyEntity header = FocusedHeader; if (header == null) { gdDetails.DataSource = null; gvDetails.ViewCaption = "未选择单据"; } else { if (header.Details == null) { header.Details = poQueryDal.GetDetailByBillID(header.BillID); } gdDetails.DataSource = header.Details; gvDetails.ViewCaption = string.Format("明细-{0}", header.BillID); } }