using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace SmartCoalApplication.Base.FunctionModel { /// /// 命名规则 /// [XmlRoot("ROOT")] public class FileNameRule { public FileNameRule() { NameRuleList = new List(); } /// /// 模板路径 /// [XmlElement("NameRuleList")] public List NameRuleList { get; set; } } public class NameRuleListDetails { public NameRuleListDetails() { NowNumber = 1; ContinueNumber = 1; isContinue = true; } /// /// ID /// [XmlElement("ID")] public string ID { get; set; } /// /// 名称 /// [XmlElement("Name")] public string Name { get; set; } /// /// 文本 /// [XmlElement("Text")] public string Text { get; set; } /// /// 名称格式 /// [XmlElement("NameFormat")] public string NameFormat { get; set; } /// /// 数值位数 /// [XmlElement("DigitNum")] public int DigitNum { get; set; } /// /// Z1 /// [XmlElement("ZTextOne")] public string ZTextOne { get; set; } /// /// Z2 /// [XmlElement("ZTextTwo")] public string ZTextTwo { get; set; } /// /// 延续 or 重置 /// [XmlElement("isContinue")] public bool isContinue { get; set; } /// /// 延续位数 /// [XmlElement("ContinueNumber")] public int ContinueNumber { get; set; } /// /// 当前的位数 /// [XmlElement("NowNumber")] public int NowNumber { get; set; } } }