Пример #1
0
        private void init_cbKhoaPhong()
        {
            CDanhMucOracle dataOracle = new CDanhMucOracle();

            bv_dlogin    log    = new bv_dlogin();
            CLoginOracle logOra = new CLoginOracle();

            log = logOra.f_getUser(AccessData.m_userid);
            System.Data.DataTable dtdm_khoaphong = dataOracle.d_getDMKhoaPhong(log.Khoaphong);
            //System.Data.DataTable dtdm_khoaphong = dataOracle.d_getDMKhoaPhong();
            cbDanhMucKP.DataSource    = dtdm_khoaphong;
            cbDanhMucKP.DisplayMember = "TEN";
            cbDanhMucKP.ValueMember   = "ID";
            cbDanhMucKP.SelectedIndex = 0;
        }
Пример #2
0
        private void f_init_addmodul()
        {
            CDanhMucOracle dataOracle  = new CDanhMucOracle();
            DataTable      dtdm_dichvu = dataOracle.f_getDMDuoc_VienPhi();


            listicd10.DataSource    = dtdm_dichvu;
            listicd10.DisplayMember = "TEN";
            listicd10.ValueMember   = "ID";


            DataTable dtdm_khoaphong = dataOracle.d_getDMKhoaPhong();

            cbDanhMucKP.DataSource    = dtdm_khoaphong;
            cbDanhMucKP.DisplayMember = "TEN";
            cbDanhMucKP.ValueMember   = "ID";
            cbDanhMucKP.SelectedIndex = 0;

            cbdoituong.DataSource    = dataOracle.d_getDMDoiTuong();
            cbdoituong.DisplayMember = "ten";
            cbdoituong.ValueMember   = "ma";
            cbdoituong.SelectedIndex = 0;
        }