//Hiennv private void btnPayment_Click(object sender, EventArgs e) { try { if (String.IsNullOrEmpty(lueIndexSub.Text) == true) { lueIndexSub.Focus(); MessageBox.Show("Vui lòng chọn phiếu thanh toán!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO(); if (this.aListRooms.Count > 0) { aReceptionTaskBO.SplitPaymentRoom(this.aNewPaymentEN, this.aListRooms); } if (this.aListHalls.Count > 0) { aReceptionTaskBO.SplitPaymentHall(this.aNewPaymentEN, this.aListHalls); } if (this.aListServicesR.Count > 0) { aReceptionTaskBO.SplitPaymentService(this.aNewPaymentEN, this.aListServicesR, 1); //1 - trạng thái thanh toán set cho dịch vụ phòng } if (this.aListServicesH.Count > 0) { aReceptionTaskBO.SplitPaymentService(this.aNewPaymentEN, this.aListServicesH, 2); //2 - trạng thái thanh toán set cho dịch vụ phòng } if (this.afrmTsk_SplitBill_Step1.afrmTsk_Payment_Step2.afrmTsk_Payment_Step1 != null) { this.afrmTsk_SplitBill_Step1.afrmTsk_Payment_Step2.afrmTsk_Payment_Step1.LoadListBookingR(); if (this.afrmTsk_SplitBill_Step1.afrmTsk_Payment_Step2.afrmTsk_Payment_Step1.afrmMain != null) { this.afrmTsk_SplitBill_Step1.afrmTsk_Payment_Step2.afrmTsk_Payment_Step1.afrmMain.ReloadData(); } } //this.InsertDataToPayment(); MessageBox.Show("Thanh toán thành công !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception ex) { MessageBox.Show("frmTsk_SplitBill_Step2_Load.btnPayment_Click\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }