94 lines
2.4 KiB
C#
94 lines
2.4 KiB
C#
|
|
using Autodesk.Revit.DB;
|
|||
|
|
|
|||
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|||
|
|
|
|||
|
|
using Dapper;
|
|||
|
|
using Dapper.Contrib.Extensions;
|
|||
|
|
|
|||
|
|
namespace Szmedi.Toolkit.Revit.Approval
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 用于轨道交通修改参数功能
|
|||
|
|
/// </summary>
|
|||
|
|
public partial class AfcaMetroBaseParameter : ObservableValidator
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 索引
|
|||
|
|
/// </summary>
|
|||
|
|
[Key]
|
|||
|
|
public int Index { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// Revit参数组
|
|||
|
|
/// </summary>
|
|||
|
|
public string RevitParamGroup { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 参数前缀,CM-100
|
|||
|
|
/// </summary>
|
|||
|
|
public string ParamPrefix { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 参数名
|
|||
|
|
/// </summary>
|
|||
|
|
public string ParamName { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 参数值类型,数值,文本
|
|||
|
|
/// </summary>
|
|||
|
|
public string ParamType { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 计量单位
|
|||
|
|
/// </summary>
|
|||
|
|
public string Unit { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 信息深度
|
|||
|
|
/// </summary>
|
|||
|
|
public string InfoLevel { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 必填
|
|||
|
|
/// </summary>
|
|||
|
|
public int Mandatory { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 属性值
|
|||
|
|
/// </summary>
|
|||
|
|
//[Editable(false)]
|
|||
|
|
[ObservableProperty]
|
|||
|
|
public partial string ParamValue { get; set; }
|
|||
|
|
public string Comments { get; set; }
|
|||
|
|
//[Editable(false)]
|
|||
|
|
public string ParamFullName => $"{ParamPrefix}-{ParamName}";
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 轨道交通的基本属性
|
|||
|
|
/// </summary>
|
|||
|
|
[Table("afca_metro_base_properties")]
|
|||
|
|
public class MetroCommonParameter : AfcaMetroBaseParameter
|
|||
|
|
{
|
|||
|
|
public override string ToString()
|
|||
|
|
{
|
|||
|
|
return ParamFullName;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 轨道交通的专项属性
|
|||
|
|
/// </summary>
|
|||
|
|
[Table("afca_metro_dedicated_properties")]
|
|||
|
|
public class MetroDedicatedParameter : AfcaMetroBaseParameter
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 分类
|
|||
|
|
/// </summary>
|
|||
|
|
public string Categories { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 参数表索引
|
|||
|
|
/// </summary>
|
|||
|
|
public string ParamTableIndex { get; set; }
|
|||
|
|
|
|||
|
|
public override string ToString()
|
|||
|
|
{
|
|||
|
|
return ParamFullName;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|