Exemple #1
0
        private void _DataBind()
        {
            MTCSYT.SYS_Session session     = (MTCSYT.SYS_Session)Session["SYS_Session"];
            string             strMadviqly = session.User.MA_DVIQLY;

            List <DM_DVQLY> _lstNew = new List <DM_DVQLY>();

            _lstNew = _DM_DVQLY.DM_DVQLYandLEVER_BYDV(strMadviqly);

            TreeListOrganization.DataSource = _lstNew;
            TreeListOrganization.DataBind();
            TreeListOrganization.ExpandToLevel(1);
        }
Exemple #2
0
        private void _LoadDonVi()
        {
            DM_DVQLYService dm_dviSer = new DM_DVQLYService();

            MTCSYT.SYS_Session session     = (MTCSYT.SYS_Session)Session["SYS_Session"];
            string             strMadviqly = session.User.MA_DVIQLY;

            List <DM_DVQLY> lst_dmdv = new List <DM_DVQLY>();

            lst_dmdv = dm_dviSer.DM_DVQLYandLEVER_BYDV(strMadviqly);

            TreeListOrganization.DataSource = lst_dmdv;
            TreeListOrganization.DataBind();
            TreeListOrganization.ExpandToLevel(1);
        }