Esempio n. 1
0
        private void ucLoaiSP_Load(object sender, EventArgs e)
        {
            string dir = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName;

            webMota.Url          = new Uri(dir + @"\Scripts\ckeditor\ckeditor.html");
            grCtrlLSP.DataSource = lspSAO.getListLOAISP();
            RepositoryItemLookUpEdit ribm = new RepositoryItemLookUpEdit();

            ribm.DataSource    = new HangSxDAO().getListHANGSX();
            ribm.ValueMember   = "ID";
            ribm.DisplayMember = "TEN";
            grViewLSP.Columns["HANGSX_ID"].ColumnEdit = ribm;
            cbHangSX.DataSource    = new HangSxDAO().getListHANGSX();
            cbHangSX.DisplayMember = "TEN";
            cbHangSX.ValueMember   = "ID";
        }
Esempio n. 2
0
        private void ucSANPHAM_Load(object sender, EventArgs e)
        {
            string dir = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName;

            webMota.Url = new Uri(dir + @"\Scripts\ckeditor\ckeditor.html");
            List <LOAISP> lstLSP = lspDAo.getListLOAISP();;

            cbBLSP.DataSource    = lstLSP;
            cbBLSP.DisplayMember = "TEN";
            cbBLSP.ValueMember   = "ID";
            LoadData();
            RepositoryItemLookUpEdit ribm = new RepositoryItemLookUpEdit();

            ribm.DataSource    = lstLSP;
            ribm.ValueMember   = "ID";
            ribm.DisplayMember = "TEN";
            grViewSP.Columns["LOAISP_ID"].ColumnEdit = ribm;
        }