Beispiel #1
0
        public bool UpdataWebMenuXml(byte[] fileBytes)
        {
            string    errMsg = "";
            string    sql1   = "select * from Administrator.T_SYS_MENU where T_XMLID='WebMenu'";
            DataTable dt     = dl.RunDataTable(sql1, out errMsg);

            if (dt.Rows.Count == 0 || dt == null)
            {
                string sql2 = "insert into T_SYS_MENU (T_XMLID,T_XMLNAME) values ('WebMenu','系统菜单')";
                dl.RunNonQuery(sql2, out errMsg);
            }
            return(dl.RetBoolUpFile("T_SYS_MENU", "T_XMLID", "WebMenu", "B_XML", fileBytes, out errMsg));
        }