K3修改字段名
在K3的BOS中,自定义字段之后我们往往会修改字段名,便于记忆和理解,但是修改字段名之后,只是数据库中的字段名被修改了,BOS中的字段标识并没有被修改,可以通过以下语句将标识和字段名改成一致。
select * from icclasstableinfo where fkey <> ffieldname and fclasstypeid >= 200000000
and ffieldname not in ('fentryid','fid','findex','fname','fnumber')
and fkey not like 'FBaseProperty%'
update icclasstableinfo set fkey = ffieldname, FDescription = '1' where fkey <> ffieldname and fclasstypeid >= 200000000
and ffieldname not in ('fentryid','fid','findex','fname','fnumber')
and fkey not like 'FBaseProperty%'
update icclasstableinfo set fkey = ffieldname where fkey <> ffieldname and fclasstypeid >= 200000000
and ffieldname not in ('fentryid','fid','findex','fname')
and fkey not like 'FBaseProperty%'
update ICClassTableInfo set FFont = 'FontName=微软雅黑|FontSize=11|FontBold=False|FontItalic=False|'
where FClassTypeID >= 200000000