106 lines
3.3 KiB
C#
106 lines
3.3 KiB
C#
using Caliburn.Micro.Core;
|
|
using DocumentFormat.OpenXml.Wordprocessing;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MECF.Framework.UI.Client.CenterViews.Maintain
|
|
{
|
|
public class MaintainerItemConfigEnableInfo: PropertyChangedBase,ICloneable
|
|
{
|
|
MaintainerItemConfigInfo _config = new();
|
|
public MaintainerItemConfigInfo Config
|
|
{
|
|
get { return _config; }
|
|
set
|
|
{
|
|
_config = value;
|
|
NotifyOfPropertyChange(nameof(Config));
|
|
NotifyOfPropertyChange(nameof(ParentName));
|
|
NotifyOfPropertyChange(nameof(ParentNameDisplay));
|
|
NotifyOfPropertyChange(nameof(Name));
|
|
NotifyOfPropertyChange(nameof(Index));
|
|
NotifyOfPropertyChange(nameof(FilePath));
|
|
NotifyOfPropertyChange(nameof(Description));
|
|
NotifyOfPropertyChange(nameof(DefaultRecord));
|
|
}
|
|
}
|
|
|
|
#region config
|
|
public string ParentName
|
|
{
|
|
get { return _config.ParentName; }
|
|
set { _config.ParentName = value; NotifyOfPropertyChange(nameof(ParentName)); }
|
|
}
|
|
|
|
public int ParentIndex
|
|
{
|
|
get { return _config.ParentIndex; }
|
|
set { _config.ParentIndex = value; NotifyOfPropertyChange(nameof(ParentIndex)); }
|
|
}
|
|
|
|
public string ParentNameDisplay
|
|
{
|
|
get { return _config.ParentNameDisplay; }
|
|
set { _config.ParentNameDisplay = value; NotifyOfPropertyChange(nameof(ParentNameDisplay)); }
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return _config.Name; }
|
|
set { _config.Name = value; NotifyOfPropertyChange(nameof(Name)); }
|
|
}
|
|
|
|
public int Id
|
|
{
|
|
get { return _config.Id; }
|
|
set { _config.Id = value; NotifyOfPropertyChange(nameof(Id)); }
|
|
}
|
|
|
|
public int Index
|
|
{
|
|
get { return _config.Index; }
|
|
set { _config.Index = value; NotifyOfPropertyChange(nameof(Index)); }
|
|
}
|
|
|
|
public string FilePath
|
|
{
|
|
get { return _config.FilePath; }
|
|
set { _config.FilePath = value; NotifyOfPropertyChange(nameof(FilePath)); }
|
|
}
|
|
|
|
public string Description
|
|
{
|
|
get { return _config.Description; }
|
|
set { _config.Description = value; NotifyOfPropertyChange(nameof(Description)); }
|
|
}
|
|
|
|
public string DefaultRecord
|
|
{
|
|
get { return _config.DefaultRecord; }
|
|
set { _config.DefaultRecord = value; NotifyOfPropertyChange(nameof(DefaultRecord)); }
|
|
}
|
|
|
|
#endregion
|
|
|
|
private ObservableCollection<PlanEnablePage> _planenablebook = new();
|
|
|
|
public ObservableCollection<PlanEnablePage> PlanEnableBook
|
|
{
|
|
get { return _planenablebook; }
|
|
set { _planenablebook = value; NotifyOfPropertyChange(nameof(PlanEnableBook)); }
|
|
}
|
|
|
|
public object Clone()
|
|
{
|
|
return new MaintainerItemConfigEnableInfo()
|
|
{
|
|
Config = (MaintainerItemConfigInfo)_config.Clone()
|
|
};
|
|
}
|
|
}
|
|
}
|