using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace XImagingXhandler.XDAL
|
{
|
/// <summary>
|
/// 数据检查结果类
|
/// </summary>
|
public class DataCheckResult: INotifyPropertyChanged
|
{
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
private int _result;
|
/// <summary>
|
/// 结果:0:完整无误;1:不完整或有误;
|
/// </summary>
|
public int result
|
{
|
get { return _result; }
|
set
|
{
|
_result = value;
|
if (PropertyChanged != null)
|
{
|
PropertyChanged(this, new PropertyChangedEventArgs(nameof(result)));
|
}
|
}
|
}
|
|
private string _missdata;
|
/// <summary>
|
/// 结果:丢失的孔位号,逗号分割,
|
/// </summary>
|
public string missData
|
{
|
get { return _missdata; }
|
set
|
{
|
_missdata = value;
|
if (PropertyChanged != null)
|
{
|
PropertyChanged(this, new PropertyChangedEventArgs(nameof(missData)));
|
}
|
}
|
}
|
|
private List<string> _errorlist;
|
/// <summary>
|
/// 错误结果集合:
|
/// </summary>
|
public List<string> errorlist
|
{
|
get { return _errorlist; }
|
set
|
{
|
_errorlist = value;
|
if (PropertyChanged != null)
|
{
|
PropertyChanged(this, new PropertyChangedEventArgs(nameof(errorlist)));
|
}
|
}
|
}
|
}
|
}
|