Example #1
0
        // 加载 xml 文件到内存,构建要编译的模块文件
        public void LoadDetailList()
        {
            // 清空列表
            Dls.Clear();
            #region 读取xml文件,重建 alModule
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.Load(detaillist);
            XmlNode xn = xmldoc.SelectSingleNode("detail");
            XmlNodeList xnl = xn.ChildNodes;
            foreach (XmlNode x in xnl)
            {
                // 构建 Excel 列表文件
                Detail dl = new Detail(x.Name, x.Attributes["file"].InnerText,
                    x.Attributes["sql"].InnerText, x.Attributes["pas"].InnerText);
                Dls.Add(dl);

            }
            #endregion
        }
Example #2
0
 public void ResetConf()
 {
     detail = null;
 }
Example #3
0
 public override Detail GetDetail(CommitCom c)
 {
     Detail d = new Detail(c);
     return d;
 }
Example #4
0
 public BaseConf()
 {
     log = OperLog.instance;
     Users = new List<DBUser>();
     CommitPublic = new List<String>();
     detail = null;
 }