Beispiel #1
0
        // 导出网站所有相关辅助表以及除提交表单外的所有表样式
        public void ExportTablesAndStyles(string tableDirectoryPath)
        {
            DirectoryUtils.CreateDirectoryIfNotExists(tableDirectoryPath);
            var tableIe = new AuxiliaryTableIe(tableDirectoryPath);
            var styleIe = new TableStyleIe(tableDirectoryPath);

            var publishmentSystemInfo = PublishmentSystemManager.GetPublishmentSystemInfo(Fso.PublishmentSystemId);
            var tableNameList         = PublishmentSystemManager.GetAuxiliaryTableNameList(publishmentSystemInfo);

            foreach (var tableName in tableNameList)
            {
                tableIe.ExportAuxiliaryTable(tableName);
                styleIe.ExportTableStyles(publishmentSystemInfo.PublishmentSystemId, tableName);
            }

            styleIe.ExportTableStyles(publishmentSystemInfo.PublishmentSystemId, DataProvider.NodeDao.TableName);
            styleIe.ExportTableStyles(publishmentSystemInfo.PublishmentSystemId, DataProvider.PublishmentSystemDao.TableName);
        }