| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System.Reflection;
- using System.Text.Json.Serialization;
- namespace qmonlib
- {
- [Serializable]
- public class MonItemGeneral
- {
- [JsonPropertyName("nam")]
- public string Name { get; set; }
- [JsonPropertyName("cpt")]
- public string Caption { get; set; }
- [JsonPropertyName("dsc")]
- public string Description { get; set; }
- [JsonPropertyName("vty")]
- public MonViewType ViewType { get; set; }
- [JsonPropertyName("key")]
- public List<int> KeyOrdinals { get; set; } = new List<int>();
- public List<ItemDescriptor> Items { get; set; } = new List<ItemDescriptor>();
- public class ItemDescriptor
- {
- [JsonPropertyName("nme")]
- public string Name { get; set; }
- [JsonPropertyName("tnm")]
- public string TypeName { get; set; }
- [JsonPropertyName("lbl")]
- public string Label { get; set; }
- [JsonPropertyName("dsc")]
- public string Description { get; set; }
- [JsonPropertyName("ord")]
- public int Order { get; set; }
- [NonSerialized] public PropertyInfo? _propertyInfo;
- }
- public enum MonViewType
- {
- Item,
- List
- }
- }
- }
|