예제 #1
0
        private void btnLapPhieuKham_ItemClick(object sender, ItemClickEventArgs e)
        {
            DongTatCaCacTab();
            frmPhieuKhamBenh phieuKhamBenh = new frmPhieuKhamBenh();

            phieuKhamBenh.MdiParent = this;
            phieuKhamBenh.Show();
        }
예제 #2
0
        private void dtgvTT_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dtgvTT.Columns[e.ColumnIndex].Name == "Column4")
            {
                frmPhieuKhamBenh phieuKhamBenh = new frmPhieuKhamBenh();

                phieuKhamBenh.SoPhieu   = dtgvTT.CurrentRow.Cells[1].Value.ToString();
                phieuKhamBenh.LoaiKham  = dtgvTT.CurrentRow.Cells[3].Value.ToString();
                phieuKhamBenh.NgayKham  = cbbNgayKham.Text;
                phieuKhamBenh.PhongKham = cbbPhongKham.Text;
                phieuKhamBenh.ShowDialog();
            }
        }