添加项目文件。
This commit is contained in:
46
Szmedi.RvKits/InfoManager/Delivery/MetroBaseParamData.cs
Normal file
46
Szmedi.RvKits/InfoManager/Delivery/MetroBaseParamData.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
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}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user