| | |
| | | using PdmSwPlugin.Common.Util; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Globalization; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | |
| | | public string CheckInListenName { get; private set; } = ""; |
| | | public int ScanInterval { get; private set; } = 500; |
| | | |
| | | public string HistoryDate { get; private set; } = ""; |
| | | |
| | | [XmlIgnore] |
| | | public List<string> prefixes { get; private set; } = new List<string>(); |
| | | [XmlIgnore] |
| | | public List<string> xcSuffixes { get; private set; } = new List<string>(); |
| | | [XmlIgnore] |
| | | public List<string> mnSuffixes { get; private set; } = new List<string>(); |
| | | [XmlIgnore] |
| | | public long HistoryDateFlag { get; private set; } |
| | | |
| | | [XmlIgnore] |
| | | public string this[string field] |
| | |
| | | string value = prop.GetValue(this).ToString(); |
| | | DataMap.Add(prop.Name, value); |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(HistoryDate)) |
| | | { |
| | | try |
| | | { |
| | | HistoryDateFlag = long.Parse(HistoryDate); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | HistoryDateFlag = -1; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | HistoryDateFlag = -1; |
| | | } |
| | | } |
| | | |
| | | static PluginSetting() |