📄 approvalflow.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.ApprovalFlowRecordSet" %>
<%@ 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>approvalkind</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");
%>
<script>
<!--
function update(id,key) {
document.ApprovalFlow.AF_ID.value = id;
document.ApprovalFlow.AF_Name.value = key;
document.ApprovalFlow.status.value = "u";
document.ApprovalFlow.AF_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 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" bordercolor="A1B7DB" class="collapse">
<form action="/krm/servlet/ApprovalFlowServlet" method="post" name="ApprovalFlow" onsubmit="return atSubmit(this)">
<tr >
<td class="tdA" colspan="9">
审批流程设置</td>
</tr>
<tr>
<td width="100" align="center" class="common bgcolor" >审批流程名称</td>
<td class="common"><input class="long" type="text" name="AF_Name" alt="审批流程名称"></td>
</tr>
<input type="Hidden" name="status" value="i">
<input type="Hidden" name="AF_ID" value="0">
<tr >
<td class="tdC" align="center" colspan="2">
<%
//if(i1 == 9 ) {
//if(i3 >= 1 ) {
if(i6 > 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" cellpadding="0" cellspacing="0" width="98%" align="center" bordercolor="A1B7DB" class="collapse">
<tr >
<td width="10%" class="tdB" align="center">序号</td>
<td width="60%" class="tdB" align="center">审批流程名称</td>
<td width="15%" class="tdB" align="center">修改</td>
<td width="15%" class="tdB" align="center">删除</td>
</tr>
<%
ApprovalFlowRecordSet AFrecordset = (ApprovalFlowRecordSet)request.getAttribute("ApprovalFlow");
if(AFrecordset != null && AFrecordset != null) {
int num = 1;
while(AFrecordset.next()) {
%>
<tr <%
if(num%2==0){
%> class="bgcolor"<%}%>>
<td width="10%" class="common" align="center"><%= num %></td>
<td width="60%" class="common" align="center"><%= StringFormat.Source2GB(AFrecordset.getAF_Name()) %></td>
<td width="15%" class="common" align="center">
<%
// if(u1 == 9) {
//if(u3 >= 1 ) {
if(u6 > 0 ) {
%>
<a href="javascript:update("<%= StringFormat.Source2GB(AFrecordset.getAF_ID()) %>","<%= StringFormat.Source2GB(AFrecordset.getAF_Name()) %>");">修改</a>
<%
}else {
out.print("修改");
}
%>
</td>
<td width="15%" class="common" align="center">
<%
// if(d1 == 9) {
//if(d3 >= 1 ) {
if(d6 > 0 ) {
%>
<a href="/krm/servlet/ApprovalFlowServlet?status=d&AF_ID=<%= AFrecordset.getAF_ID() %>" onclick="return atDelete()">删除</a>
<%
}else {
out.print("删除");
}
%>
</td>
</tr>
<%
num++;
}
}
%>
<tr><td colspan="4" class="tdC"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -