年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

117 lines
3.8 KiB

using ESRI.ArcGIS.Geodatabase;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Kingo.PluginServiceInterface
{
public delegate void InspectionCompleted();
public interface IDataCheckInterface
{
/// <summary>
/// 地类图斑变更数据检查(属性/图形)
/// </summary>
/// <param name="ifeature"></param>
/// <returns></returns>
List<DataCheckResult> DLTBBGCheck(IFeature ifeature);
/// <summary>
/// 地类图斑变更数据检查(属性/图形)
/// </summary>
/// <param name="featureClass"></param>
/// <returns></returns>
List<DataCheckResult> DLTBBGCheck(IFeatureClass featureClass);
/// <summary>
/// 单个Feature属性检查
/// </summary>
/// <param name="ifeature"></param>
/// <returns></returns>
List<DataCheckResult> AttributeCheck(IFeature ifeature);
/// <summary>
/// 单独图层属性检查
/// </summary>
/// <param name="featureClass"></param>
/// <returns></returns>
List<DataCheckResult> AttributeCheck(IFeatureClass featureClass);
/// <summary>
/// 单个Feature图形检查
/// </summary>
/// <param name="ifeature"></param>
/// <returns></returns>
List<DataCheckResult> GraphicCheck(IFeature ifeature);
/// <summary>
/// 单图层图形检查
/// </summary>
/// <param name="featureClass"></param>
/// <returns></returns>
List<DataCheckResult> GraphicCheck(IFeatureClass featureClass);
/// <summary>
/// 图层间图形检查
/// </summary>
/// <param name="FirstfeatureClass"></param>
/// <param name="SecondfeatureClass"></param>
/// <returns></returns>
List<DataCheckResult> GraphicCheck(IFeatureClass FirstfeatureClass, IFeatureClass SecondfeatureClass);
/// <summary>
/// 数据检查完成状态
/// </summary>
bool inspectionCompleted { get; set; }
/// <summary>
/// 设置是否为多线程执行操作
/// </summary>
bool isMultithreading { get; set; }
/// <summary>
/// 数据检查完成事件
/// </summary>
event InspectionCompleted InspectionCompleted;
}
/// <summary>
/// 数据检查结果
/// </summary>
public class DataCheckResult : BaseNotifyProperty
{
public int ID { get; set; }
public int PID { get; set; }
private string _Icon;
public string Icon
{
get
{
return _Icon;
}
set
{
_Icon = value;
base.NotifyProperty(this, "Icon");
}
}
private EnumErrorType _ErrorType;
public EnumErrorType ErrorType
{
get
{
return _ErrorType;
}
set
{
_ErrorType = value;
base.NotifyProperty(this, "ErrorType");
Icon = string.Format("pack://siteoforigin:,,,/Images/{0}.{1}", value.ToString(), "png");
}
}
public string ErrorLayer { get; set; }
public string PrimaryKey { get; set; }
public string PrimaryKeyValue { get; set; }
public string BSM { get; set; }
public string PrimaryKeyValue2 { get; set; }
public string ErrorCode { get; set; }
public string ErrorDesc { get; set; }
public object ErrorData { get; set; }
public string ErrorArea { get; set; }
public double ErrorMJ { get; set; }
public string RepairfilePath { get; set; }
}
}