47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|
|||
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|||
|
|
|
|||
|
|
using Dapper;
|
|||
|
|
|
|||
|
|
namespace Szmedi.RvKits.InfoManager
|
|||
|
|
{
|
|||
|
|
public partial class MetroBaseParamData : ParamData
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 信息等级
|
|||
|
|
/// </summary>
|
|||
|
|
public string InformationLevel { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 属性类别代码
|
|||
|
|
/// </summary>
|
|||
|
|
[ObservableProperty]
|
|||
|
|
[NotifyPropertyChangedFor(nameof(FullProperty))]
|
|||
|
|
private string propertyCategoryCode;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 属性分组类别
|
|||
|
|
/// </summary>
|
|||
|
|
public string PropertyGroup { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 属性分组代码
|
|||
|
|
/// </summary>
|
|||
|
|
[ObservableProperty]
|
|||
|
|
[NotifyPropertyChangedFor(nameof(FullProperty))]
|
|||
|
|
private string propertyGroupCode;
|
|||
|
|
|
|||
|
|
[ObservableProperty]
|
|||
|
|
private string property;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 属性全称
|
|||
|
|
/// </summary>
|
|||
|
|
//[Editable(iseditable: false)]
|
|||
|
|
public override string FullProperty =>
|
|||
|
|
string.IsNullOrEmpty(PropertyCategoryCode) || string.IsNullOrEmpty(PropertyGroupCode)
|
|||
|
|
? $"{Property}"
|
|||
|
|
: $"{PropertyCategoryCode}-{PropertyGroupCode}-{Property}";
|
|||
|
|
}
|
|||
|
|
}
|