EAS学习 DEP例子3 单据页面校验附件是否为空

栏目:eas cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

EAS学习 DEP例子3 单据页面校验附件是否为空

![image20210506171008521.webp](/download/01000d68cfebf2b84a5bad10de032620e2f1.webp) ```language //提交前置脚本 //校验附件是否为空 //当前页面的fid var id = pluginCtx.getDataObject().getId(); var sql1 = "select fid from T_BAS_BoAttchAsso where fboid = '"+id+"'"; //获取数据库工具接口 var fMIsqlFacade1 =com.kingdee.eas.fm.common.FMIsqlFacadeFactory.getRemoteInstance(); var rs1 = fMIsqlFacade1.executeQuery(sql1.toString(),null); var file = ""; if( rs1 != null && rs1.next()){ file =rs1.getString(1); } if(file == ""){ com.kingdee.eas.util.client.MsgBox.showInfo("附件为空,请先维护附件再提交!"); com.kingdee.eas.util.SysUtil.abort(); } ```

EAS学习 DEP例子3 单据页面校验附件是否为空

![image20210506171008521.webp](/download/01000d68cfebf2b84a5bad10de032620e2f1.webp)```language//提交前置脚本//校验附件是否为空//当...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息