dbpatch.sql
来自「一种Portal的实现源码」· SQL 代码 · 共 36 行
SQL
36 行
/*
OneFileModule module : ExcelReader by Thierry (Tiptopweb)
This patch introduces the following changes to the db:
- Inserts entry in table rb_GeneralModuleDefinitions
- Inserts entry in table rb_ModuleDefinitions
*/
DECLARE @GeneralModDefID uniqueidentifier
DECLARE @FriendlyName nvarchar(128)
DECLARE @DesktopSrc nvarchar(256)
DECLARE @MobileSrc nvarchar(256)
DECLARE @AssemblyName varchar(50)
DECLARE @ClassName nvarchar(128)
DECLARE @Admin bit
DECLARE @Searchable bit
SET @GeneralModDefID = '{1E03D793-5A01-4f35-811D-5D23EF66618D}' -- ***** generate a new GUID AND copy in .ascx *****
SET @FriendlyName = N'Excel阅读器 (OneFileModule)' -- You enter the module UI name here
SET @DesktopSrc = 'DesktopOneFileModules/ExcelReader/ExcelReader.ascx' -- You enter actual filename here
SET @MobileSrc = ''
SET @AssemblyName = 'Rainbow.DLL'
SET @ClassName = 'Rainbow.DesktopModules.OneFileModule'
SET @Admin = 0
SET @Searchable = 0
IF NOT EXISTS (SELECT DesktopSrc FROM rb_GeneralModuleDefinitions WHERE DesktopSrc = @DesktopSrc)
BEGIN
-- Installs module
EXEC [rb_AddGeneralModuleDefinitions] @GeneralModDefID, @FriendlyName, @DesktopSrc, @MobileSrc, @AssemblyName, @ClassName, @Admin, @Searchable
-- Install it for default portal
EXEC [rb_UpdateModuleDefinitions] @GeneralModDefID, 0, 1
END
GO
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?