private void printDocumentTransferSuccess()
        {
            infohoadon  = "";
            infohoadon += "\n\tDATE:" + DateTime.Now.ToString() + "\n\n";
            infohoadon += "\n\tATMID:" + atmIDLocal + "\n\n";
            infohoadon += "\n\tCARDNO:" + cardinfor.cardNo + "\n\n";
            infohoadon += "\n\tTYPE:" + "TransferCash" + "\n\n";
            infohoadon += "\n\tTo:" + accReceiverInfor.accountNo + "\n\n";
            infohoadon += "\n\tAmount:" + amountTransfer.ToString("#,##0") + " VND \n\n";
            infohoadon += "\n\tBALANCE:" + accountBUL.GetAvailableCash(cardinfor.accountID).ToString("#,##0") + " VND \n\n";

            //Receipt hoaDon = new Receipt();
            //hoaDon.insertDataBill(infohoadon);
            //hoaDon.Show();

            ReceiptPrintDocument.Print();

            //EjectCard
            if (!panelMain.Controls.Contains(Continute.Instance))
            {
                panelMain.Controls.Add(Continute.Instance);
                Continute.Instance.Dock = DockStyle.Fill;
                Continute.Instance.BringToFront();
            }
            else
            {
                Continute.Instance.BringToFront();
            }
            state = "Continute";
        }
Beispiel #2
0
        private void printDocumentWithdraw()
        {
            infohoadon  = "";
            infohoadon += "\n\tDATE:" + DateTime.Now.ToString() + "\n\n";
            infohoadon += "\n\tATMID:" + atmIDLocal + "\n\n";
            infohoadon += "\n\tCARDNO:" + cardinfor.cardNo + "\n\n";
            infohoadon += "\n\tTYPE:" + "Withdraw" + "\n\n";
            infohoadon += refunMoneyString;
            infohoadon += "\n\tBALANCE:" + accountBUL.GetAvailableCash(cardinfor.accountID).ToString("#,##0") + " VND \n\n";

            //Receipt hoaDon = new Receipt();
            //hoaDon.insertDataBill(infohoadon);
            //hoaDon.Show();

            ReceiptPrintDocument.Print();

            //Continute?
            if (!panelMain.Controls.Contains(Continute.Instance))
            {
                panelMain.Controls.Add(Continute.Instance);
                Continute.Instance.Dock = DockStyle.Fill;
                Continute.Instance.BringToFront();
            }
            else
            {
                Continute.Instance.BringToFront();
            }
            state = "Continute";
        }