技术答疑.附件.附件上传后附件管理界面无法显示附件?
【问题描述】
通过WebApi上传了附件,绑定了单据。登录前台站点,进入该单据的附件管理界面,看不到已上传的附件。
【原因分析】
附件上传的数据不严谨,导致附件管理界面无法正常显示。
例如:如果是单据头附件,那么上传数据包中的EntryinterId要么不要传,要么要写死-1,否则,即使上传成功了,附件管理界面也无法显示。
【排查办法】
附件分为单据头附件和单据体附件,下面以采购订单为例,分别说明。
<1>单据头附件
一般从列表主菜单或者单据界面的主菜单进入。
附件列表过滤条件:
SELECT * FROM ( SELECT t0.FATTACHMENTNAME AS FATTACHMENTNAME , t0.FALIASFILENAME AS FALIASFILENAME , t0.FISALLOWDOWNLOAD AS FISALLOWDOWNLOAD , t0.FEXTNAME AS FEXTNAME , t0.FFILESTORAGE AS FFILESTORAGE , t0.FATTACHMENTSIZE AS FATTACHMENTSIZE , t0_L.FATTACHMENTDES AS FATTACHMENTDES , t0.FCREATEMEN AS FCreateMen_Id , t0.FCREATETIME AS FCREATETIME , t0.FMODIFYMEN AS FModifyMen_Id , t0.FMODIFYTIME AS FMODIFYTIME , t0.FID AS FID , ROW_NUMBER() OVER ( ORDER BY t0.FID ) fidentityid FROM T_BAS_ATTACHMENT t0 LEFT JOIN T_BAS_ATTACHMENT_L t0_L ON ( t0.FID = t0_L.FID AND t0_L.FLOCALEID = 2052 ) WHERE ( (( ( t0.FBILLTYPE = 'PUR_PurchaseOrder' AND t0.FINTERID = '101791' ) AND t0.FENTRYKEY = ' ' ) AND t0. FENTRYINTERID = '-1' ) ) ) TLIST;
<2>单据体附件
一般从单据界面上的单据体的菜单进入。
附件列表过滤条件:
SELECT * FROM ( SELECT t0.FATTACHMENTNAME AS FATTACHMENTNAME , t0.FALIASFILENAME AS FALIASFILENAME , t0.FISALLOWDOWNLOAD AS FISALLOWDOWNLOAD , t0.FEXTNAME AS FEXTNAME , t0.FFILESTORAGE AS FFILESTORAGE , t0.FATTACHMENTSIZE AS FATTACHMENTSIZE , t0_L.FATTACHMENTDES AS FATTACHMENTDES , t0.FCREATEMEN AS FCreateMen_Id , t0.FCREATETIME AS FCREATETIME , t0.FMODIFYMEN AS FModifyMen_Id , t0.FMODIFYTIME AS FMODIFYTIME , t0.FID AS FID , ROW_NUMBER() OVER ( ORDER BY t0.FID ) fidentityid FROM T_BAS_ATTACHMENT t0 LEFT JOIN T_BAS_ATTACHMENT_L t0_L ON ( t0.FID = t0_L.FID AND t0_L.FLOCALEID = 2052 ) WHERE ( (( ( t0.FBILLTYPE = 'PUR_PurchaseOrder' AND t0.FINTERID = '101791' ) AND t0.FENTRYKEY = 'FPOOrderEntry' ) AND t0.FENTRYINTERID = '102799') ) ) TLIST;
如果附件上传成功后,前台附件列表界面无法显示,即可通过此过滤条件,对附件表的数据进行分析,进一步排查异常原因。
---------------------------------------------------------------------------------------------------------
【金蝶云星空BOS二次开发案例演示】https://vip.kingdee.com/article/94751030918525696
技术答疑.附件.附件上传后附件管理界面无法显示附件?
【问题描述】通过WebApi上传了附件,绑定了单据。登录前台站点,进入该单据的附件管理界面,看不到已上传的附件。【原因分析】附件上传的数...
点击下载文档
上一篇:二开案例.菜单.菜单应用下一篇:技术答疑.常用SQL.弹性域.仓位
本文2024-09-23 04:18:12发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-164437.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章