//Ngoc - Done public frmTsk_Payment_Step2(frmTsk_PaymentViewAll_New frm, int IDBookingR, int IDBookingH, int StatusInitForm, bool IsForcusTab1) { InitializeComponent(); this.IDBookingR = IDBookingR; this.IDBookingH = IDBookingH; this.StatusPay = StatusInitForm; if (IsForcusTab1 == false) { xtraTabControl1.SelectedTabPageIndex = 2; } this.afrmTsk_PaymentViewAll_New = frm; }
private void btnDiffView_Click(object sender, EventArgs e) { frmTsk_PaymentViewAll_New afrmTsk_PaymentViewAll_New = new frmTsk_PaymentViewAll_New(); afrmTsk_PaymentViewAll_New.Show(); }
private bool CheckChangeTime(int IDBookingRoom, string CodeRoom, DateTime From, DateTime To) { ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO(); List<int> aListIDBookingRoom = aReceptionTaskBO.CheckAvaiableRoom(IDBookingRoom, CodeRoom, From, To); if (aListIDBookingRoom.Count > 0) { MessageBoxButtons buttons = MessageBoxButtons.YesNo; DialogResult result; result = MessageBox.Show("Không chuyển được thời gian do xung đột thời gian với mã đặt phòng :" + string.Join(",", aListIDBookingRoom.ToArray()) +". Bạn có muốn search xem chi tiết không ?","Thông báo", buttons); if (result == System.Windows.Forms.DialogResult.Yes) { frmTsk_PaymentViewAll_New aFrm = new frmTsk_PaymentViewAll_New(); aFrm.ShowDialog(); this.Close(); } return false; } return true; }
private void barButtonItem7_ItemClick(object sender, ItemClickEventArgs e) { frmTsk_PaymentViewAll_New afrmTsk_PaymentViewAll_New = new frmTsk_PaymentViewAll_New(); afrmTsk_PaymentViewAll_New.ShowDialog(); }