回复 2# nice
是sp10的
在视图里的推荐行程里面,谢了如下代码
var journey = getItemValueAsString("journey");
var testid = getItemValueAsString("testid");
var docid = getCurrentDocument().getId();
testid = docid + docid;
var params = "&journey="+journey+"&testid="+testid;
var url = "";
try{
var sql = "select * from tlk_fm_cityrecommendjourney where item_testid = '"+testid+"'";
var datas = queryByDSName(datasourceName,sql);
if(datas !=null && datas.size() > 0){
for(var iterator = datas.iterator();iterator.hasNext();){
var map = iterator.next();
var formid = map.get("formid");
var id = map.get("id");
url = getContextPath()+"/portal/dynaform/document/view.action?_docid="+id+"&_formid="+formid+"&signatureExist=false&_viewid=11e4-26b3-70e1dfaa-b79b-a933a0b4bd3d&parentid=&_selectsText=®isteruser1=&company1=&application=11e3-fcee-a10f0972-a22d-c55f1ce255b5&openType=277";
}
}else{
url = getContextPath()+"/portal/dynaform/activity/action.action?_activityid=11e4-5e64-c0806d79-a3e3-5907328ac047&_viewid=11e4-5e64-c0806d66-a3e3-5907328ac047&parentid=&_selectsText=&application=11e3-fcee-a10f0972-a22d-c55f1ce255b5&openType=277"+params;
}
}catch(e){}
var titletext = "";
var buttontext = "查看";
var width = "1157";
var height = "611";
var rtn = "<a href='#' onclick='OBPM.dialog.show({width:"+width+",height: "+height +",url:\""+url+"\",args:{j:1},title : \""+titletext+"\",close: function(rtn) {clearInterval(it);}});'>查看</a>";
//var rtn = "<a href='#' onclick='OBPM.dialog.show({opener:window.parent,width:"+width+",height: "+height +",url:\""+url+"\",args:{j:1},title : \""+titletext+"\",close: function(rtn) {clearInterval(it);}});'>查看</a>";
rtn;
加了“opener:window.parent”的,效果图如下
缩在里面了 |