|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using ReactiveUI;
|
|
|
|
|
using Kingo.Plugin.MakeTaskPackage.Entity;
|
|
|
|
|
|
|
|
|
|
namespace Kingo.Plugin.MakeTaskPackage.Model
|
|
|
|
|
{
|
|
|
|
|
public class MakeTaskPackageModel : ReactiveObject
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
private int _id;
|
|
|
|
|
public int ID { get { return _id; } set { this.RaiseAndSetIfChanged(ref _id, value); } }
|
|
|
|
|
|
|
|
|
|
private int _pid;
|
|
|
|
|
|
|
|
|
|
public int PID { get { return _pid; } set { this.RaiseAndSetIfChanged(ref _pid, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private bool _isCheck;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否选中
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsCheck { get { return _isCheck; } set { this.RaiseAndSetIfChanged(ref _isCheck, value); } }
|
|
|
|
|
private bool _isSlice;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否切片
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsSlice { get { return _isSlice; } set { this.RaiseAndSetIfChanged(ref _isSlice, value); } }
|
|
|
|
|
|
|
|
|
|
private string _type;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Type { get { return _type; } set { this.RaiseAndSetIfChanged(ref _type, value); } }
|
|
|
|
|
|
|
|
|
|
private string _fileName;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FileName { get { return _fileName; } set { this.RaiseAndSetIfChanged(ref _fileName, value); } }
|
|
|
|
|
|
|
|
|
|
private string _fileAliasName;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件别名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FileAliasName { get { return _fileAliasName; } set { this.RaiseAndSetIfChanged(ref _fileAliasName, value); } }
|
|
|
|
|
|
|
|
|
|
private string _make;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 制作
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Make { get { return _make; } set { this.RaiseAndSetIfChanged(ref _make, value); } }
|
|
|
|
|
|
|
|
|
|
private object _layer;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图层
|
|
|
|
|
/// </summary>
|
|
|
|
|
public object Layer { get { return _layer; } set { this.RaiseAndSetIfChanged(ref _layer, value); } }
|
|
|
|
|
|
|
|
|
|
private string _dataState;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 数据状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DataState { get { return _dataState; } set { this.RaiseAndSetIfChanged(ref _dataState, value); } }
|
|
|
|
|
|
|
|
|
|
private int _fcCount;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 要素总数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int FcCount { get { return _fcCount; } set { this.RaiseAndSetIfChanged(ref _fcCount, value); } }
|
|
|
|
|
|
|
|
|
|
private int _currNum;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前处理数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CurrNum { get { return _currNum; } set { this.RaiseAndSetIfChanged(ref _currNum, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int _layerIndex;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图层索引
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int LayerIndex { get { return _layerIndex; } set { this.RaiseAndSetIfChanged(ref _layerIndex, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int _gridRowIndex;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图层索引
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int GridRowIndex { get { return _gridRowIndex; } set { this.RaiseAndSetIfChanged(ref _gridRowIndex, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int _currentIndex;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前索引
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CurrentIndex { get { return _currentIndex; } set { this.RaiseAndSetIfChanged(ref _currentIndex, value); } }
|
|
|
|
|
|
|
|
|
|
private bool _isLayerGroup;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否是图层组
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsLayerGroup { get { return _isLayerGroup; } set { this.RaiseAndSetIfChanged(ref _isLayerGroup, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<MakeTaskPackageModel> _taskModelList;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 外业任务图层
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<MakeTaskPackageModel> TaskModelList { get { return _taskModelList; } set { this.RaiseAndSetIfChanged(ref _taskModelList, value); } }
|
|
|
|
|
|
|
|
|
|
private ExcStateEnum _excState;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 执行状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ExcStateEnum ExcState { get { return _excState; } set { this.RaiseAndSetIfChanged(ref _excState, value); } }
|
|
|
|
|
|
|
|
|
|
private string _OutPath;
|
|
|
|
|
public string OutPath { get { return _OutPath; } set { this.RaiseAndSetIfChanged(ref _OutPath, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string _OutFilePath;
|
|
|
|
|
public string OutFilePath { get { return _OutFilePath; } set { this.RaiseAndSetIfChanged(ref _OutFilePath, value); } }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图层组名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string _mapGroupName;
|
|
|
|
|
public string MapGroupName { get { return _mapGroupName; } set { this.RaiseAndSetIfChanged(ref _mapGroupName, value); } }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图层组索引
|
|
|
|
|
/// </summary>
|
|
|
|
|
private int _mapGroupIndex;
|
|
|
|
|
public int MapGroupIndex { get { return _mapGroupIndex; } set { this.RaiseAndSetIfChanged(ref _mapGroupIndex, value); } }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// mxd切片参数
|
|
|
|
|
/// </summary>
|
|
|
|
|
private MxdParameters _mxdCutParameters;
|
|
|
|
|
public MxdParameters MxdCutParameters { get { return _mxdCutParameters; } set { this.RaiseAndSetIfChanged(ref _mxdCutParameters, value); } }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图层数据源
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string _layerSource;
|
|
|
|
|
public string LayerSource { get { return _layerSource; } set { this.RaiseAndSetIfChanged(ref _layerSource, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 任务名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string _taskName;
|
|
|
|
|
public string TaskName { get { return _taskName; } set { this.RaiseAndSetIfChanged(ref _taskName, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 配置文件名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string _cfgFileName;
|
|
|
|
|
public string CfgFileName { get { return _cfgFileName; } set { this.RaiseAndSetIfChanged(ref _cfgFileName, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图层数据过滤条件
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string _filterWhere;
|
|
|
|
|
public string FilterWhere { get { return _filterWhere; } set { this.RaiseAndSetIfChanged(ref _filterWhere, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自定义范围字符串
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string _customStrGeo;
|
|
|
|
|
public string CustomStrGeo { get { return _customStrGeo; } set { this.RaiseAndSetIfChanged(ref _customStrGeo, value); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自定义范围导出文件夹名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string _customPackName;
|
|
|
|
|
public string CustomPackName { get { return _customPackName; } set { this.RaiseAndSetIfChanged(ref _customPackName, value); } }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 执行状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum ExcStateEnum
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 正在导入
|
|
|
|
|
/// </summary>
|
|
|
|
|
Loading = 0,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 正在等待
|
|
|
|
|
/// </summary>
|
|
|
|
|
Waiting = 1,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 不需要导入
|
|
|
|
|
/// </summary>
|
|
|
|
|
NoImport=2
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|