예제 #1
0
        /// <summary>
        /// 生成MOD文件
        /// </summary>
        /// <param name="tbName">窗口名字</param>
        private void BuildModsFiles(string tbName)
        {
            MyConfig item = DataHelper.FormConfig[tbName];

            string haveColumn = "YES";

            if (string.IsNullOrEmpty(item.HaveColumn) || item.HaveColumn.ToUpper() == "NO")
            {
                haveColumn = "NO";
            }
            switch (item.DtType)
            {
            case "1":
                StructureData1(item.MainDtName, item.DetailDtName, item.TxtName, haveColumn);
                if (item.IsCache == "1")
                {
                    _tl.BuildDataSetXml(item.MainDtName);
                    _tl.BuildDataSetXml(item.DetailDtName);
                }
                break;

            case "2":
                StructureData(item.MainDtName, item.TxtName, haveColumn);
                if (item.IsCache == "1")
                {
                    _tl.BuildDataSetXml(item.MainDtName);
                }
                break;

            case "3":
                StructureData3(item.MainDtName, item.TxtName, haveColumn);
                if (item.IsCache == "1")
                {
                    _tl.BuildDataSetXml(item.MainDtName);
                }
                break;
            }
        }