65 lines
2.6 KiB
Plaintext
65 lines
2.6 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/IncludeBegin.jsp"%><%
|
|
/*
|
|
Content: 流程视图
|
|
*/
|
|
String PG_TITLE = "流程信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
|
String PG_CONTENT_TITLE = " 流程信息 "; //默认的内容区标题
|
|
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
|
|
String PG_LEFT_WIDTH = "200";//默认的treeview宽度
|
|
|
|
//获得组件参数
|
|
String sFlowNo = CurPage.getParameter("ObjectNo");
|
|
String sViewID = CurPage.getParameter("ViewID");
|
|
String sItemID = CurPage.getParameter("ItemID");
|
|
String sVersion = CurPage.getParameter("Version");
|
|
if(sFlowNo == null) sFlowNo = "";
|
|
if(sViewID == null) sViewID = "";
|
|
if(sItemID == null) sItemID = "0010";
|
|
|
|
//定义Treeview
|
|
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "审批流程详情","right");
|
|
|
|
//定义树图结构
|
|
String sSqlTreeView = "from O where CodeNo='FlowCatalogView' and IsInUse='1' ";
|
|
sSqlTreeView += "and (RelativeCode like '%"+sViewID+"%' or RelativeCode='All') ";//视图filter Add by zhuang 2010-03-17
|
|
|
|
tviTemp.init(JBOFactory.getBizObjectManager("jbo.sys.CODE_LIBRARY"), "SortNo","ItemName","ItemName","","",sSqlTreeView);
|
|
//参数从左至右依次为:
|
|
//ID字段(必须),Name字段(必须),Value字段,Script字段,Picture字段,From子句(必须),OrderBy子句,Sqlca
|
|
%><%@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");
|
|
}
|
|
|
|
//treeview单击选中事件
|
|
function TreeViewOnClick(){
|
|
var sCurItemID = getCurTVItem().id;
|
|
if(sCurItemID=="0010"){
|
|
openChildComp("FlowCatalogInfo","/AppConfig/FlowManage/FlowCatalogBaseInfo.jsp","FlowNo=<%=sFlowNo%>&Version=<%=sVersion%>");
|
|
}else if(sCurItemID=="0020"){
|
|
openChildComp("FlowModelList","/AppConfig/FlowManage/FlowModelList.jsp","FlowNo=<%=sFlowNo%>&Version=<%=sVersion%>");
|
|
}else if(sCurItemID=="0030"){
|
|
openChildComp("FlowApplyList","/AppConfig/FlowManage/FlowApplyInfo.jsp","FlowNo=<%=sFlowNo%>&Version=<%=sVersion%>");
|
|
}else if(sCurItemID=="0040"){
|
|
openChildComp("FlowApproveList","/AppConfig/FlowManage/FlowApproveInfo.jsp","FlowNo=<%=sFlowNo%>&Version=<%=sVersion%>");
|
|
}
|
|
setTitle(getCurTVItem().name);
|
|
}
|
|
|
|
function startMenu(){
|
|
<%=tviTemp.generateHTMLTreeView()%>
|
|
}
|
|
|
|
startMenu();
|
|
expandNode('root');
|
|
selectItem('<%=sItemID%>');
|
|
</script>
|
|
<%@ include file="/IncludeEnd.jsp"%> |