private void LoadData()
        {
            btnHuy.Enabled       = false;
            btnLuu.Enabled       = false;
            btnSua.Enabled       = true;
            btnThem.Enabled      = true;
            btnReload.Enabled    = true;
            txtLoaiThuoc.Enabled = false;

            dgvLoaiThuoc.DataSource = lt.getLoaiThuoc().Tables[0];
        }
Beispiel #2
0
        private void LoadData()
        {
            btnHuy.Enabled    = false;
            btnLuu.Enabled    = false;
            btnSua.Enabled    = true;
            btnThem.Enabled   = true;
            btnReload.Enabled = true;

            txtTenThuoc.Enabled  = false;
            txtMoTa.Enabled      = false;
            txtTinhTrang.Enabled = false;

            comBoxLoaiThuoc.Enabled = false;

            comBoxLoaiThuoc.DataSource    = ltDao.getLoaiThuoc().Tables[0];
            comBoxLoaiThuoc.DisplayMember = "TenLoaiThuoc";
            comBoxLoaiThuoc.ValueMember   = "MaLoaiThuoc";

            dgvThuoc.DataSource = thuocDao.getThuoc().Tables[0];
        }
Beispiel #3
0
        private void LoadData()
        {
            dtBN = bnDAO.getBenhNhan().Tables[0];
            if (dtBN.Rows.Count <= 0)
            {
                return;
            }

            cmbBenhNhan.Items.Clear();
            cmbBenhNhan.DataSource    = dtBN;
            cmbBenhNhan.DisplayMember = "TenKhachHang";
            cmbBenhNhan.ValueMember   = "MaKH";

            dtLoaiThuoc = ltDAO.getLoaiThuoc().Tables[0];

            cmbLoaiThuoc.Items.Clear();
            cmbLoaiThuoc.DataSource    = dtLoaiThuoc;
            cmbLoaiThuoc.ValueMember   = "MaLoaiThuoc";
            cmbLoaiThuoc.DisplayMember = "TenLoaiThuoc";
        }