Example #1
0
        void ShowFocusedDetail()
        {
            AsnBodyEntity asn = FocusedHeader;

            if (asn != null && asn.Details == null)
            {
                asn.Details = asnQueryDal.GetDetailByBillID(asn.BillID);
                gvHeader.RefreshData();
            }
        }
Example #2
0
        void ShowAsnDetail(string billID)
        {
            if (!string.IsNullOrEmpty(billID))
            {
                AsnBodyEntity header = asnQueryDal.GetBillHeader(billID);
                if (header != null)
                {
                    header.Details = asnQueryDal.GetDetailByBillID(billID);
                    ShowAsnDetail(header);

                    //复制并创建新单据
                    if (this.IsCopyNew)
                    {
                        ClearBillID();
                    }
                }
            }
        }