68 lines
2.9 KiB
Plaintext
68 lines
2.9 KiB
Plaintext
<%@page import="jbo.app.tenwa.customer.CUSTOMER_INFO"%>
|
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/IncludeBegin.jsp"%><%
|
|
String PG_TITLE = "客户管理";
|
|
String PG_CONTENT_TITLE = " 详细信息 ";
|
|
String PG_CONTNET_TEXT = "请点击左侧列表";
|
|
String PG_LEFT_WIDTH = "220";//--默认的treeview宽度
|
|
|
|
String sItemDescribe = "";
|
|
String sTreeViewTemplet = "";//--存放custmerview页面树图的CodeNo
|
|
String sCustomerType = "";//--客户类型
|
|
|
|
String sCustomerID = CurPage.getParameter("ObjectNo");
|
|
String partnerType=CurPage.getParameter("Param");
|
|
BizObject cust = JBOFactory.getBizObjectManager(CUSTOMER_INFO.CLASS_NAME).createQuery("customerid=:customerid ").setParameter("customerid",sCustomerID).getSingleResult(false);
|
|
String customerType="";
|
|
if(cust!=null){
|
|
customerType = cust.getAttribute("customertype").getString();
|
|
}
|
|
if(customerType == null || "".equals(customerType)) customerType = "01";//默认法人客户
|
|
if(customerType.equals("01")&&"cust_type.assuror".equals(partnerType)){
|
|
sTreeViewTemplet="CompanyGuarantyView02";//担保人详情页面
|
|
|
|
}else if(customerType.equals("01")){
|
|
sTreeViewTemplet="CompanyView02";//法人客户
|
|
}else{//自然人客户
|
|
sTreeViewTemplet="PersonView02";
|
|
}
|
|
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "客户信息管理","right");//定义Treeview
|
|
String[] excludes = null;
|
|
tviTemp.init(sTreeViewTemplet, excludes);
|
|
%><%@include file="/Resources/CodeParts/View04.jsp"%>
|
|
<script type="text/javascript">
|
|
function openChildComp(sCompID,sURL,sParameterString){
|
|
sParaStringTmp = "";
|
|
sLastChar=sParameterString.substring(sParameterString.length-1);
|
|
if(sLastChar=="&") sParaStringTmp=sParameterString;
|
|
else sParaStringTmp=sParameterString+"&";
|
|
sParaStringTmp += "ToInheritObj=y&OpenerFunctionName="+getCurTVItem().name;
|
|
OpenComp(sCompID,sURL,sParaStringTmp,"right");
|
|
}
|
|
function TreeViewOnClick(){
|
|
var sCurItemName = getCurTVItem().name;//--获得树图的节点名称
|
|
var sCurItemDescribe = getCurTVItem().url;//--获得连接下个页面的路径及相关的参数
|
|
sCurItemDescribe = sCurItemDescribe.split("@");
|
|
sCurItemDescribe1=sCurItemDescribe[0];//--获得连接下个页面的路径
|
|
if(!sCurItemDescribe1) return false;
|
|
sCurItemDescribe2=sCurItemDescribe[1];//--存放下个页面的的页面名
|
|
sCurItemDescribe3=sCurItemDescribe[2];//--现在没有
|
|
sCurItemDescribe4=sCurItemDescribe[3];//--现在没有
|
|
sCustomerID = "<%=sCustomerID%>";//--获得客户代码
|
|
partnerType="<%=partnerType%>";
|
|
if(sCurItemDescribe2 == "Back"){
|
|
top.close();
|
|
}else{
|
|
|
|
openChildComp(sCurItemDescribe2,sCurItemDescribe1,"ModelType="+sCurItemDescribe4+"&ObjectNo="+sCustomerID+"&PartnerType="+partnerType+"&ComponentName="+sCurItemName+"&customerId="+sCustomerID+"&ObjectType=Partner&NoteType="+sCurItemDescribe3);
|
|
setTitle(getCurTVItem().name);
|
|
}
|
|
}
|
|
function startMenu(){
|
|
<%=tviTemp.generateHTMLTreeView()%>
|
|
}
|
|
startMenu();
|
|
expandNode('root');
|
|
selectItem('010010');
|
|
</script>
|
|
<%@ include file="/IncludeEnd.jsp"%> |