//通用弹出式文件上传 function commonUpload(callback){ $.dialog({ content: "url:systemController.do?commonUpload", lock : true, title:"文件上传", zIndex:2100, width:700, height: 200, parent:windowapi, cache:false, ok: function(){ var iframe = this.iframe.contentWindow; iframe.uploadCallback(callback); return true; }, cancelVal: '关闭', cancel: function(){ } }); } function browseImages(inputId, Img) {// 图片管理器,可多个上传共用 } function browseFiles(inputId, file) {// 文件管理器,可多个上传共用 } function decode(value, id) {//value传入值,id接受值 var last = value.lastIndexOf("/"); var filename = value.substring(last + 1, value.length); $("#" + id).text(decodeURIComponent(filename)); } //选择人员 function openUserSelect() { //$.dialog.setting.zIndex = getzIndex(); var height = document.body.clientHeight; var userIds = $("#leader").val(); /* var orgCode = $("#orgCode").val();*/ $.dialog({ content: 'url:publicpageController.do?userSelect&ids='+userIds, zIndex: getzIndex(), title: '人员列表', lock: true, width: '1000px', height: '600px', opacity: 0.4, button: [ {name: '确定', callback: function (){ var iframe = this.iframe.contentWindow; if(iframe.getReason().length>0){ var strData=eval(iframe.getReason()); for(var key in strData[0]){ if(key=="strId"){ $("#leader").val(strData[0][key]); }else if(key=="strName"){ $("#leadername").val(strData[0][key]); } } } }, focus: true}, {name: '取消', callback: function (){}} ]}).zindex(); } function callbackCleanUser(){ $('#leadername').val(''); $('#leader').val(''); }