Example #1
0
        private void btnNhan_Click(object sender, EventArgs e)
        {
            if (dgvDatPhong.CurrentRow != null)
            {
                var r = dgvDatPhong.CurrentRow;

                var mp = from dp in db.tbl_chitietdats
                         where dp.Mapd.Equals(r.Cells["MaPhieu"].Value.ToString())
                         select dp;
                foreach (var item in mp)
                {
                    maphong = item.MaPhong;
                }
                db.UpdateNhanPhong(r.Cells["MaPhieu"].Value.ToString());
                db.UpdatePhong(maphong);
                Load_PhongTrong();
                Load_DSDat();
                MessageBox.Show("Thành công", "Nhận Phòng", MessageBoxButtons.OK, MessageBoxIcon.Information);
                frmMHC frm = new frmMHC();
                frm.Load_Phong();
            }
        }
Example #2
0
        private void hệThốngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmMHC frm = new frmMHC();

            Load_Frm_MdiChild(frm);
        }
Example #3
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            frmMHC frm = new frmMHC();

            Load_Frm_MdiChild(frm);
        }