天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
2.0 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
namespace QMAPP.Common.Web
{
/// <summary>
/// 应用配置信息
/// </summary>
public class AppConfig
{
/// <summary>
/// 统计图页面配置
/// </summary>
/// <returns></returns>
public static string QMEChartPageConfig()
{
StringBuilder configBuilder=new StringBuilder();
configBuilder.AppendLine("");
configBuilder.AppendLine("<!--图表控件-->");
configBuilder.AppendLine("<script src=\"../../Scripts/echarts-2.2.2/build/dist/echarts.js\" type=\"text/javascript\" language=\"javascript\"></script>");
configBuilder.AppendLine("<script type=\"text/javascript\">");
configBuilder.AppendLine("<!-- 路径配置-->");
configBuilder.AppendLine(" require.config({");
configBuilder.AppendLine(" paths: {");
configBuilder.AppendLine(" echarts: '../../Scripts/echarts-2.2.2/build/dist',");
configBuilder.AppendLine(" themes: '../../Scripts/echarts-2.2.2/src'");
configBuilder.AppendLine(" }");
configBuilder.AppendLine(" });");
configBuilder.AppendLine(" if (!window.console || !console.firebug) {");
configBuilder.AppendLine(" var names = ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'];");
configBuilder.AppendLine(" window.console = {};");
configBuilder.AppendLine(" for (var i = 0; i < names.length; ++i)");
configBuilder.AppendLine(" window.console[names[i]] = function () { }");
configBuilder.AppendLine(" } ");
configBuilder.AppendLine("</script>");
return configBuilder.ToString();
}
}
}