📄 finexptype.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.FinExpTypRecordSet" %>
<%@ 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">
<%
/*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");
%>
<title>报销类别设置</title>
<script>
<!--
function update(id,key) {
document.FinExpenseType.ET_ID.value = id;
document.FinExpenseType.ET_Name.value = key;
document.FinExpenseType.status.value = "u";
document.FinExpenseType.ET_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>
<style type="text/css">
<!--
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr class="trA">
<td> 您的位置:财务管理 >> 参数设置 >> <font class="fontcolor">报销类别设置</font>
</td>
</tr>
<tr height="8">
<td></td>
</tr>
<tr>
<td align="center">
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<form action="/krm/servlet/FinExpTypServlet" method="post" name="FinExpenseType" onsubmit="return atSubmit(this)">
<tr height="24">
<td colspan="9" align="center" class="tdA">
<div align="left">报销类别设置</div></td>
</tr>
<tr height="24">
<td width="100" align="center" class="common bgcolor">报销类别名称</td>
<td class="common"><input class="long" type="text" name="ET_Name" alt="报销类别名称"></td>
</tr>
<input type="Hidden" name="status" value="i">
<input type="Hidden" name="ET_ID" value="0">
<tr>
<td height="23" colspan="2" align="center" class="tdC">
<%
//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 width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="10%" class="tdB" align="center" >序号</td>
<td width="60%" align="center" class="tdB">报销类别名称</td>
<td width="15%" class="tdB" align="center">修改</td>
<td width="15%" class="tdB" align="center">删除</td>
</tr>
<%
FinExpTypRecordSet FETrecordset = (FinExpTypRecordSet)request.getAttribute("FinExpType");
if(FETrecordset != null && FETrecordset.size() > 0){
int num = 1;
while(FETrecordset.next()) {
%>
<tr <%
if(num%2==0){
%> class="bgcolor"<%}%>>
<td width="10%" align="center" class="common"><%= num %></td>
<td width="60%" align="center" class="common"><%= StringFormat.Source2GB(FETrecordset.getET_Name()) %></td>
<td width="15%" align="center" class="common">
<%
//if(u3 >=1) {
if(u6 > 0) {
%>
<a href="javascript:update("<%= StringFormat.Source2GB(FETrecordset.getET_ID()) %>","<%= StringFormat.Source2GB(FETrecordset.getET_Name()) %>");">修改</a>
<%
}else {
out.print("修改");
}
%>
</td>
<td width="15%" class="common" align="center" >
<%
//if(d3 >= 1) {
if(d6 > 0) {
%>
<a href="/krm/servlet/FinExpTypServlet?status=d&ET_ID=<%= FETrecordset.getET_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 + -