2018-06-03 22:26:41 +08:00

103 lines
3.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBeginMD.jsp"%><%
String sSelName = CurPage.getParameter("SelName");
String sParaString = CurPage.getParameter("ParaString");
if(sParaString == null) sParaString = "";
String sSelDescribe = null, sSelBrowseMode = null, sAttribute4 = null;
String sSql = "select SelDescribe, SelBrowseMode,Attribute4 from O where SelName = :SelName";
BizObject bo = JBOFactory.createBizObjectQuery("jbo.sys.SELECT_CATALOG", sSql).setParameter("SelName", sSelName).getSingleResult(false);
if(bo != null){
sSelDescribe = bo.getAttribute("SelDescribe").getString();
sSelBrowseMode = bo.getAttribute("SelBrowseMode").getString();
sAttribute4 = bo.getAttribute("Attribute4").getString();
}
if(sSelDescribe == null) sSelDescribe = "请选择所需信息";
if(sSelBrowseMode == null) sSelBrowseMode = "";
if(sAttribute4 == null) sAttribute4 = "";
%>
<html>
<head>
<!-- 为了页面美观,请不要删除下面 TITLE 中的空格 -->
<title><%=sSelDescribe%>
                                                     
                                                     
</title>
</head>
<body class="pagebackground" style="overflow: auto;overflow-x:visible;overflow-y:visible">
<table width="100%" border='0' height="100%" cellspacing='0' align=center bordercolor='#999999' bordercolordark='#FFFFFF'>
<form name="buff" align=center>
<%if(sSelBrowseMode.equals("")){%>
<tr>
<td id="selectPage" valign=top>
<p>没有定义对象选择窗口。请在"对象类型选择设置"模块定义 SelBrowseMode 属性。</p>
</td>
</tr>
<%}else{
if(sAttribute4.equals("1")){ //需要根据检索条件进行查询,则进行提示。
%>
<tr style='width:100%; height:1px'>
<td><font style=' font-size: 9pt;FONT-FAMILY:宋体;color:red;'>请输入相应的查询条件,点击“查询”按钮获得查询结果!</font></td>
</tr>
<%}%>
<tr>
<td id="selectPage">
<iframe name="ObjectList" width=100% height=100% frameborder=0 scrolling=no src="<%=sWebRootPath%>/Blank.jsp"></iframe>
</td>
</tr>
<%}%>
<tr style="height:40px;">
<td nowarp bgcolor="#e8e8e8" height="35" align=center valign="middle" colspan="2" style="border-top:1px solid #d8d8d8">
<%=new Button("确认", "", "returnSelection()").getHtmlText()%>
<%-- <%=new Button("清空", "", "clearAll()").getHtmlText()%> --%>
<%=new Button("取消", "", "doCancel()").getHtmlText()%>
</td>
</tr>
</form>
</table>
</body>
</html>
<script type="text/javascript">
var sObjectInfo = "";
function returnSelection(){
frames["ObjectList"].returnValue();
if(sObjectInfo == ""){
/* if(confirm("您尚未进行选择,确认要返回吗?")){
sObjectInfo = "_NONE_";
}else{
return;
} */
alert("您尚未进行选择,请选择一行数据!");
return;
}
parent.AsDialog.ClosePage(sObjectInfo);
}
function clearAll(){
parent.AsDialog.ClosePage("_CLEAR_");
}
function doCancel(){
parent.AsDialog.ClosePage("_CANCEL_");
}
/*~[Describe=支持ESC关闭页面;InputParam=无;OutPutParam=无;]~*/
document.onkeydown = function(e){
e = e || window.event;
if(e.keyCode==27){
doCancel();
}
};
<%
if(sSelBrowseMode!=null && !sSelBrowseMode.equals("")){
if(sSelBrowseMode.equals("Grid") || sSelBrowseMode.equals("TreeView")){
%>
AsControl.OpenComp("/Frame/page/tools/dialog/SelectCatalog<%=sSelBrowseMode%>.jsp","SelName=<%=sSelName%>&ParaString=<%=sParaString%>","ObjectList","");
<%
}
}
%>
</script>
<%@ include file="/IncludeEnd.jsp"%>