// Thanh toán tổng private void btnPrintPaymentTotal_Click(object sender, EventArgs e) { try { if (this.aNewPaymentEN.aListBookingRoomUsed.Count > 0 && this.aNewPaymentEN.aListBookingHallUsed.Count > 0) { frmRpt_Payment_BookingRsAndBookingHs afrmRpt_Payment_BookingRs = new frmRpt_Payment_BookingRsAndBookingHs(this.aNewPaymentEN); ReportPrintTool tool = new ReportPrintTool(afrmRpt_Payment_BookingRs); tool.ShowPreview(); } else { if (this.aNewPaymentEN.aListBookingRoomUsed.Count > 0) { frmRpt_Payment_BookingRs afrmRpt_Payment_BookingRs = new frmRpt_Payment_BookingRs(this.aNewPaymentEN); ReportPrintTool tool = new ReportPrintTool(afrmRpt_Payment_BookingRs); tool.ShowPreview(); } else if (this.aNewPaymentEN.aListBookingHallUsed.Count > 0) { frmRpt_PaymentBookingHs afrmRpt_PaymentBookingHs = new frmRpt_PaymentBookingHs(this.aNewPaymentEN); ReportPrintTool tool = new ReportPrintTool(afrmRpt_PaymentBookingHs); tool.ShowPreview(); } } } catch (Exception ex) { MessageBox.Show("frmTsk_PaymentStep2.btnPrintPaymentTotal_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
// In phiếu thanh toán của tiệc private void btnPrintBookingH_Click(object sender, EventArgs e) { try { frmRpt_PaymentBookingHs afrmRpt_PaymentBookingHs = new frmRpt_PaymentBookingHs(this.aNewPaymentEN); ReportPrintTool tool = new ReportPrintTool(afrmRpt_PaymentBookingHs); tool.ShowPreview(); } catch (Exception ex) { MessageBox.Show("frmTsk_PaymentStep2.btnPrintBookingH_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }