apzl_leasing/WebContent/FlowTest/FlowTestList.jsp
2018-06-03 22:26:41 +08:00

131 lines
5.2 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"%>
<%@ page import="com.amarsoft.app.als.dict.ALSConstant" %>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=ApplyList;Describe=主体页面;]~*/%>
<%@include file="./ApplyListOW.jsp"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
//将jsp中的变量值转化成js中的变量值
var sObjectType = "<%=sObjectType%>";
var sApplyType = "<%=sApplyType%>";
var sPhaseType = "<%=sPhaseType%>";
var sInitFlowNo = "<%=sInitFlowNo%>";
var sInitPhaseNo = "<%=sInitPhaseNo%>";
//弹出新增申请参数对话框
var sCompID = "CreditApplyCreation";
var sCompURL = "/FlowTest/NewApplyInfo.jsp";
sReturn = popComp(sCompID,sCompURL,"ObjectType="+sObjectType+"&ApplyType="+sApplyType+"&PhaseType="+sPhaseType+"&FlowNo="+sInitFlowNo+"&PhaseNo="+sInitPhaseNo,"dialogWidth=40;dialogHeight=28;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;");
if(typeof(sReturn)=="undefined" || sReturn=="" || sReturn=="_CANCEL_") return;
sReturn = sReturn.split("@");
sObjectNo=sReturn[0];
//根据新增申请的流水号,打开申请详情界面
sCompID = "CreditTab";
sCompURL = "/Frame/page/tools/object/ObjectTab.jsp";
sParamString = "ObjectType="+sObjectType+"&ObjectNo="+sObjectNo;
OpenComp(sCompID,sCompURL,sParamString,"_blank",OpenStyle);
reloadSelf();
}
/*~[Describe=删除记录;InputParam=无;OutPutParam=无;]~*/
function cancelApply(){
//获得申请类型、申请流水号
var sObjectType = getItemValue(0,getRow(),"ObjectType");
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
if(confirm(getHtmlMessage('70'))){ //您真的想取消该信息吗?
as_delete("myiframe0");
}
}
/*~[Describe=使用OpenComp打开详情;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();
}
/*~[Describe=提交;InputParam=无;OutPutParam=无;]~*/
function doSubmit(){
//获得申请类型、申请流水号、流程编号、阶段编号、申请类型
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
alert(getHtmlMessage('1'));//请选择一条信息!
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 viewFlowGraph(){
//获得申请类型、申请流水号、流程编号、阶段编号
var sObjectType = getItemValue(0,getRow(),"OBJECTTYPE");
var sObjectNo = getItemValue(0,getRow(),"OBJECTNO");
var sFlowNo = getItemValue(0,getRow(),"FLOWNO");
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
return;
}
AsDialog.PopView("/Frame/ShowFlowTab.jsp","flowNo="+sFlowNo+"&objectType="+sObjectType+"&objectNo="+sObjectNo,"dialogWidth=800px;dialogHeight=600px");
}
</script>
<%/*~END~*/%>
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<%@include file="/Frame/resources/include/include_end.jspf"%>