Index: ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsTemplateApplicationView.js =================================================================== diff -u -r15924 -r15948 --- ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsTemplateApplicationView.js (.../goodsTemplateApplicationView.js) (revision 15924) +++ ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsTemplateApplicationView.js (.../goodsTemplateApplicationView.js) (revision 15948) @@ -26,12 +26,13 @@ if (sstsConfig.invoicePlanPrintButtonName != undefined){ invoicePlanPrintButtonName = sstsConfig.invoicePlanPrintButtonName; } +//判断是否ie和ie7 +var isIE6OrIE7 = top.Ext4.isIE6 || top.Ext4.isIE7; // 遮罩层对象 var objMask = { 'printMask' : null, 'loadMask' : null } -// top.printMask = null; /** * 打开对应的表单 * @param form 对应的表单 @@ -279,7 +280,7 @@ //Ext4 申请科室Store var appDepartJsonStore = new Ext4.data.Store({ //limit参数,每页显示条数,默认为25 - pageSize: 15, + pageSize: isIE6OrIE7 ? 15 : 50, autoLoad:false, proxy : { type : 'ajax', @@ -369,12 +370,12 @@ //物品选择下拉框数据源 var comboGoodsStore = new Ext4.data.JsonStore({ - pageSize:100, + pageSize: isIE6OrIE7 ? 30 : 100, proxy : goodProxy, fields : goodModel, listeners:{ beforeload : function(){ - if (!top.Ext4.isIE6 && !top.Ext4.isIE7){ + if (!isIE6OrIE7){ createExt4Mask.call(objMask,'loadMask','数据处理中,请稍候......',applicationWindow); objMask.loadMask.show(); } @@ -383,7 +384,7 @@ } }, load : function(){ - if (!top.Ext4.isIE6 && !top.Ext4.isIE7){ + if (!isIE6OrIE7){ if(objMask.loadMask){ // loadMask.hide(); objMask.loadMask.destroy(); @@ -399,29 +400,6 @@ }); - -//全部物品选择下拉框数据源,只在申请窗口弹出的时候加载一次,用于缓存所有数据,物品绑定的数据从这里读取 -var allGoodsComboStore = new Ext4.data.JsonStore({ - proxy : goodProxy, - fields : goodModel, - listeners:{ - beforeload : function(){ - //在加载前设定参数,limit要设置成空,这样才会加载到所有的数据 - allGoodsComboStore.proxy.extraParams.cssdOrgUnitCode = ""; - allGoodsComboStore.proxy.extraParams.spell = ""; - allGoodsComboStore.proxy.extraParams.limit = ""; - //暂时只绑定一次性物品,所以type用一次性物品 - allGoodsComboStore.proxy.extraParams.tousseType = "一次性物品"; - }, - load : function () { - // console.log(allGoodsComboStore.getCount()); - } - } -}); - - - - var tousseAndDiposableGoodsStore = new Ext.data.Store({ proxy : new Ext.data.HttpProxy({ url : WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!searchInsideTousseData.do', @@ -2665,9 +2643,6 @@ ] }); - if (Ext4.isEmpty(applicationWindow)){ - allGoodsComboStore.reload(); - } applicationWindow = new top.Ext4.window.Window({ @@ -2687,7 +2662,7 @@ // loadMask = new Ext4.LoadMask({msg:'数据处理中,请稍候......',target:applicationWindow}); - if (!top.Ext4.isIE6 && !top.Ext4.isIE7){ + if (!isIE6OrIE7){ createExt4Mask.call(objMask,'loadMask','数据处理中,请稍候......',applicationWindow); } else{ @@ -3249,7 +3224,7 @@ // }); var mask; - if (!top.Ext4.isIE6 && !top.Ext4.isIE7){ + if (!isIE6OrIE7){ createMask.call(objMask,'printMask','正在处理批量打印请求,请稍候...',Ext.getBody(),true); objMask.printMask.show(); } @@ -3261,7 +3236,7 @@ RecyclingApplicationTableManager.findPrintRecyclingGoods(JSON.stringify(printParams) , function(result){ var obj = JSON.parse(result); - if (!top.Ext4.isIE6 && !top.Ext4.isIE7){ + if (!isIE6OrIE7){ objMask.printMask.hide(); } else {