private void btnCash_Click(object sender, EventArgs e) { if (_ChargeRecord != null && CheckPaid()) { if (AppSettings.CurrentSetting.EnableTTS) { TTSSpeech.Instance.Speek(Resource1.FrmCardPaying_Paying); } CommandResult result = SaveCardPayment(PaymentMode.Cash); if (result.Result == ResultCode.Successful) { //用于打印收费小票打开钱箱收款 if (_BillPrinter != null) { ParkBillInfo bill = ParkBillFactory.CreateParkBill(_ChargeRecord); _BillPrinter.PrintParkBill(bill); } ClearInput(); } else { MessageBox.Show(result.Message); } } }
private bool btnCashHandle() { if (_processingEvent != null && CheckPaid() && CheckWriteCard()) { CommandResult result = SaveCardPayment(_processingEvent.CardPaymentInfo, PaymentMode.Cash); if (result.Result == ResultCode.Successful) { //用于打印收费小票打开钱箱收款 if (_BillPrinter != null) { ParkBillInfo bill = ParkBillFactory.CreateParkBill(_processingEvent.CardPaymentInfo); _BillPrinter.PrintParkBill(bill); } CardPaidOk(); return(true); } else { MessageBox.Show(result.Message); } } return(false); }