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

84 lines
3.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 import="com.amarsoft.app.lc.LCConstant"%>
<%@page import="com.amarsoft.biz.workflow.FlowTask"%>
<%@ page contentType="text/html; charset=GBK"%><%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Content: 签署意见
Input Param:
TaskNo任务流水号
ObjectNo对象编号
ObjectType对象类型
*/
//获取组件参数:任务流水号
String sSerialNo = CurPage.getParameter("TaskNo");
String sObjectNo = CurPage.getParameter("ObjectNo");
String sObjectType = CurPage.getParameter("ObjectType");
if(sSerialNo == null) sSerialNo = "";
if(sObjectNo == null) sObjectNo = "";
if(sObjectType == null) sObjectType = "";
ASObjectModel doTemp = new ASObjectModel("NoticeMeeting");
if(!StringX.isEmpty(sSerialNo)){
doTemp.setDefaultValue("SerialNo", sSerialNo);
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style="2";//freeform形式
dwTemp.genHTMLObjectWindow(sSerialNo);
String sButtons[][] = {
{"true","","Button","发送","发送会议通知","sendRecord()","","","",""},
{"true","","Button","取消","取消会议","cancelRecord()","","","",""},
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
setItemValue(0,0,"taskno",'<%=sSerialNo%>');
/*~[Describe=发送会议通知;InputParam=无;OutPutParam=无;]~*/
function sendRecord(){
//获取流程配置提交人
var actionList = RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","getActionList","TaskNo="+<%=sSerialNo%>+",PhaseOpinion=null");
var sReturn = "";
for(var j=0;j<actionList.split("@").length;j++){
var userIDStr = actionList.split("@")[j];
var userid = userIDStr.split(" ")[0];
sParams = "taskno=<%=sSerialNo%>,userid="+userid+",address="+getItemValue(0,0,"address")+",inputuser=<%=CurUser.getUserID()%>,inputorg=<%=CurUser.getOrgID()%>";
sReturn = RunJavaMethodTrans("com.amarsoft.app.lc.workflow.action.FlowProcessAction","insertMeetingRecord",sParams);
}
if (sReturn=="<%=LCConstant.OPERATION_FLAG_SUCCESS%>"){
alert("发送成功!");
parent.AsDialog.ClosePage("_CANCEL_");
}else{
alert("发送失败!");
}
}
/*~[Describe=取消会议;InputParam=无;OutPutParam=无;]~*/
function cancelRecord(){
var sSerialNo=getItemValue(0,0,"SerialNo");
var sOpinionNo = getItemValue(0,0,"OpinionNo");
if (typeof(sOpinionNo)=="undefined" || sOpinionNo.length==0){
alert("您还没有签署意见,不能做删除意见操作!");
}else if(confirm("你确实要删除意见吗?")){
var sReturn = RunJavaMethodTrans("com.amarsoft.app.lc.workflow.action.SignOpinionAction","deleteSignOpinion","serialNo="+sSerialNo+",opinoinNo="+sOpinionNo);
if (sReturn=="<%=LCConstant.OPERATION_FLAG_SUCCESS%>"){
alert("删除意见成功!");
}else{
alert("删除意见失败!");
}
}
reloadSelf();
}
/*~[Describe=插入一条新记录;InputParam=无;OutPutParam=无;]~*/
function initRow(){
if (getRowCount(0)==0){
setItemValue(0,0,"InputOrg","<%=CurOrg.getOrgID()%>");
setItemValue(0,0,"InputOrgName","<%=CurOrg.getOrgName()%>");
setItemValue(0,0,"InputUser","<%=CurUser.getUserID()%>");
setItemValue(0,0,"InputUserName","<%=CurUser.getUserName()%>");
setItemValue(0,0,"InputTime","<%=StringFunction.getToday()%>");
}
}
initRow();
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>