摘要: 1 var array = new Array(); 2 array.push(0); 3 array.push(1); 4 array.push(2); 5 var arr = array.filter(function(value,index,self){ 6 //value是值,index是该值的索引 7 if(value>0){ 8 ret... 阅读全文
posted @ 2016-10-27 20:51 suruozhong 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 添加自定义列,配置控制自定义F7 自定义F7的地址为连接界面的url 自定义F7添加一个释放按键事件(模糊搜索) 接收输入的文本模糊搜索并打开F7界面 添加一个模型加载功能,接收输入的文本返回前台过滤 F7界面加一个页面加载事件(接收输入的文本并搜索) F7界面加一个行点击后事件(选中行之后返回选中 阅读全文
posted @ 2016-10-27 19:43 suruozhong 阅读(763) 评论(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 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1 //更改列编辑器 2 waf("#editGrid").wafGrid("setColumnConfig", "settlementType", 3 { 4 edittype:"f7", 5 editoptions:{ 6 ... 阅读全文
posted @ 2016-10-25 15:03 suruozhong 阅读(660) 评论(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 阅读(568) 评论(0) 推荐(0) 编辑
摘要: //动态给F7加过滤 waf("#costSubject").wafPromptStandard("option", "filteritem", "states in (1,2)"); //分录F7加过滤 waf("#editGrid").wafGrid("getColumnConfig", "detailProject"); waf("#editGrid").wafGrid("setCel... 阅读全文
posted @ 2016-10-18 20:18 suruozhong 阅读(425) 评论(1) 推荐(0) 编辑
摘要: 1 function initBuildingEntryF7(sellId){ 2 var comId = "buildingEntry"; 3 var filter = ""; 4 if(sellId!=null){ 5 filter = "sellproject.id = ... 阅读全文
posted @ 2016-10-18 20:16 suruozhong 阅读(456) 评论(0) 推荐(0) 编辑
摘要: reCarryoverFunction:function(event,value){ waf.msgBox.showConfirm({ summaryMsg:"是否反结转", buttons:[ {text:"是" ,click: function(){ waf.doPost({ action:"r 阅读全文
posted @ 2016-10-18 20:12 suruozhong 阅读(499) 评论(0) 推荐(0) 编辑
摘要: waf("#Gird").dataGrid("reloadGrid") //重新发请求去装载数据 waf("#Grid").wafGrid("reloadGrid") //不会重新发请求,会重刷新 waf("#Grid").wafGrid("delRow",id) //删除一行 waf("#grid").wafGrid("getAllRowData") // 获取所有行数... 阅读全文
posted @ 2016-10-18 20:05 suruozhong 阅读(951) 评论(0) 推荐(0) 编辑
摘要: var str = window.location.search.substr(1); var arr = new Array(); arr = str.split("&"); if(arr.length!=0){ for(var i=0; i-1){ var pagetype = arr[i].substring(9); if(pagetype!=null && pagetyp... 阅读全文
posted @ 2016-10-18 19:54 suruozhong 阅读(368) 评论(0) 推荐(0) 编辑