Ejemplo n.º 1
0
        void ShowFocusedDetail()
        {
            POBodyEntity po = FocusedHeader;

            if (po != null && po.Details == null)
            {
                po.Details = poQueryDal.GetDetailByBillID(po.BillID);
                gvHeader.RefreshData();
            }
        }
Ejemplo n.º 2
0
        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();
                    }
                }
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }