--	添加文档应用
INSERT INTO [DB_CLASS]
           ([Name]
           ,[Remark]
           ,[Icon]
           ,[Url]
           ,[Type])
     VALUES
           ('文档管理'
           ,'在线管理各类办公文档，文件，并可进行全文检索'
           ,'Template/Image/icon_application_document.gif'
           ,'Main/Document/Default.aspx'
           ,0);
--	添加应用扩展类型
INSERT INTO [DB_CLASS_EXTENSION]
           ([ClassId]
           ,[Name]
           ,[Extension])
	SELECT ClassId, 'Word 文档', 'doc'
		From DB_CLASS Where Name = '文档管理';
INSERT INTO [DB_CLASS_EXTENSION]
           ([ClassId]
           ,[Name]
           ,[Extension])
	SELECT ClassId, 'Word 文档', 'docx'
		From DB_CLASS Where Name = '文档管理';
INSERT INTO [DB_CLASS_EXTENSION]
           ([ClassId]
           ,[Name]
           ,[Extension])
	SELECT ClassId, 'Excel 表格', 'xls'
		From DB_CLASS Where Name = '文档管理';
INSERT INTO [DB_CLASS_EXTENSION]
           ([ClassId]
           ,[Name]
           ,[Extension])
	SELECT ClassId, 'Excel 表格', 'xlsx'
		From DB_CLASS Where Name = '文档管理';
INSERT INTO [DB_CLASS_EXTENSION]
           ([ClassId]
           ,[Name]
           ,[Extension])
	SELECT ClassId, '演示文稿', 'ppt'
		From DB_CLASS Where Name = '文档管理';
INSERT INTO [DB_CLASS_EXTENSION]
           ([ClassId]
           ,[Name]
           ,[Extension])
	SELECT ClassId, '演示文稿', 'pptx'
		From DB_CLASS Where Name = '文档管理';
INSERT INTO [DB_CLASS_EXTENSION]
           ([ClassId]
           ,[Name]
           ,[Extension])
	SELECT ClassId, 'PDF 文档', 'pdf'
		From DB_CLASS Where Name = '文档管理';
INSERT INTO [DB_CLASS_EXTENSION]
           ([ClassId]
           ,[Name]
           ,[Extension])
	SELECT ClassId, '文本文件', 'txt'
		From DB_CLASS Where Name = '文档管理';