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

56 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="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Describe: 流程监控列表
*/
String PG_TITLE = "<font color=red>本页面数据量较大,请通过查询条件查询</font>@PageTitle";
String sApproveNeed = CurConfig.getConfigure("ApproveNeed");//获取业务是否要走最终审批意见的流程的标志
//获得页面参数: FlowStatus01在办业务 02办结业务
String sFlowStatus = CurPage.getParameter("FlowStatus");
if(sFlowStatus == null) sFlowStatus = "";
ASObjectModel doTemp = new ASObjectModel("FlowControlList");
doTemp.appendJboWhere(" and OrgID in (select OI.OrgID from jbo.sys.ORG_INFO OI where OI.SortNo like '"+CurOrg.getSortNo()+"%') ");
if(sFlowStatus.equals("01"))
doTemp.appendJboWhere(" and PhaseNo not in ('1000','8000') ") ;
else
doTemp.appendJboWhere(" and PhaseNo in ('1000','8000') ");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //设置为Grid风格
dwTemp.ReadOnly = "1"; //设置为只读
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","","Button","查看意见","查看意见","ViewOpinion()","","","",""},
{"true","","Button","流转记录","流转记录","ChangeFlow()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function ViewOpinion(){
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
var sObjectType = getItemValue(0,getRow(),"ObjectType");
var sFlowNo = getItemValue(0,getRow(),"FlowNo");
var sPhaseNo = getItemValue(0,getRow(),"PhaseNo");
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
}else{
AsControl.OpenTab("/Common/WorkFlow/ViewFlowOpinions.jsp","FlowNo="+sFlowNo+"&PhaseNo="+sPhaseNo+"&ObjectType="+sObjectType+"&ObjectNo="+sObjectNo,{title:"申请["+sObjectNo+"]的审批意见"});
}
}
<%/*~[Describe=流转记录;]~*/%>
function ChangeFlow(){
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
var sObjectType = getItemValue(0,getRow(),"ObjectType");
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
}else{
AsControl.OpenTab("/AppConfig/FlowManage/FlowMonitor/FlowChangeList.jsp","ObjectNo="+sObjectNo+"&ObjectType="+sObjectType+"&FlowStatus="+"<%=sFlowStatus%>",{title:"申请["+sObjectNo+"]的流转记录"});
}
}
</script>
<%@include file="/Frame/resources/include/include_end.jspf"%>