Esempio n. 1
0
        private void btnVouchers_Click(object sender, EventArgs e)
        {
            long id = TextUtils.ToInt64(grvData.GetFocusedRowCellValue(colID));
            PaymentTableItemModel item = new PaymentTableItemModel();

            if (id > 0)
            {
                item = (PaymentTableItemModel)PaymentTableItemBO.Instance.FindByPK(id);
            }
            else
            {
                MessageBox.Show("Bạn phải Ghi lại dữ liệu trước khi thêm chứng từ nợ.", TextUtils.Caption, MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }
            frmVouchers frm = new frmVouchers();

            frm.PaymentTableItem = item;
            frm.Show();
        }
Esempio n. 2
0
        private void btnShowVoucher_Click(object sender, EventArgs e)
        {
            frmVouchers frm = new frmVouchers();

            frm.Show();
        }