You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.3 KiB
C#
75 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Concurrent;
|
|
using System.Reflection;
|
|
|
|
[AttributeUsage(
|
|
AttributeTargets.Field |
|
|
AttributeTargets.Property,
|
|
AllowMultiple = true)]
|
|
////
|
|
public class AuthRange : System.Attribute
|
|
{
|
|
|
|
public string Name;
|
|
|
|
/// <summary>
|
|
/// 用于标记字段是表示 分公司/部门/个人 的
|
|
/// COMPANY,DEPT,ID
|
|
/// </summary>
|
|
/// <param name="Name"></param>
|
|
public AuthRange(string Name)
|
|
{
|
|
this.Name = Name;
|
|
}
|
|
}
|
|
|
|
|
|
[AttributeUsage(
|
|
AttributeTargets.Field |
|
|
AttributeTargets.Property,
|
|
AllowMultiple = true)]
|
|
////
|
|
public class StateField : System.Attribute
|
|
{
|
|
|
|
public string Name;
|
|
|
|
/// <summary>
|
|
/// 用于标记字段是 业务状态/业务锁定/费用锁定
|
|
/// STATUS,FEESTATUS,BILLSTATUS
|
|
/// </summary>
|
|
/// <param name="Name"></param>
|
|
public StateField(string Name)
|
|
{
|
|
this.Name = Name;
|
|
}
|
|
}
|
|
|
|
|
|
[AttributeUsage(
|
|
AttributeTargets.Field |
|
|
AttributeTargets.Property,
|
|
AllowMultiple = true)]
|
|
////
|
|
public class ParentId : System.Attribute
|
|
{
|
|
|
|
public string Name;
|
|
|
|
/// <summary>
|
|
/// 用于标记字段是
|
|
/// STATUS,FEESTATUS,BILLSTATUS
|
|
/// </summary>
|
|
/// <param name="Name"></param>
|
|
public ParentId(string Name)
|
|
{
|
|
this.Name = Name;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|