📄 replyendaction.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.ReplyFlowActionRecordSet" %>
<%@ page import="cn.com.aheadsoft.recordset.ReplyFlowRecordSet" %>
<%@ page import="cn.com.aheadsoft.recordset.ReplyEndActionRecordSet" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<jsp:useBean id="upm" scope="session" class="cn.com.aheadsoft.manage.UserPurviewManage"/>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>财务管理流程步骤设置</title>
<%
int q310 = upm.getUserPopInt(userinfo,"3","10","q");
int i310 = upm.getUserPopInt(userinfo,"3","10","i");
int u310 = upm.getUserPopInt(userinfo,"3","10","u");
int d310 = upm.getUserPopInt(userinfo,"3","10","d");
%>
<%
ReplyFlowRecordSet flowRecordSet=(ReplyFlowRecordSet) session.getAttribute("ReplyFlow");
session.removeAttribute("ReplyFlow");
ReplyFlowActionRecordSet ActionRecordSet=(ReplyFlowActionRecordSet) session.getAttribute("ReplyFlowAction");
session.removeAttribute("ReplyFlowAction");
%>
<script>
<!--
action = new Array();
<%
if(ActionRecordSet != null && ActionRecordSet.size() > 0) {
int i = 0;
while(ActionRecordSet.next()) {
out.println("action["+String.valueOf(i)+"]=new Array();");
out.println("action["+String.valueOf(i)+"][0]='"+StringFormat.Source2GB(ActionRecordSet.getFA_Name())+"';");
out.println("action["+String.valueOf(i)+"][1]='"+StringFormat.Source2GB(ActionRecordSet.getFA_ID())+"';");
out.println("action["+String.valueOf(i)+"][2]='"+StringFormat.Source2GB(ActionRecordSet.getFA_FlowID())+"';");
i++;
}
}
%>
function selectAction() {
isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
len=document.AppFlowend.EA_ActionName.options.length;
if(len>0){
for(i=len-1;i>=0;i--)
document.AppFlowend.EA_ActionName.remove(i);
}
index=document.AppFlowend.EA_FlowName.selectedIndex;
values=document.AppFlowend.EA_FlowName.options[index].value;
for(i=0;i<action.length;i++) {
if(action[i][2]==values) {
optionnew=document.createElement("option");
optionnew.text=action[i][0];
optionnew.value=action[i][1];
if(isIE) {
document.AppFlowend.EA_ActionName.add(optionnew);
}else {
document.AppFlowend.EA_ActionName.appendChild(optionnew);
}
}
}
}
function update(id,key,val1) {
document.AppFlowend.EA_ID.value = id;
document.AppFlowend.EA_FlowName.value = key;
document.AppFlowend.EA_ActionName.value = val1;
document.AppFlowend.status.value = "u";
document.AppFlowend.EA_FlowName.focus();
}
function atSubmit(obj){
isOK=false;
lab="";
for(i=0;i<obj.length;i++){
if(obj.elements[i].value!=null && obj.elements[i].value!=""){
isOK=true;
}else{
isOK=false;
lab=obj.elements[i].alt;
obj.elements[i].focus();
break;
}
}
if(!isOK){
alert("您没有填写"+lab+"!请填写后提交。");
return false;
}else{
//obj.submit();
}
}
function atDelete() {
return confirm("您确定要删除吗?");
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="selectAction()">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" >
<tr height="8">
<td class="trA"> 您的位置:任务管理 >> 参数设置 >><font class="fontcolor"> 流程结束设置</font></td>
</tr>
<tr height="8">
<td></td>
</tr>
<tr>
<td align="center" >
<table border="0" width="98%" align="center" height="30%" class="collapse">
<tr>
<td class="tdA" colspan="9">
流程结束设置</td>
</tr>
<form action="/krm/servlet/ReplyEndActionServlet" method="post" name="AppFlowend" onsubmit="return atSubmit(this)">
<tr>
<td width="100" class="common bgcolor" > 回复流程名称</td>
<td class="common">
<select style="font-size:9pt;font-color:#FFFFFF" name="EA_FlowName" alt"流程名称" onchange="selectAction()">
<%
if(flowRecordSet != null && flowRecordSet.size() > 0) {
while(flowRecordSet.next()) {
%>
<option value="<%= flowRecordSet.getRF_ID() %>" ><%= StringFormat.Source2GB(flowRecordSet.getRF_Name()) %></option>
<%
}
}
%>
</select>
</td>
</tr>
<tr>
<td width="100" class="common bgcolor" nowrap> 结束处理选择</td>
<td class="common"><select style="font-size:9pt;font-color:#FFFFFF" name="EA_ActionName" alt"结束处理" >
</select>
</td>
</tr>
<input type="Hidden" name="status" value="i">
<input type="Hidden" name="EA_ID" value="0">
<tr>
<td align="center" colspan="2" class="tdC">
<%
if(i310 > 0) {
%>
<input name="submit" type="submit" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" value="提 交" >
<%
}
%>
</td>
</tr>
</form>
</table>
<br>
<table border="0" width="98%" align="center" height="30%" class="collapse">
<tr >
<td width="10%" class="tdB" align="center">序号</td>
<td width="40%" class="tdB" align="center">回复流程名称</td>
<td width="20%" class="tdB" align="center">结束处理名称</td>
<td width="15%" class="tdB" align="center">修改</td>
<td width="15%" class="tdB" align="center">删除</td>
</tr>
<%
ReplyEndActionRecordSet flowEndRecordset = (ReplyEndActionRecordSet)session.getAttribute("FlowEndAction");
session.removeAttribute("FlowEndAction");
if(flowEndRecordset != null && flowEndRecordset.size() > 0) {
int num = 1;
while(flowEndRecordset.next()) {
%>
<tr <%
if(num%2==0){
%> class="bgcolor"<%}%>>
<td width="10%" align="center" class="common"><%= num %></td>
<td width="40%" class="common" align="center"><%= StringFormat.Source2GB(flowEndRecordset.getEA_FlowName()) %></td>
<td width="20%" class="common" align="center"><%= StringFormat.Source2GB(flowEndRecordset.getEA_ActionName()) %></td>
<td width="15%" class="common" align="center">
<%
if(u310 > 0) {
%>
<a href="javascript:update("<%= StringFormat.Source2GB(flowEndRecordset.getEA_ID()) %>","<%= StringFormat.Source2GB(flowEndRecordset.getEA_FlowID()) %>" ,"<%= StringFormat.Source2GB(flowEndRecordset.getEA_ActionID()) %>");">修改</a>
<%
}else {
out.print("修改");
}
%></td>
<td width="15%" class="common" align="center">
<%
if(d310 > 0) {
%>
<a href="/krm/servlet/ReplyEndActionServlet?status=d&EA_ID=<%= flowEndRecordset.getEA_ID() %>" onclick="return atDelete()">删除</a>
<%
}else {
out.print("删除");
}
%>
</td>
</tr>
<%
num++;
}
}
%>
<tr><td colspan="6" class="tdC"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -