管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-09-07 8d7a67ab1d635cb954337d8a767878ae526dd3dc
ExportMap/Models/ExportArgs.cs
@@ -3,7 +3,7 @@
using System.Linq;
using System.Web;
namespace LFServer.Models
namespace ExportMap.Models
{
    /// <summary>
    /// 出图参数
@@ -11,6 +11,8 @@
    public class ExportArgs
    {
        public ExportArgs() { }
        public String token { set; get; }
        /// <summary>
        /// 标题
@@ -20,7 +22,7 @@
        /// <summary>
        /// 纸张大小
        /// </summary>
        public string pageSize { set; get; }
        public String pageSize { set; get; }
        /// <summary>
        /// 省份
@@ -82,6 +84,14 @@
        /// </summary>
        public int dpi { set; get; }
        /// <summary>
        /// 模板文件
        /// </summary>
        public String qpt { set; get; }
        /// <summary>
        /// 设置默认值
        /// </summary>
        public void SetDefault()
        {
            if (string.IsNullOrWhiteSpace(title)) title = "管道基础大数据平台";
@@ -91,9 +101,13 @@
            if (string.IsNullOrWhiteSpace(date)) date = DateTime.Now.ToString("yyyy.MM.dd");
            this.dpi = GetDpi(this.pageSize);
            imgPath = "";
        }
        /// <summary>
        /// 获取DPI
        /// </summary>
        /// <param name="page">页面大小</param>
        /// <returns>DPI</returns>
        public int GetDpi(string page)
        {
            if (string.IsNullOrWhiteSpace(page)) return 300;