Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ReceiptVouches voucher =
                session.GetObjectByKey <ReceiptVouches>(Guid.Parse("C5E3DCD2-F8F1-4D5D-9531-B29548B9D699"));

            GridViewBookingEntries1.SetDataSource(voucher.ReceiptVouchesTransactions);
            GridViewBookingEntries2.SetDataSource(voucher.ReceiptVouchesTransactions);
        }
Пример #2
0
        void BindData()
        {
            if (m_Bill == null)
            {
                return;
            }

            lblCode.Text           = m_Bill.Code;
            lblIssuedDate.Text     = m_Bill.IssuedDate.ToString();
            lblSumOfItemPrice.Text = m_Bill.SumOfItemPrice.ToString("n0");
            lblSumOfPromotion.Text = m_Bill.SumOfPromotion.ToString("n0");
            lblSumOfTax.Text       = m_Bill.SumOfTax.ToString("n0");
            lblSupplier.Text       = m_Bill.SourceOrganizationId.Name;
            lblTotal.Text          = m_Bill.Total.ToString("n0");

            GridViewBookingEntries1.SetDataSource(m_ListTransaction);
            GridViewBookingEntries1.DataBind();
        }