Пример #1
0
        private void CreateHeader()
        {
            lbldate.Text = DateTime.Now.ToShortDateString();
            Transactions txn = new Transactions();

            txn.CustomerId      = Convert.ToInt16(lblcusid.Text);
            txn.DateCreated     = DateTime.Now;
            txn.GrandTotal      = Convert.ToDouble(lblgrandtotal.Text);
            txn.referenceNo     = lbltxnid.Text;
            txn.TotalAmount     = Convert.ToDouble(lbltotalamounts.Text);
            txn.Discounted      = Convert.ToDouble(txtdiscount.Text);
            txn.status          = "Processed";
            txn.TransactionType = cmbType.Text;
            _trn.Create(txn);
        }