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 = "";
|
}
|
}
|
}
|