63 lines
6.0 KiB
MySQL
63 lines
6.0 KiB
MySQL
|
|
alter table jcl_org_custom_template add overall int
|
|||
|
|
GO
|
|||
|
|
|
|||
|
|
delete from HtmlLabelIndex where id = 547857 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 547857,'<EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>ɲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 547857 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547857 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547857 as indexid ,'<EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>ɲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547857 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547857 and languageid=8 and ( labelname is null or labelname = '' or labelname like '%[߹-<2D><>]%' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547857 as indexid ,'The content of this Templates field can only be operation by the administrator, and will return to the default Settings value' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547857 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547857 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547857 as indexid ,'ԓģ<EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><EFBFBD>݃H<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>T<EFBFBD>ɲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĭ<EFBFBD>J<EFBFBD>O<EFBFBD><EFBFBD>ֵ' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547857 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 547857 and moduleCode = 'HRM' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',547857)
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelIndex where id = 547854 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 547854,'Ĭ<EFBFBD><EFBFBD>ģ<EFBFBD>岻<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD>,<2C><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 547854 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547854 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547854 as indexid ,'Ĭ<EFBFBD><EFBFBD>ģ<EFBFBD>岻<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD>,<2C><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3>' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547854 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547854 and languageid=8 and ( labelname is null or labelname = '' or labelname like '%[߹-<2D><>]%' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547854 as indexid ,'The default Templates cannot be Applications. Please select another Templates' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547854 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547854 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547854 as indexid ,'Ĭ<EFBFBD>Jģ<EFBFBD>岻<EFBFBD>ɑ<EFBFBD><EFBFBD><EFBFBD>,Ո<>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3>' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547854 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 547854 and moduleCode = 'HRM' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',547854)
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelIndex where id = 547853 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 547853,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰģ<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 547853 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547853 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547853 as indexid ,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰģ<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547853 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547853 and languageid=8 and ( labelname is null or labelname = '' or labelname like '%[߹-<2D><>]%' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547853 as indexid ,'Applications the current Templates to everyone' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547853 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547853 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547853 as indexid ,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰģ<EFBFBD>呪<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547853 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 547853 and moduleCode = 'HRM' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',547853)
|
|||
|
|
GO
|