|
@@ -1,17 +1,24 @@
|
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json;
|
|
|
using Newtonsoft.Json.Converters;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
|
+using YSAI.Unility;
|
|
|
|
|
|
|
|
namespace YSAI.Core.data
|
|
namespace YSAI.Core.data
|
|
|
{
|
|
{
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 库文件参数结构
|
|
/// 库文件参数结构
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
- public class LibParamStructure
|
|
|
|
|
|
|
+ public class ParamStructure
|
|
|
{
|
|
{
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 代码
|
|
/// 代码
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
- public string Code { get; set; }
|
|
|
|
|
|
|
+ public string Code
|
|
|
|
|
+ {
|
|
|
|
|
+ get
|
|
|
|
|
+ {
|
|
|
|
|
+ return Name;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 名称
|
|
/// 名称
|
|
@@ -88,7 +95,12 @@ namespace YSAI.Core.data
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 默认值
|
|
/// 默认值
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
- public string Default { get; set; }
|
|
|
|
|
|
|
+ public object? Default { get; set; }
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 初始值
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public object? Initial { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 描述
|
|
/// 描述
|
|
@@ -101,19 +113,18 @@ namespace YSAI.Core.data
|
|
|
public string PropertyName { get; set; }
|
|
public string PropertyName { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
- /// 初始值
|
|
|
|
|
- /// </summary>
|
|
|
|
|
- public object? Value { get; set; }
|
|
|
|
|
-
|
|
|
|
|
- /// <summary>
|
|
|
|
|
- /// 是否显示
|
|
|
|
|
|
|
+ /// 是否显示,
|
|
|
|
|
+ /// true:展示
|
|
|
|
|
+ /// false:隐藏
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
- public bool IsShow { get; set; }
|
|
|
|
|
|
|
+ public bool Show { get; set; } = true;
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
- /// 是否使用
|
|
|
|
|
|
|
+ /// 是否使用,
|
|
|
|
|
+ /// false:不让输入
|
|
|
|
|
+ /// true:正常输入
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
- public bool IsMust { get; set; }
|
|
|
|
|
|
|
+ public bool Use { get; set; } = true;
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 正则表达式
|
|
/// 正则表达式
|