|
版本: |
X5.2.6 |
小版本号: |
|
|
|
数据库: |
MS SQLServer |
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows 其它 |
浏览器: |
Chrome |
|
|
本帖最后由 lxl8611 于 2014-3-4 20:09 编辑
父窗口代码:- att_cancelleave.wdSearchBillsSend = function(event){
- return {
- "BillType" : MData.getValue("fSourceBizType"),
- "PersonID" : MData.getValue("fApplyPsnID")
-
- };
- };
复制代码 子窗口代码:- acceptParentParamsFun = "acceptData";
- function acceptData(data) {
- debugger;
- PersonID = data.PersonID;
- BillType=data.BillType;
- if (PersonID==null || PersonID==""){
- alert("获取人员ID失败,请刷新网页重新登录!!!");
- return;
- }
- if (BillType==null || BillType==""){
- alert("获取单据类型参数失败,请重试!!!");
- return;
- }
- strFilter=" OA_AttMaster.fBIZKIND='"+BillType+"' and OA_AttMaster.fApplyPsnID='"+PersonID+"'";
- var data = justep.xbl("dSearch");
- data.filters.setFilter("strFilter", strFilter);
- data.refreshData();
- }
复制代码 子窗口js引用:- <xui:resource id="resource1"><xhtml:script id="htmlScript1" src="searchBills.js"></xhtml:script>
- <xhtml:script id="htmlScript2" src="/UI/appCommon/js/appCommon.js"></xhtml:script>
- <xhtml:script id="htmlScript3" src="/UI/system/components/windowDialog/FrameWindow.js"></xhtml:script>
- <xhtml:script id="htmlScript6" src="/UI/system/components/windowDialog/windowDialogReceiver.js"></xhtml:script>
- <xhtml:script id="htmlScript4" src="/UI/system/components/dialog/dialog.js"></xhtml:script></xui:resource>
复制代码
子窗口打开的时候,过滤条件没有生效,调试发现acceptData(data)那段代码没有进去,不知道哪里出了问题,麻烦帮忙看一下。。 |
|