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

66 lines
2.3 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"%><%@
include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Describe: 流转记录列表
Input Param:
ObjectNo 流程业务申请号
ObjectType: 流程对象类型
*/
//获得参数
String sObjectNo = CurPage.getParameter("ObjectNo");
String sObjectType = CurPage.getParameter("ObjectType");
String sFlowStatus = CurPage.getParameter("FlowStatus");
if(sFlowStatus == null) sFlowStatus = "";
if(sObjectNo == null) sObjectNo = "";
if(sObjectType == null) sObjectType = "";
ASObjectModel doTemp = new ASObjectModel("FlowChangeList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //设置为Grid风格
dwTemp.ReadOnly = "1"; //设置为只读
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow(sObjectNo+","+sObjectType);
String sButtons[][] = {
{"false","","Button","业务移交","业务移交","BizTransfer()","","","",""}
};
if(sFlowStatus.equals("02")){
sButtons[0][0] = "false";
}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
setDialogTitle("流转记录");
<%/*~[Describe=业务移交;]~*/%>
function BizTransfer(){
AsDialog.SelectGridValue("SelectUserInOrg", "<%=CurOrg.getSortNo()%>%", "UserID@UserName", null, false,"",function(sReturn){
if(sReturn && sReturn!="_CLEAR_"){
var myArr = sReturn.split("@");
//返回选择的移交人
var sID = myArr[0];
var sName=myArr[1];
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
}else{
var sSerialNo = getItemValue(0,getRow(),"SerialNo");
var sEndTime = getItemValue(0,getRow(),"EndTime");
if(sEndTime.length>0){
alert("请选择未提交的流程任务!");
return;
}
var sUserID = getItemValue(0,getRow(),"UserID");
if(sUserID.length>0){
if(sUserID.substring(0,1)=="*" ||sUserID.toLowerCase()=="system") {
alert("特殊阶段的任务,不允许变更任务处理人!"); return;
}
}
RunJavaMethod("com.amarsoft.app.flow.FlowAction","changeOperator","TaskNo="+sSerialNo+",UserID="+sID);
alert("当前业务已移交给用户 "+sName);
reloadSelf();
}
}
});
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>