修改【附件管理】中【文件名】的列宽如何操作?
问题描述:
修改【附件管理】中【文件名】的列宽如何操作?
解决方案:
【概述】【附件管理】列表上的过滤方案存储在【T_BAS_FILTERSCHEME】这个表中,可在数据库中找到对应的XML信息进行修改即可。
【操作步骤】
1、首先,我们需要找到业务对象的【唯一标识】,这个可以在BOS中找到。如下图:
2、找到【唯一标识】后,我们就可以去数据库中执行以下语句查到对应的XML。
SELECT *
FROM T_BAS_FILTERSCHEME t
WHERE FFORMID = 'BOS_Attachment'
上图红框中的信息就是它对应的XML。点击蓝字就会打开这段XML。如下图所示,
3、我们把上述那段XML信息复制出来,替换掉以下语句的【XML信息】,
UPDATE t SET t.FSCHEME ='XML信息'
FROM T_BAS_FILTERSCHEME t
WHERE FFORMID = 'BOS_Attachment'
然后修改语句中XML信息里的宽度(根据自身的需求修改即可。标准的为100,上述显示的300为修改后的值),完整的语句如下:
UPDATE t SET t.FSCHEME =
'<ListFilterSchemeEntity>
<SelectEntitySetting>,FBillHead,</SelectEntitySetting>
<IsolationOrgListSetting>11001</IsolationOrgListSetting>
<QuickFilterSetting />
<SortSetting />
<BatchFilterSetting action="setnull" />
<ColumnSetting>[{"F":"FAttachmentName","I":1,"W":300},{"F":"FaliasFileName","I":2,"W":100},{"F":"FExtName","I":3,"W":100},{"F":"FAttachmentSize","I":4,"W":100},{"F":"FAttachmentDes","I":5,"W":100},{"F":"FCreateMen_FName","I":6,"W":100},{"F":"FCreateTime","I":7,"W":100},{"F":"FModifyMen_FName","I":8,"W":100},{"F":"FModifyTime","I":9,"W":100},{"F":"FAuditMen_FName","I":10,"W":100},{"F":"FAuditTime","I":11,"W":100},{"F":"FNUMBER","I":9999,"W":100},{"F":"FID","I":9999,"W":5},{"F":"FIDENTITYID","I":9999,"W":5}]</ColumnSetting>
<CustomFilterSetting><?xml version="1.0" encoding="utf-16"?>
<ORMBOS_OrgIs>
<MaxRowCount>2000</MaxRowCount>
</ORMBOS_OrgIs></CustomFilterSetting>
</ListFilterSchemeEntity>'
FROM T_BAS_FILTERSCHEME t
WHERE FFORMID = 'BOS_Attachment'
4、然后回前端再次打开【附件】,则发现【附件管理】中的【文件名】列宽变宽了。效果如下图所示:
【说明】上述方法就完成了【附件管理】中【文件名】列宽的修改。
建议,修改前可以对数据库中这行XML做个备份,万一手抖改错了呢罒ω罒还可以恢复回去。备份语句如下:
SELECT *
INTO t_bas_filterscheme_bak_r_2019051001 --备份原设置
FROM T_BAS_FILTERSCHEME
WHERE FFORMID = 'BOS_Attachment'
修改【附件管理】中【文件名】的列宽如何操作?
本文2024-09-23 04:21:50发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-164827.html