随笔分类 -  WAF2

摘要:1,实现以下两个接口, (1)IDAPTransformAdapter和IPCATransformAdapter, (2)前台注册dapadaptor, (3)查询表格的每一行数据必须有company.id的值 前台页面加载后注册这两个类 2,代码弹出凭证多规则选择界面(或者直接按钮绑定生成凭证功能 阅读全文
posted @ 2016-10-31 20:01 suruozhong 阅读(619) 评论(0) 推荐(0) 编辑
摘要:功能名称:modelCreateAction 切入类型:after 事件名称:com.kingdee.bos.eventbus.event.model.ModelCreateEvent 阅读全文
posted @ 2016-10-31 19:49 suruozhong 阅读(811) 评论(0) 推荐(0) 编辑
摘要:1 _saveActionEventHandler:function(event,value){ 2 if (!_self.fireEvent("saveBefore")) return; 3 var option = _self.getOptionFromArguments(arguments); 4 _self.... 阅读全文
posted @ 2016-10-31 19:45 suruozhong 阅读(1194) 评论(0) 推荐(0) 编辑
摘要:1,隐藏某列之后,获取该列的值为空,将绑定属性加到其它未隐藏字段的关联query字段,以逗号隔开 2,当使用到标准产品功能,选中某一行,提示未选中,需要用默认的表格名称queryGrid 例:生成凭证选中行提示未选中,要使用默认id(queryGrid) 阅读全文
posted @ 2016-10-31 19:39 suruozhong 阅读(235) 评论(0) 推荐(0) 编辑
摘要:1、web server端获取上下文:Context ctx = WafContext.getInstance().getContext();上下文中包含当前登录组织、当前登录用户、语种、数据库、客户端地址等信息 2、web 浏览器端获取上下文:var ctx =waf.getContext(); 阅读全文
posted @ 2016-10-31 19:33 suruozhong 阅读(857) 评论(0) 推荐(0) 编辑
摘要:1 waf("分录id").wafGrid("setCellEditorAllConfig", "字段名", "filteritem", "过滤条件", 2 "wafPromptStandard", null); 3 或 4 waf("分录id").wafGrid("getColumnConfig", "city").editoptions.subTagJson.filteritem... 阅读全文
posted @ 2016-10-31 18:59 suruozhong 阅读(964) 评论(0) 推荐(0) 编辑
摘要:1//通用查询的快速查询增加字段模糊搜索过滤 2 pageOnRenderEvent_before:function(e){ 3 _self.setInitComponentCallBack(function(cmpType,option,dom){ 4 if (cmpType=="waf.bizCommonQue... 阅读全文
posted @ 2016-10-29 15:56 suruozhong 阅读(1209) 评论(0) 推荐(0) 编辑
摘要:_self.fireEvent('refresh'); 阅读全文
posted @ 2016-10-27 22:03 suruozhong 阅读(230) 评论(0) 推荐(0) 编辑
摘要:1,方法名:exportToExcel 2,参数: isAll(是否导出全部数据),true(导出全部数据),false(导出当前页数据) datas(自定义导出数据) title(文件标题) expColumns(自定义导出列集合,字符串逗号隔开) options(其它属性) 例:导出全部编码名称 阅读全文
posted @ 2016-10-27 22:00 suruozhong 阅读(264) 评论(0) 推荐(0) 编辑
摘要:1 printEvent:function(e){ 2 var layoutCol3 = document.getElementById("layoutCol3"); 3 var oPop = window.open('','oPop'); 4 var str = '' 5 ... 阅读全文
posted @ 2016-10-27 21:51 suruozhong 阅读(206) 评论(0) 推荐(0) 编辑
摘要:1 //文件路径 /easweb/runtime/server/deploy/portal.ear/portal.war/WEB-INF/config/spring/applicationContext-datasource.xml 2 3 //替换为dataCenter中数据库中心代码 4 5 6 7 8 9 10 11 ... 阅读全文
posted @ 2016-10-27 21:47 suruozhong 阅读(480) 评论(0) 推荐(0) 编辑
摘要:1,只用一个handler类,所有都事件的处理器都在一个handler类 handler要创建以Action为名称的方法 event要单独分开,继承KDEvent 2, event和handler单独创建 event继承KDActionEvent 不需要写任何代码 handler继承Abstract 阅读全文
posted @ 2016-10-27 21:45 suruozhong 阅读(577) 评论(0) 推荐(0) 编辑
摘要:1 //列格式化 2 waf.defineCustomeClass("cellformatter.ratioFomatter", cellformatter.defaultFormatter, { 3 format: function(cellval, rwd){ 4 //alert(rwd['signPayListEntry.appAmount']); 5 if (rwd['name... 阅读全文
posted @ 2016-10-27 21:35 suruozhong 阅读(508) 评论(0) 推荐(0) 编辑
摘要:功能名称:listDataAction 切入类型:before 事件名称:com.kingdee.bos.webframework.dynamic.event.view.WebListDataEvent; 阅读全文
posted @ 2016-10-27 21:29 suruozhong 阅读(428) 评论(0) 推荐(0) 编辑
摘要:功能名称:initializeAction 切入类型:after 事件名称:com.kingdee.bos.webframework.dynamic.handler.view.WebPageOnLoadEventHandler; 前台js取值 _self._pageInitData.sellProj 阅读全文
posted @ 2016-10-27 21:24 suruozhong 阅读(581) 评论(0) 推荐(0) 编辑
摘要:1,查询表格(queryGrid),编辑表格(editGrid) wafGrid 2,快速F7 wafPromptQuick 3,表格F7 wafPromptGrid 4,自定义F7 wafPromptIframe 5,树形F7 wafPromptTree 6,数据表格 wafPromptTable 阅读全文
posted @ 2016-10-27 21:15 suruozhong 阅读(905) 评论(1) 推荐(1) 编辑
摘要:添加自定义列,配置控制自定义F7 自定义F7的地址为连接界面的url 自定义F7添加一个释放按键事件(模糊搜索) 接收输入的文本模糊搜索并打开F7界面 添加一个模型加载功能,接收输入的文本返回前台过滤 F7界面加一个页面加载事件(接收输入的文本并搜索) F7界面加一个行点击后事件(选中行之后返回选中 阅读全文
posted @ 2016-10-27 19:43 suruozhong 阅读(769) 评论(0) 推荐(0) 编辑
摘要:1 //获取凭证规则,如果BOTMappingInfo为空,没有配置规则 2 IBOTMapping botMapping = BOTMappingFactory.getLocalInstance(ctx); 3 BOTMappingInfo botMappingInfo = botMapping.getMapping(reInfo, new VoucherInfo().getBOSType()... 阅读全文
posted @ 2016-10-27 10:53 suruozhong 阅读(302) 评论(0) 推荐(0) 编辑
摘要:1 //更改列编辑器 2 waf("#editGrid").wafGrid("setColumnConfig", "settlementType", 3 { 4 edittype:"f7", 5 editoptions:{ 6 ... 阅读全文
posted @ 2016-10-25 15:03 suruozhong 阅读(662) 评论(0) 推荐(0) 编辑
摘要:1 //当前界面打开一个界面 2 waf.window.open({ 3 //该界面的url 4 url:waf.getContextPath()+"/dynamicPage.do?moneyDefineid="+encodeURIComponent(moneyDefine)+"&buildingid="+encodeURIComponen... 阅读全文
posted @ 2016-10-21 09:46 suruozhong 阅读(581) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示