管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-10 00700f5ef12d33da898e9b4391aa5b4a09828ee3
ExportMap/cs/Tool.cs
@@ -31,44 +31,6 @@
            return String.Format("{0:0.##}{1}", dblSByte, Suffix[i]);
        }
        public static string GetUploadFolder()
        {
            return GetFolder("uploadFolder");
        }
        public static string GetStyleFolder()
        {
            return GetFolder("styleFolder");
        }
        public static string GetDownloadFolder()
        {
            return GetFolder("downloadFolder");
        }
        public static string GetSGFolder()
        {
            return GetFolder("SGFolder");
        }
        public static string GetPublishFolder()
        {
            return GetFolder("publishFolder");
        }
        public static string GetFolder(string key)
        {
            string folder = ConfigurationManager.AppSettings[key];
            string path = folder.IndexOf(":\\") > -1 ? folder : Path.Combine(BaseDir, folder);
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            return path;
        }
        public static string GetSetting(string key)
        {
            return ConfigurationManager.AppSettings[key];
@@ -103,7 +65,6 @@
            return list;
        }
        #region * 暂时不用 *
        public static void CreateDirectory(string dir)
        {
            WindowsIdentity wi = WindowsIdentity.GetCurrent();
@@ -137,6 +98,5 @@
                return (T)formatter.Deserialize(stream);
            }
        }
        #endregion
    }
}