📄 slipcost.jsp
字号:
<%@ taglib prefix="task" uri="/jsp/tld/WuYangTag.tld" %>
<jsp:useBean id="slip" class="src.wuyang.SalesSlip" scope="page"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<jsp:setProperty name="slip" property="*" />
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<%!String str;%>
<%
String slipId = request.getParameter("slipId");
int type=Integer.parseInt(request.getParameter("type"));
if (request.getParameter("update")!=null){
int rtcode = slip.insertFee();
if(rtcode>=0){
str="CostRatifier.jsp?state="+type;
}else
str="../pub/DBErr.jsp?rtcode=" + rtcode;
response.sendRedirect(str);
}
if (request.getParameter("return")!=null){
str="CostRatifier.jsp?state="+type;
response.sendRedirect(str);
}
%>
<html>
<link rel="stylesheet" href="css.css" type="text/css">
<script language ="javascript" src='../pub/pub.js' type=text/javascript></script>
<script language="JavaScript">
function VerifyInput(e)
{
if(noFloat(e.fee.value))
{
alert("输入数据无效");
e.fee.focus();
return false;
}
}
</script>
<body bgcolor=#949b93><table width="100%" border="1" height="90%" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"> <blockquote><span class="textb"> </span>
<table width="88%" border="0">
<form method="post" action="SlipCost.jsp" onsubmit="return VerifyInput(this);">
<tr>
<td width="75%"><span class="textb">
<input type="hidden" name="slipId" value="<%=slipId%>">
<input type="hidden" name="type" value="<%=type%>">
<task:feeName showType="get" feeId="<%=type%>" />: </span>
<input type="text" name="fee">
</td>
<td width="25%">
<input type="submit" name="update" value="确认" >
<input type="button" value="返回" onClick="history.back()" name="button">
</td>
</tr>
</form>
</table>
</blockquote>
<jsp:include page="SlipDetail.jsp" flush="true">
<jsp:param name="slipId" value="<%=slipId%>"/>
</jsp:include>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -