You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
245 lines
12 KiB
Transact-SQL
245 lines
12 KiB
Transact-SQL
select * from sys_module where description like '%枚举类型%'
|
|
select * from [action] where description like '%枚举类型%'
|
|
|
|
|
|
select newid();
|
|
|
|
select * from [action] where description='进口贸易'
|
|
|
|
begin
|
|
delete from sys_module where gid='D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C', 'modXXH', '进口贸易',
|
|
'#', 'Module.gif',0,0, '0',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,0)
|
|
---
|
|
delete from [action] where gid='D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C','modXXH','进口贸易',
|
|
'96FA13A0-063F-4B74-8EFF-90D31B8436B2','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
begin
|
|
delete from sys_module where gid='96FA13A0-063F-4B74-8EFF-90D31B8436B2'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('96FA13A0-063F-4B74-8EFF-90D31B8436B2', 'modXXH_main', '合同',
|
|
'Import/XXH', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='6245CE3D-AD5A-4C16-8598-B21C0BC82857'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('6245CE3D-AD5A-4C16-8598-B21C0BC82857','modXXH_main','合同',
|
|
'96FA13A0-063F-4B74-8EFF-90D31B8436B2','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
begin
|
|
delete from sys_module where gid='5B87F052-AC3F-404A-9644-6C3DBBFB29C5'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('5B87F052-AC3F-404A-9644-6C3DBBFB29C5', 'modXXH_approval', '许可证管理',
|
|
'Import/approval', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='D721775D-1827-4437-A80A-879C36510EFF'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('D721775D-1827-4437-A80A-879C36510EFF','modXXH_approval','许可证管理',
|
|
'5B87F052-AC3F-404A-9644-6C3DBBFB29C5','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
begin
|
|
delete from sys_module where gid='E51015BF-C475-474D-9A9F-3F97BDA235B1'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('E51015BF-C475-474D-9A9F-3F97BDA235B1', 'modXXH_create', '接单操作',
|
|
'Import/create', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='34B575B6-EA50-4E92-AC97-F62C996E519F'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('34B575B6-EA50-4E92-AC97-F62C996E519F','modXXH_create','接单操作',
|
|
'E51015BF-C475-474D-9A9F-3F97BDA235B1','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
begin
|
|
delete from sys_module where gid='74284B81-408B-4E5E-915E-6FE540FF3081'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('74284B81-408B-4E5E-915E-6FE540FF3081', 'modXXH_audit', '审单',
|
|
'Import/audit', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='655668A0-0D09-4C56-BAEE-9D97D993EF29'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('655668A0-0D09-4C56-BAEE-9D97D993EF29','modXXH_audit','审单',
|
|
'74284B81-408B-4E5E-915E-6FE540FF3081','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
--系统管理GID 81CF125F-6152-4E31-84B6-F19C086A8854
|
|
--select newid();
|
|
begin
|
|
delete from sys_module where gid='4D0EC8F6-1521-4E2F-9E96-2A7FE91B5FDE'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('4D0EC8F6-1521-4E2F-9E96-2A7FE91B5FDE', 'modXXH_cargoinfo', '商品信息维护',
|
|
'Import/cargoinfo', 'Module.gif',0,2, '81CF125F-6152-4E31-84B6-F19C086A8854',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='917C3E60-5DC7-463D-9518-757FFF2EA974'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('917C3E60-5DC7-463D-9518-757FFF2EA974','modXXH_cargoinfo','商品信息维护',
|
|
'4D0EC8F6-1521-4E2F-9E96-2A7FE91B5FDE','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
|
|
-- 进口贸易 D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C
|
|
--select newid();
|
|
begin
|
|
delete from sys_module where gid='39DC8E8A-E1B9-4397-ACA9-6ADFEEDCAD7E'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('39DC8E8A-E1B9-4397-ACA9-6ADFEEDCAD7E', 'modXXH_Feedetail', '应收应付列表',
|
|
'Import/RptImportFeedetail', 'Module.gif',0,2, '13B176E2-8A52-461A-A594-E5526F8E0C8A',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='0F8B10A7-1B01-4755-988D-FAE362095589'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('0F8B10A7-1B01-4755-988D-FAE362095589','modXXH_Feedetail','应收应付列表',
|
|
'39DC8E8A-E1B9-4397-ACA9-6ADFEEDCAD7E','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
--select newid();
|
|
begin
|
|
delete from sys_module where gid='EC0CBA1B-05E9-47BA-9F40-CAF9B3996A94'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('EC0CBA1B-05E9-47BA-9F40-CAF9B3996A94', 'modXXH_KcRPT', '库存列表',
|
|
'Import/RptImportKc', 'Module.gif',0,2, '13B176E2-8A52-461A-A594-E5526F8E0C8A',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='C169BE34-9AB9-427D-AF66-400F072C67B0'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('C169BE34-9AB9-427D-AF66-400F072C67B0','modXXH_KcRPT','库存列表',
|
|
'EC0CBA1B-05E9-47BA-9F40-CAF9B3996A94','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
--select newid();
|
|
begin
|
|
delete from sys_module where gid='CAAC94AE-4C59-4DA2-9280-86DF5822903E'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('CAAC94AE-4C59-4DA2-9280-86DF5822903E', 'modXXH_CWAudit', '费用审核',
|
|
'Import/CWAudit', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='37351E6A-73E0-451A-943D-D1FA7EFC8065'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('37351E6A-73E0-451A-943D-D1FA7EFC8065','modXXH_CWAudit','费用审核',
|
|
'CAAC94AE-4C59-4DA2-9280-86DF5822903E','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
--select newid();
|
|
begin
|
|
delete from sys_module where gid='D78CB31C-80C1-4D7E-A1F1-CBC0F21D1DBE'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('D78CB31C-80C1-4D7E-A1F1-CBC0F21D1DBE', 'modXXH_CWSettlement', '费用结算',
|
|
'Import/CWSettlement', 'Module.gif',0,2, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='B46ACAE4-7CB7-44C8-9DA5-8C6FB6882E71'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('B46ACAE4-7CB7-44C8-9DA5-8C6FB6882E71','modXXH_CWSettlement','费用结算',
|
|
'D78CB31C-80C1-4D7E-A1F1-CBC0F21D1DBE','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
--select newid();
|
|
--select * from sys_module where description like '%财务%'
|
|
begin
|
|
delete from sys_module where gid='6C5E84DB-9E5F-49BB-B648-181A0E32D8F0'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('6C5E84DB-9E5F-49BB-B648-181A0E32D8F0', 'modXXH_FinanceOut', '融资管理',
|
|
'Import/FinanceOut', 'Module.gif',0,2, 'C7015B5E-B490-45E8-987B-0F0F22627155',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='7773184A-7E00-4F2F-9D18-C5A09DC841B7'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('7773184A-7E00-4F2F-9D18-C5A09DC841B7','modXXH_FinanceOut','融资管理',
|
|
'6C5E84DB-9E5F-49BB-B648-181A0E32D8F0','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
--select * from [sys_module] where name like '%rpt%'
|
|
--select newid();
|
|
begin
|
|
delete from sys_module where gid='13B176E2-8A52-461A-A594-E5526F8E0C8A'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('13B176E2-8A52-461A-A594-E5526F8E0C8A', 'modXXH_Rpt', '进口贸易报表',
|
|
'#', 'Module.gif',0,1, 'D1BB9DA9-6014-41F0-92D8-1AFACFAAEF8C',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,1)
|
|
---
|
|
delete from [action] where gid='FA5984C2-E3BF-46FB-80AE-77BCEA18A935'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('FA5984C2-E3BF-46FB-80AE-77BCEA18A935','modXXH_Rpt','进口贸易报表',
|
|
'13B176E2-8A52-461A-A594-E5526F8E0C8A','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
--select newid();
|
|
--select * from sys_module where description like '%财务%'
|
|
begin
|
|
delete from sys_module where gid='0B70B056-760E-4E06-8385-39266DFB4A47'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('0B70B056-760E-4E06-8385-39266DFB4A47', 'modXXH_RptFeeTotal', '应收实收列表',
|
|
'Import/RptFeeTotal', 'Module.gif',0,2, 'C7015B5E-B490-45E8-987B-0F0F22627155',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='B69A0673-E1BF-4859-BA90-6886724E42F7'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('B69A0673-E1BF-4859-BA90-6886724E42F7','modXXH_RptFeeTotal','应收实收列表',
|
|
'0B70B056-760E-4E06-8385-39266DFB4A47','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
--select newid();
|
|
begin
|
|
delete from sys_module where gid='95B37951-AF9D-4335-8CBD-3CCA0C30DD63'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('95B37951-AF9D-4335-8CBD-3CCA0C30DD63', 'modXXH_RptFeeTotal_2', '应付实付列表',
|
|
'Import/RptFeeTotal_2', 'Module.gif',0,2, 'C7015B5E-B490-45E8-987B-0F0F22627155',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='97C0905A-2063-4A81-B98A-F945CE5D0917'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('97C0905A-2063-4A81-B98A-F945CE5D0917','modXXH_RptFeeTotal_2','应付实付列表',
|
|
'95B37951-AF9D-4335-8CBD-3CCA0C30DD63','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|
|
|
|
--select newid();
|
|
begin
|
|
delete from sys_module where gid='02903B8B-23EC-412B-B348-3604E0852393'
|
|
INSERT INTO [sys_module]([GID],[NAME],[DESCRIPTION], [MODULEURL],
|
|
[MODULEICON],[STATE],[SORT], [PARENTID],[CREATEUSER],[CREATETIME],[SHOWROOTSTATE],[TYPE])
|
|
VALUES('02903B8B-23EC-412B-B348-3604E0852393', 'modXXH_RptProfit', '利润报表',
|
|
'Import/RptProfit', 'Module.gif',0,2, 'C7015B5E-B490-45E8-987B-0F0F22627155',
|
|
'1BEC90E1-9780-472F-90C2-0C6390C044A4', getdate(),0,2)
|
|
---
|
|
delete from [action] where gid='DCAB37B1-1D4A-4E6B-8057-8748F5370195'
|
|
INSERT INTO [action]([GID],[NAME],[DESCRIPTION],[MODULEID],[CREATEUSER],[CREATETIME],[STATE],[SORT])
|
|
VALUES('DCAB37B1-1D4A-4E6B-8057-8748F5370195','modXXH_RptProfit','利润报表',
|
|
'02903B8B-23EC-412B-B348-3604E0852393','1BEC90E1-9780-472F-90C2-0C6390C044A4',getdate(),0,0)
|
|
end;
|
|
go
|