Esempio n. 1
0
        public void HIENTHI()
        {
            //load grid look up MA Y TA
            DataTable dtMaYTA = new DataTable();

            dtMaYTA = busDSYTA.selectAll();
            gridLUMaYta.Properties.DataSource    = dtMaYTA;
            gridLUMaYta.Properties.DisplayMember = "MASOYTA";
            gridLUMaYta.Properties.ValueMember   = "MASOYTA";

            //load grid look up Ma Ca
            DataTable dtMaCa = new DataTable();

            dtMaCa = busCATRUC.selectALL();
            gridLUMaCa.Properties.DataSource    = dtMaCa;
            gridLUMaCa.Properties.DisplayMember = "MACA";
            gridLUMaCa.Properties.ValueMember   = "MACA";

            //load grid look up Ma PHONG
            DataTable dtMaPhong = new DataTable();

            dtMaPhong = busPHONGBENH.selectAll();
            gridLUMaPhong.Properties.DataSource    = dtMaPhong;
            gridLUMaPhong.Properties.DisplayMember = "MAPHONG";
            gridLUMaPhong.Properties.ValueMember   = "MAPHONG";

            //load gridview PHAN CONG
            DataTable dtPhancong = new DataTable();

            dtPhancong = busYTATRUC.selectAll();
            gridControl1.DataSource = dtPhancong;
        }
Esempio n. 2
0
        public void HienThi()
        {
            DataTable dt = new DataTable();

            dt = busPHONGBENH.selectAll();
            gridControl1.DataSource = dt;
        }
Esempio n. 3
0
        public void HienThi()
        {
            //display gridview
            DataTable dt_BN = new DataTable();

            dt_BN = busBENHNHAN.selectALL();
            gridControl1.DataSource = dt_BN;

            //display lookupedit PHONGBENH
            DataTable dt_PB = new DataTable();

            dt_PB = busPHONGBENH.selectAll();
            lueMAPHONG.Properties.DataSource    = dt_PB;
            lueMAPHONG.Properties.DisplayMember = "MAPHONG";
            lueMAPHONG.Properties.ValueMember   = "MAPHONG";
        }