Esempio n. 1
0
        /// <summary>
        /// Hàm load menu trái động
        /// </summary>
        /// <param name="strpathXML">Đường dẫn file xml</param>
        /// <param name="strUsername">Mã người dùng</param>
        /// <returns></returns>
        public string DynamicXMLMenu(string strpathXML, string strUsername)
        {
            LoginDAO    DLogin            = new LoginDAO();
            DataTable   PremissionKeyList = DLogin.GetKeyPermission(strUsername);
            XmlDocument xmlDoc            = new XmlDocument();
            string      htmlString        = "";

            xmlDoc.Load(strpathXML);
            craftXML(xmlDoc.DocumentElement.ChildNodes, PremissionKeyList, ref htmlString, 1, null);

            return(htmlString);
        }
Esempio n. 2
0
        public bool login(string user, string pass)
        {
            LoginDAO lgd = new DAO.LoginDAO();

            return(lgd.login(user, pass));
        }