using System.ComponentModel; namespace WpfApp1.Model { public class AnalysisExport : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private int _id; public int ID { get { return _id; } set { _id = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("ID")); } } } private int _xh; public int XH { get { return _xh; } set { _xh = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("XH")); } } } private string _xzqdm; /// /// 行政区代码 /// public string XZQDM { get { return _xzqdm; } set { _xzqdm = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("XZQDM")); } } } private string _resultType; /// /// 成果类型:全库、增量 /// public string ResultType { get { return _resultType; } set { _resultType = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("ResultType")); } } } private string _fileName; public string FileName { get { return _fileName; } set { _fileName = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("FileName")); } } } private string _fileSize; /// /// 文件大小 /// public string FileSize { get { return _fileSize; } set { _fileSize = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("FileSize")); } } } private string _parengFolder; public string ParengFolder { get { return _parengFolder; } set { _parengFolder = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("ParengFolder")); } } } private string _fullName; /// /// 业务类型 /// public string FullName { get { return _fullName; } set { _fullName = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("FullName")); } } } private bool _isChecked = false; public bool IsChecked { set { _isChecked = value; if (PropertyChanged != null)//有改变 { PropertyChanged(this, new PropertyChangedEventArgs("IsChecked"));//对Name进行监听 } } get { return _isChecked; } } private string _prompt; /// /// 提示信息 /// public string Prompt { get { return _prompt; } set { _prompt = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Prompt")); } } } private string _BGFWPath; /// /// BGFWPath /// public string BGFWPath { get { return _BGFWPath; } set { _BGFWPath = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("BGFWPath")); } } } private string _BGFWName; /// /// BGFWPath /// public string BGFWName { get { return _BGFWName; } set { _BGFWName = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("BGFWName")); } } } private string _JCSJPath; /// /// JCSJPath /// public string JCSJPath { get { return _JCSJPath; } set { _JCSJPath = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("JCSJPath")); } } } private string _JCSJName; /// /// JCSJPath /// public string JCSJName { get { return _JCSJName; } set { _JCSJName = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("JCSJName")); } } } private string _JCSJExcelName; /// /// 年初报表名称 /// public string JCSJExcelName { get { return _JCSJExcelName; } set { _JCSJExcelName = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("JCSJExcelName")); } } } private string _JCSJExcelPath; /// /// 年初报表路径 /// public string JCSJExcelPath { get { return _JCSJExcelPath; } set { _JCSJExcelPath = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("JCSJExcelPath")); } } } private string _OutputExcelPath; /// /// 数据导出路径 /// public string OutputExcelPath { get { return _OutputExcelPath; } set { _OutputExcelPath = value; if (this.PropertyChanged != null) { this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("OutputExcelPath")); } } } } }