📄 appflowaction.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.AppFlowActionRecordSet" %>
<%@ page import="cn.com.aheadsoft.recordset.ApprovalFlowRecordSet" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.recordset.DataAuthRoleRecordSet"%>
<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 q3 = upm.getUserPopInt(userinfo,"9","3","q");
int i3 = upm.getUserPopInt(userinfo,"9","3","i");
int u3 = upm.getUserPopInt(userinfo,"9","3","u");
int d3 = upm.getUserPopInt(userinfo,"9","3","d");*/ //replace by zenghongli 2004.9.7
int i6 = upm.getUserPopInt(userinfo,"9","6","i");
int u6 = upm.getUserPopInt(userinfo,"9","6","u");
int d6 = upm.getUserPopInt(userinfo,"9","6","d");
DataAuthRoleRecordSet role = (DataAuthRoleRecordSet)request.getAttribute("role");
%>
<script>
<!--
role_array=new Array();
role_src_num=0;
<%
int i = 0;
if(role != null){
while(role.next()){
out.println(" role_array["+i+"]=new Array()");
out.println("role_array["+i+"][0]='"+role.getDAR_RoleID()+"'");
out.println("role_array["+i+"][1]='"+StringFormat.Source2GB(role.getDAR_RoleName())+"'");
i++;
}
}
out.println("role_src_num="+i);
%>
function update(id,key,flow,type,roles) {
document.AppFlowAction.FA_ID.value = id;
document.AppFlowAction.FA_Name.value = key;
document.AppFlowAction.FA_Doc.value = flow;
document.AppFlowAction.FA_Type.value = type;
document.AppFlowAction.FA_RoleIDs.value = roles;
document.AppFlowAction.status.value = "u";
var rolesName="";
for(i=0;i<role_src_num;i++)
{
if(roles.indexOf("#"+role_array[i][0]+"#")!=-1) rolesName+=role_array[i][1]+",";
}
document.AppFlowAction.FA_Roles.value=rolesName;
document.AppFlowAction.FA_Name.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 openWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
function atDelete() {
return confirm("您确定要删除吗?");
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<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" cellpadding="0" cellspacing="0" width="98%" align="center">
<tr >
<td class="tdA" colspan="9" >
流程步骤设置</td>
</tr>
<form action="/krm/servlet/AppFlowActionServlet" method="post" name="AppFlowAction" onsubmit="return atSubmit(this)">
<tr>
<td width="100" align="center" class="common bgcolor" >步骤名称</td>
<td class="common"><input class="long" type="text" name="FA_Name" alt="步骤名称"> </td>
</tr>
<tr>
<td width="100" align="center" class="common bgcolor" >所属流程名称</td>
<td class="common"><select name="FA_Doc" alt="所属流程名称">
<%
ApprovalFlowRecordSet AFrecordset = (ApprovalFlowRecordSet)request.getAttribute("AppFlow");
while(AFrecordset.next()) {
%>
<option value="<%= StringFormat.Source2GB(AFrecordset.getAF_ID()) %>" selected><%= StringFormat.Source2GB(AFrecordset.getAF_Name()) %></option>
<% } %>
</select> </td>
</tr>
<tr>
<td align="center" class="common bgcolor" >执行者角色</td>
<td class="common"><input type="text" name="FA_Roles" class="long" readonly >
<a href="javascript:openWindow('/krm/servlet/RoleSelectServlet?src1=AppFlowAction.FA_RoleIDs&src2=AppFlowAction.FA_Roles','selectuser','width=500,height=300')"><image src="/krm/jsp/image/selectperson.gif" border="0"></a>
<input type="hidden" alt="执行者角色" name="FA_RoleIDs"></td>
</tr>
<tr>
<td align="center" class="common bgcolor" >类型</td>
<td class="common">
<select name="FA_Type" alt="步骤类型">
<option value="1">开始动作</option>
<option value="2">中间动作</option>
<option value="3">结束动作</option>
</select>
</td>
</tr>
<input type="Hidden" name="status" value="i">
<input type="Hidden" name="FA_ID" value="0">
<tr>
<td class="tdC" align="center" colspan="2">
<%
//if(i3 >= 1) {
if(i6 > 0) {
%>
<INPUT type="submit" value="提 交" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" >
<%
}
%>
</td>
</tr>
</form>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="98%" align="center" >
<tr >
<td width="8%" class="tdB" align="center">序号</td>
<td width="25%" class="tdB" align="center">步骤名称</td>
<td width="24%" class="tdB" align="center">所属流程</td>
<td width="22%" class="tdB" align="center">类型</td>
<td width="11%" class="tdB" align="center" nowrap>修改</td>
<td width="10%" class="tdB" align="center" nowrap>删除</td>
</tr>
<%
AppFlowActionRecordSet AFArecordset = (AppFlowActionRecordSet)request.getAttribute("AppFlowAction");
if(AFArecordset != null && AFArecordset.size() > 0) {
int num = 1;
while(AFArecordset.next()) {
%>
<tr <%
if(num%2==0){
%> class="bgcolor"<%}%>>
<td width="8%" class="common" align="center"><%= num %></td>
<td width="25%" class="common" align="center"><%= StringFormat.Source2GB(AFArecordset.getFA_Name()) %></td>
<td width="24%" class="common" align="center"><%= StringFormat.Source2GB(AFArecordset.getFA_FlowName()) %></td>
<td width="22%" class="common" align="center">
<%
String type=AFArecordset.getFA_Type();
if(type.equals("1")) out.println("开始动作");
else if (type.equals("2")) out.println("中间动作");
else out.println("结束动作");
%>
</td>
<td width="11%" class="common" align="center">
<%
//if(u3 >= 1) {
if(u6 > 0) {
%>
<a href="javascript:update("<%= StringFormat.Source2GB(AFArecordset.getFA_ID()) %>","<%= StringFormat.Source2GB(AFArecordset.getFA_Name()) %>","<%= AFArecordset.getFA_FlowID() %>","<%= AFArecordset.getFA_Type() %>","<%= AFArecordset.getFA_Roles() %>");">修改</a>
<%
}else {
out.print("修改");
}
%>
</td>
<td width="10%" class="common" align="center">
<%
//if(d3 >= 1) {
if(d6 > 0) {
%>
<a href="/krm/servlet/AppFlowActionServlet?status=d&FA_ID=<%= AFArecordset.getFA_ID() %>" onclick="return atDelete()">删除</a>
<%
}else {
out.print("删除");
}
%>
</td>
</tr>
<%
num++;
}
}
%>
<tr><td colspan="6" class="tdC"> </td>
</tr>
</table>
<br> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -