Ejemplo n.º 1
0
        void ShowFocusDetail()
        {
            AsnHeaderEntity selectedHeader = SelectedHeader;

            if (selectedHeader == null)
            {
                gridDetails.DataSource = null;
                lblBillNO.Text         = "未选择单据";
            }
            else
            {
                gridDetails.DataSource = asnDal.GetDetailsByBillID(selectedHeader.BillID);
                lblBillNO.Text         = selectedHeader.BillNO;
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }