using System; using System.Collections.Concurrent; using System.Reflection; [AttributeUsage( AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true)] //// public class AuthRange : System.Attribute { public string Name; /// /// 用于标记字段是表示 分公司/部门/个人 的 /// COMPANY,DEPT,ID /// /// public AuthRange(string Name) { this.Name = Name; } } [AttributeUsage( AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true)] //// public class StateField : System.Attribute { public string Name; /// /// 用于标记字段是 业务状态/业务锁定/费用锁定 /// STATUS,FEESTATUS,BILLSTATUS /// /// public StateField(string Name) { this.Name = Name; } } [AttributeUsage( AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true)] //// public class ParentId : System.Attribute { public string Name; /// /// 用于标记字段是 /// STATUS,FEESTATUS,BILLSTATUS /// /// public ParentId(string Name) { this.Name = Name; } }