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

137 lines
4.9 KiB
Plaintext
Raw Permalink 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"%>
<%@ page import="com.amarsoft.app.als.dict.ALSConstant" %>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%
/*
Content: 该页面主要处理审查审批列表
Input Param:
Output param:
History Log:
*/
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "未命名模块"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=ApplyList;Describe=主体页面;]~*/%>
<%@include file="./TaskListOW.jsp"%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
<script type="text/javascript">
/*~[Describe=提交任务;InputParam=无;OutPutParam=无;]~*/
function doSubmit()
{
//获得申请类型、申请流水号、阶段编号
sObjectType = getItemValue(0,getRow(),"ObjectType");
sObjectNo = getItemValue(0,getRow(),"ObjectNo");
sPhaseNo = getItemValue(0,getRow(),"PhaseNo");
//获得任务流水号
sSerialNo = getItemValue(0,getRow(),"SerialNo");
if (typeof(sSerialNo)=="undefined" || sSerialNo.length==0)
{
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
//检查该业务是否已经提交了(解决用户打开多个界面进行重复操作而产生的错误)
sEndTime=RunJavaMethodTrans("com.amarsoft.app.als.flow.action.GetEndTimeAction","getEndTime","serialNo="+sSerialNo);
if(typeof(sEndTime)=="undefined" || (sEndTime.trim().length >0 && sEndTime!="Null")) {
//该业务这阶段审批已经提交,不能再次提交!
alert(getMessageText('ALS72527'));//该业务这阶段审批已经提交,不能再次提交!
reloadSelf();
return;
}
//检查是否签署意见
var sReturn = RunJavaMethodTrans("com.amarsoft.app.als.flow.action.CheckOpinionAction","checkOpinion","SerialNo="+sSerialNo,"dialogWidth=0;dialogHeight=0;minimize:yes");
if(typeof(sReturn)=="undefined" || sReturn.length==0) {
alert(getBusinessMessage('501'));//该业务未签署意见,不能提交,请先签署意见!
return;
}
var sObjectType = getItemValue(0,getRow(),"ObjectType");
AsTask.doSubmit(sObjectNo,sObjectType,"<%=CurUser.getUserID()%>");
reloadSelf();
}
/*~[Describe=签署意见;InputParam=无;OutPutParam=无;]~*/
function signOpinion()
{
//获得任务流水号、对象类型、对象编号
var sSerialNo = getItemValue(0,getRow(),"SerialNo");
var sObjectType = getItemValue(0,getRow(),"ObjectType");
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
if (typeof(sSerialNo)=="undefined" || sSerialNo.length==0){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
//签署对应的意见
sCompID = "SignTaskOpinionInfo";
sCompURL = "/Common/WorkFlow/SignTaskOpinionInfo.jsp";
var sReturn = popComp(sCompID,sCompURL,"TaskNo="+sSerialNo+"&ObjectType="+sObjectType+"&ObjectNo="+sObjectNo,"dialogWidth=680px;dialogHeight=450px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;");
if(sReturn=="<%=ALSConstant.JAVAMETHOD_SUCCESS_MESSAGE%>") doSubmit();//返回值为“success”则弹出提交页面
}
/*~[Describe=查看审批意见;InputParam=无;OutPutParam=无;]~*/
function viewOpinions()
{
var sObjectType = getItemValue(0,getRow(),"ObjectType");
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sFlowNo = getItemValue(0,getRow(),"FlowNo");
sPhaseNo = getItemValue(0,getRow(),"PhaseNo");
popComp("ViewFlowOpinions","/Common/WorkFlow/ViewFlowOpinions.jsp","FlowNo="+sFlowNo+"&PhaseNo="+sPhaseNo+"&ObjectType="+sObjectType+"&ObjectNo="+sObjectNo,"");
}
/*~[Describe=申请详情;InputParam=无;OutPutParam=无;]~*/
function viewTab()
{
//获得申请类型、申请流水号
var sObjectType = getItemValue(0,getRow(),"ObjectType");
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
//根据新增申请的流水号,打开申请详情界面
sCompID = "CreditTab";
sCompURL = "/Frame/page/tools/object/ObjectTab.jsp";
sParamString = "ObjectType="+sObjectType+"&ObjectNo="+sObjectNo;
OpenComp(sCompID,sCompURL,sParamString,"_blank",OpenStyle);
reloadSelf();
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=页面装载时,进行初始化;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>