예제 #1
0
        public void loadMaNV()
        {
            MuonTra.ConnectToSQL sql     = new MuonTra.ConnectToSQL();
            SqlDataReader        sqlData = sql.getDataTable("NhanVien");

            while (sqlData.Read())
            {
                cbomanv.Items.Add(sqlData["MaNV"].ToString());
            }
            cbomanv.ValueMember = "MaNV";
        }
예제 #2
0
        public void showLsvMuonTra()
        {
            clearLstMuonTra();
            MuonTra.ConnectToSQL conn    = new MuonTra.ConnectToSQL();
            SqlDataReader        sqlData = conn.getDataTable("MuonTra");

            while (sqlData.Read())
            {
                addList(sqlData);
            }
        }
예제 #3
0
        public void loadMaDG()
        {
            MuonTra.ConnectToSQL sql     = new MuonTra.ConnectToSQL();
            SqlDataReader        sqlData = sql.getDataTable("DocGia");

            while (sqlData.Read())
            {
                cbmadg.Items.Add(sqlData["MaDG"].ToString());
            }

            cbmadg.ValueMember = "MaDG";
        }