Skip to content

Commit

Permalink
增加数据字段DataField的属性【是否可见】、【是否必填】、【权限相关】等扩展字段。
Browse files Browse the repository at this point in the history
  • Loading branch information
robothink committed Jul 21, 2023
1 parent dd25135 commit 8e93df9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions NewLife.CubeNC/ViewModels/DataField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,36 @@ public class DataField
/// <summary>只读</summary>
public Boolean Readonly { get; set; }

/// <summary>
/// 是否可见
/// </summary>
public Boolean Visible { get; set; }

/// <summary>
/// 是否必填
/// </summary>
public bool Required { get; set; }

/// <summary>
/// 权限相关。用户自由发挥
/// </summary>
public string Authority { get; set; }

/// <summary>
/// 扩展字段。用户自由发挥
/// </summary>
public string Extended1 { get; set; }

/// <summary>
/// 扩展字段。用户自由发挥
/// </summary>
public string Extended2 { get; set; }

/// <summary>
/// 扩展字段。用户自由发挥
/// </summary>
public string Extended3 { get; set; }

/// <summary>原始字段</summary>
[XmlIgnore, IgnoreDataMember, JsonIgnore]
public FieldItem Field { get; set; }
Expand Down

0 comments on commit 8e93df9

Please sign in to comment.