管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-08 788a78efe33a76ffa80ba6b8430a593cd883c508
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
 
namespace LFServer.Models
{
    /// <summary>
    /// 出图参数
    /// </summary>
    public class ExportArgs
    {
        public ExportArgs() { }
 
        /// <summary>
        /// 标题
        /// </summary>
        public String title { set; get; }
 
        /// <summary>
        /// 省份
        /// </summary>
        public String province { set; get; }
 
        /// <summary>
        /// 比例尺
        /// </summary>
        public String scale { set; get; }
 
        /// <summary>
        /// 分辨率
        /// </summary>
        public String resolution { set; get; }
 
        /// <summary>
        /// 制图时间
        /// </summary>
        public String date { set; get; }
 
        /// <summary>
        /// 图层
        /// </summary>
        public String layers { set; get; }
 
        /// <summary>
        /// 导出路径
        /// </summary>
        public String imgPath { set; get; }
 
        /// <summary>
        /// 旋转角度
        /// </summary>
        public double rotation { set; get; }
 
        /// <summary>
        /// X最小
        /// </summary>
        public double xmin { set; get; }
 
        /// <summary>
        /// Y最小
        /// </summary>
        public double ymin { set; get; }
 
        /// <summary>
        /// Y最大
        /// </summary>
        public double ymax { set; get; }
 
        /// <summary>
        /// X最大
        /// </summary>
        public double xmax { set; get; }
 
        public void SetDefault()
        {
            if (string.IsNullOrWhiteSpace(title)) title = "管道基础大数据平台";
            if (string.IsNullOrWhiteSpace(province)) province = string.Empty;
            if (string.IsNullOrWhiteSpace(scale)) scale = string.Empty;
            if (string.IsNullOrWhiteSpace(resolution)) resolution = string.Empty;
            if (string.IsNullOrWhiteSpace(date)) date = DateTime.Now.ToString("yyyy.MM.dd");
 
            imgPath = "";
        }
    }
}