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

131 lines
3.9 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 import="com.amarsoft.app.base.util.BUSINESSOBJECT_CONSTANTS"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%>
<%@page import="com.amarsoft.app.bizmethod.*"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Main00;Describe=注释区;]~*/%>
<%
/*
Author:
Tester:
Content: 台帐申请主界面
Input Param:
SerialNo业务申请流水号
Output param:
*/
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=View01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "业务申请"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "&nbsp;&nbsp;基本信息&nbsp;&nbsp;"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "200";//默认的treeview宽度
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=View02;Describe=定义变量,获取参数;]~*/%>
<%
//定义变量
String sBusinessType = "",sCustomerID = "";
String sOccurType = "";
String sApplyType="";//申请类型
String sTable="";
//获得组件参数
String sObjectType = CurPage.getParameter("ObjectType");
String sObjectNo = CurPage.getParameter("ObjectNo");
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=View03;Describe=定义树图;]~*/%>
<%
//定义Treeview
HTMLTreeView tviTemp = new HTMLTreeView(SqlcaRepository,CurComp,sServletURL,"业务详情","right");
tviTemp.ImageDirectory = sWebRootPath; //设置资源文件目录图片、CSS
tviTemp.toRegister = false; //设置是否需要将所有的节点注册为功能点及权限点
tviTemp.TriggerClickEvent=true; //是否自动触发选中事件
String sSqlTreeView = "";
//定义树图结构,根据阶段(RelativeCode)、发生类型(Attribute1)、业务品种(Attribute2)、排除的业务品种(Attribute3)生成不同的树图
sSqlTreeView = "from code_library where CodeNo= 'AcctLoanView' and isinuse = '1' ";
tviTemp.initWithSql("SortNo","ItemName","ItemDescribe","","",sSqlTreeView,"Order By SortNo",Sqlca);
//参数从左至右依次为:
//ID字段(必须),Name字段(必须),Value字段,Script字段,Picture字段,From子句(必须),OrderBy子句,Sqlca
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区[Editable=false;CodeAreaID=View04;Describe=主体页面]~*/%>
<%@include file="/Resources/CodeParts/View04.jsp"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区[Editable=true;CodeAreaID=View05;]~*/%>
<script type="text/javascript">
setDialogTitle("&nbsp;<b>合同对应的帐户信息-详情-只读-无权限</b>");
</script>
<script type="text/javascript">
function openChildComp(sCompID,sURL,sParameterString){
sParaStringTmp = "";
sObjectType="<%=BUSINESSOBJECT_CONSTANTS.loan%>";
sObjectNo="<%=sObjectNo%>";
sLastChar=sParameterString.substring(sParameterString.length-1);
if(sLastChar=="&") sParaStringTmp=sParameterString;
else sParaStringTmp=sParameterString+"&";
sParaStringTmp += "ToInheritObj=y&OpenerFunctionName="+getCurTVItem().name;
sParaStringTmp=sParaStringTmp.replace("#ObjectType",sObjectType);
sParaStringTmp=sParaStringTmp.replace("#ObjectNo",sObjectNo);
OpenComp(sCompID,sURL,sParaStringTmp,"right");
}
//treeview单击选中事件
function TreeViewOnClick(){
var AccountType="";
var sSerialNo = getCurTVItem().id;
if (sSerialNo == "root") return;
var sCurItemName = getCurTVItem().name;
var sCurItemDescribe = getCurTVItem().value;
sCurItemDescribe = sCurItemDescribe.split("@");
sCurItemDescribe0=sCurItemDescribe[0];
sCurItemDescribe1=sCurItemDescribe[1];
sCurItemDescribe2=sCurItemDescribe[2];
openChildComp(sCurItemDescribe1,sCurItemDescribe0,"ComponentName="+sCurItemName+"&"+sCurItemDescribe2);
setTitle(getCurTVItem().name);
}
function startMenu() {
<%=tviTemp.generateHTMLTreeView()%>
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区[Editable=true;CodeAreaID=View06;Describe=在页面装载时执行,初始化]~*/%>
<script type="text/javascript">
myleft.width=170;
startMenu();
expandNode('root');
selectItem('010');
setTitle("基本信息");
</script>
<%/*~END~*/%>
<%@ include file="/IncludeEnd.jsp"%>