用友U9UBF刷枚举

/*
    @Author:Renxy
    @Date:2012/11/09
    @Discription:终极版刷新全部枚举
*/


delete from  ubf_sys_extenumtype
delete from ubf_sys_extenumtype_trl
delete from ubf_sys_extenumvalue
delete from ubf_sys_extenumvalue_trl
GO

insert into ubf_sys_extenumtype select local_id as id,'20121109','Renxy','20121109','Renxy',0,fullname as code,isextend,id as uid,0 as IsRefView from ubf_md_class where classtype=3
insert into ubf_sys_extenumtype_trl select a.local_id as id,'zh-CN',b.[displayname] as [name],b.[Description] from ubf_md_class  a left join ubf_RES_resourcevalue b on cast(a.[iD] as nvarchar(255)) = b.resourcename  where classtype=3
insert into ubf_sys_extenumvalue select a.local_id as id,'20121109','Renxy','20121109','Renxy',0,a.[Local_Class_ID] as ExtEnumType ,a.[name] as code,a.defaultvalue as evalue,issystem,md_class_id as ExtEnumTypeUID from ubf_md_attribute as a inner join ubf_md_class as b on a.md_class_id=b.id where classtype=3
insert into ubf_sys_extenumvalue_trl select a.local_id as id,'zh-CN',c.[displayname] as [name] from ubf_md_attribute as a inner join ubf_md_class as b on a.md_class_id=b.id left join ubf_RES_resourcevalue c on cast(a.[ID] as nvarchar(255)) = c.resourcename where classtype=3
GO
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值