コード例 #1
0
        private void CustomePhong_EventDatPhong(object sender, ProcessEventArgs e)
        {
            // call dăt phòng

            DatPhong datPhong = new DatPhong();

            DatPhong.maP          = e.PHONG.Ma;
            DatPhong.isSodoKScall = true;
            datPhong.ShowDialog();
            if (DatPhong.result)
            {
                LoadPhong();
            }
        }
コード例 #2
0
        private void CustomePhong_EventThanhToanPhong(object sender, ProcessEventArgs e)
        {
            // call thanh toan phong
            TraPhong traPhong = new TraPhong();

            TraPhong.maTaiKhoan   = taiKhoan.Ma;
            TraPhong.maP          = e.PHONG.Ma;
            TraPhong.isSodoKScall = true;
            traPhong.ShowDialog();
            if (TraPhong.result)
            {
                LoadPhong();
            }
        }
コード例 #3
0
 private void CustomePhong_EventNhanPhong(object sender, ProcessEventArgs e)
 {
     // call nhận phòng
     try
     {
         PhieuThuePhongBUS phieuThuePhong = new PhieuThuePhongBUS();
         phieuThuePhong.CapNhatTrangThaiPhieuThuePhongCoMaPhong(e.PHONG.Ma);
     }catch (Exception ex)
     {
         MessageBoxDS m = new MessageBoxDS();
         MessageBoxDS.thongbao = "Thời gian nhận phòng chưa đến";
         MessageBoxDS.maHinh   = 3;
         m.ShowDialog();
     }
 }