You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
3.6 KiB
120 lines
3.6 KiB
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>弹出框框架</title>
|
|
<%@include file="/wdk/theme/je/module/public/common.jsp"%>
|
|
<script type="text/javascript">
|
|
//获取url参数
|
|
|
|
var _wid = $.getURLParam('wid');
|
|
var _mid = $.getURLParam('mid');
|
|
var _menucode = $.getURLParam('menucode')?$.getURLParam('menucode'):'';
|
|
var tmid = $.getURLParam('tmid');
|
|
|
|
|
|
var sparam = $.getURLParam('param');
|
|
var strparam = $.urlparam_decode(sparam);
|
|
|
|
var jparam = {};
|
|
var strparam = '';
|
|
if(tmid){
|
|
var str = $.method_call(tmid);
|
|
strparam = $.urlparam_decode($.method_call(tmid));
|
|
jparam = $.str2json(strparam);
|
|
}else{
|
|
strparam = $.urlparam_decode($.getURLParam('param'));
|
|
jparam = $.str2json(strparam);
|
|
}
|
|
//alert($.json2str(_jparam));
|
|
|
|
/*
|
|
var jparam = $.str2json(strparam);
|
|
var urplaram = $.urlparam_encode(strparam);
|
|
*/
|
|
|
|
var real_url = jparam.url;
|
|
var _targeturl = real_url;
|
|
if(-1!=_targeturl.indexOf('?')){
|
|
_targeturl += '&wid='+_wid;//+'¶m='+urplaram;
|
|
}else{
|
|
_targeturl += '?wid='+_wid;//+'¶m='+urplaram;
|
|
}
|
|
|
|
window.onload = function(){
|
|
var mid_sub = $.method_reg(window,_submit);
|
|
var mid_clr = $.method_reg(window,_clear);
|
|
var mid_can = $.method_reg(window,_cancel);
|
|
|
|
_targeturl += '&mid_sub='+mid_sub;
|
|
_targeturl += '&mid_clr='+mid_clr;
|
|
_targeturl += '&mid_can='+mid_can;
|
|
|
|
// alert('size='+_targeturl.length+' _targeturl='+_targeturl);
|
|
|
|
var _url = _targeturl.substring(0,_targeturl.indexOf('?'));
|
|
var _urlid = $.getUUID();
|
|
var _paramstr = _targeturl.substring(_targeturl.indexOf('?'),_targeturl.length);
|
|
var _pobj = new Object();
|
|
var arr = _paramstr.split("&");
|
|
for(var i=0;i<arr.length;i++){
|
|
var str = arr[i];
|
|
var parr = str.split('=');
|
|
if(parr.length==2){
|
|
_pobj[parr[0]]=parr[1];
|
|
}
|
|
}
|
|
$.getRoot()._INPUTPOP[_urlid] = _pobj;
|
|
if(-1==_url.indexOf('?')){
|
|
_url += '?ipturlid='+_urlid+'&menucode='+_menucode;
|
|
}else{
|
|
_url += '&ipturlid='+_urlid+'&menucode='+_menucode;
|
|
}
|
|
|
|
if(tmid){
|
|
_url += "&tmid="+tmid;
|
|
}else{
|
|
_url += '¶m='+$.urlparam_encode(strparam);
|
|
}
|
|
|
|
$('#layout_center').html('<iframe id="ifr_page" name="ifr_page" src="'+_url+'" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" ></iframe>');
|
|
};
|
|
|
|
//点击提交
|
|
function _submit(){
|
|
var jres = document.getElementById('ifr_page').contentWindow.inputpop_getValue();
|
|
if (jres){
|
|
for(var att in jres){
|
|
jparam[att] = jres[att];
|
|
}
|
|
$.method_call(_mid,jparam);
|
|
$.closeWin(_wid);
|
|
}else{
|
|
//alert("请选择数据");
|
|
}
|
|
}
|
|
//清除
|
|
function _clear(){
|
|
jparam.value_id = '';
|
|
jparam.value_text = '';
|
|
jparam.value_value = '';
|
|
jparam.value_rows = [];
|
|
$.method_call(_mid,jparam);
|
|
$.closeWin(_wid);
|
|
}
|
|
function _cancel(){
|
|
$.closeWin(_wid);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="easyui-layout" data-options="fit:true" style="padding:0px;margin:0px;background-color:#FFFFFF;">
|
|
<div id="layout_center" data-options="region:'center'" style="padding:0px;overflow:hidden;">
|
|
|
|
</div>
|
|
<div data-options="region:'south',border:false" style="height:40px;text-align:right;padding:5px 0 0;">
|
|
<a id="_btnsubmit" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="_submit()">确定</a>
|
|
<a id="_btnsubmit" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="_clear()">清除</a>
|
|
<a id="_btncancel" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="_cancel()">关闭</a>
|
|
</div>
|
|
</body>
|
|
</html>
|