管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-11 01ca4d2d30873d9b52c0b106e6f372dc318ce021
1
已修改2个文件
14 ■■■■ 文件已修改
ExportMap/Web.config 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/ExportUtil.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Web.config
@@ -3,7 +3,7 @@
    <appSettings>
    <!-- 192.168.20.39,127.0.0.1 -->
        <add key="lfServer" value="http://127.0.0.1:12316"/>
    <add key="exportFolder" value="D:\LF\export"/>
    <add key="downloadFolder" value="D:\LF\download"/>
    <add key="pgConn" value="Server=127.0.0.1;Port=5432;Database=langfang;User Id=postgres;Password=postgres;" />
        <add key="webpages:Version" value="3.0.0.0" />
        <add key="webpages:Enabled" value="false" />
ExportMap/cs/ExportUtil.cs
@@ -72,13 +72,13 @@
        }
        /// <summary>
        /// 获取出图目录
        /// 获取下载目录
        /// </summary>
        public static string ExportFolder
        public static string DownloadFolder
        {
            get
            {
                return ConfigurationManager.AppSettings["exportFolder"];
                return ConfigurationManager.AppSettings["downloadFolder"];
            }
        }
@@ -98,7 +98,7 @@
        /// </summary>
        public static string GetExportSubFolder()
        {
            string root = ExportFolder;
            string root = DownloadFolder;
            if (!Directory.Exists(root))
            {
                Directory.CreateDirectory(root);
@@ -202,7 +202,7 @@
                File.Delete(qptFile);
            }
            string imgPath = Path.Combine(ExportFolder, args.imgPath);
            string imgPath = Path.Combine(DownloadFolder, args.imgPath);
            bool flag = File.Exists(imgPath);
            return flag ? args.imgPath : null;
@@ -214,7 +214,7 @@
        /// <param name="args">出图参数</param>
        public static void CreateTemplate(ExportArgs args)
        {
            string imgPath = Path.Combine(ExportFolder, args.imgPath);
            string imgPath = Path.Combine(DownloadFolder, args.imgPath);
            string templateFile = Path.Combine(SourcesPath, "Template.qpt");
            string qptFile = Path.Combine(SourcesPath, args.qpt);
            if (File.Exists(qptFile))