apzl_leasing/WebContent/FormatDoc/InvestigateView.jsp
2018-06-03 22:26:41 +08:00

63 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. 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"%><%
/*
Author: xdhou 2005.02.18
Content: 尽职调查报告主界面
Input Param:
DocID: formatdoc_catalog中的文档类别调查报告贷后检查报告...)
ObjectNo业务流水号
*/
String PG_TITLE = "尽职调查报告管理"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "&nbsp;&nbsp;详细信息&nbsp;&nbsp;"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "260";//默认的treeview宽度
//获得组件参数
String sObjectNo = CurPage.getParameter("ObjectNo");
String sObjectType = CurPage.getParameter("ObjectType");
String sDocID = CurPage.getParameter("DocID");
String sCustomerID = CurPage.getParameter("CustomerID");
//生成treeview...root
String sSql1 = "";
ASResultSet rsData = null;
//取得该笔申请的客户名称
String sRootCaption = NameManager.getCustomerName(sObjectNo);
//定义Treeview
String sTitle = "尽职调查报告("+sRootCaption+")";
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, sTitle,"right");
//定义树图结构
@SuppressWarnings("unchecked")
List<BizObject> bos = JBOFactory.createBizObjectQuery("jbo.formatdoc.FORMATDOC_DATA", "select * from O where ObjectType = :ObjectType and ObjectNo = :ObjectNo and DocID = :DocID Order By TreeNo").setParameter("ObjectNo", sObjectNo).setParameter("ObjectType", sObjectType).setParameter("DocID", sDocID).getResultList(false);
tviTemp.init(bos, "TreeNo","DirName","SerialNo","",""); //TreeNo
//参数从左至右依次为:
//ID字段(必须),Name字段(必须),Value字段,Script字段,Picture字段,From子句(必须),OrderBy子句,Sqlca
%><%@include file="/Resources/CodeParts/View04.jsp"%>
<script type="text/javascript">
//treeview单击选中事件
function TreeViewOnClick(){
var sCurItemName = getCurTVItem().name;
var sCurItemValue = getCurTVItem().value;
var sCurItemType = getCurTVItem().type;
if(sCurItemType=="page"){
var sReturn = AsControl.RunJsp("/FormatDoc/ChooseJsp.jsp","SerialNo="+sCurItemValue+"&ObjectType=<%=sObjectType%>&ObjectNo=<%=sObjectNo%>");
if(typeof(sReturn)!='undefined' && sReturn!=""){
OpenPage(sReturn+"SerialNo="+sCurItemValue+"&ObjectType=<%=sObjectType%>&ObjectNo=<%=sObjectNo%>&CustomerID=<%=sCustomerID%>","right");
setTitle(sCurItemName);
}
}else{
return false;
}
}
function startMenu(){
<%=tviTemp.generateHTMLTreeView()%>
}
startMenu();
expandNode('root');
click_change(0, true);
</script>
<%@ include file="/IncludeEnd.jsp"%>