📄 allocatratify.jsp
字号:
<jsp:useBean id="Allocat" class="src.wuyang.Allocat" scope="page"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<%!String str;%>
<%
String allocatId = request.getParameter("allocatId");
String type=request.getParameter("type");
if (request.getParameter("update")!=null){
int mode = Integer.parseInt(request.getParameter("mode"));
int agree = Integer.parseInt(request.getParameter("agree"));
Allocat.setComment(request.getParameter("comment"));
Allocat.setAllocatId(allocatId);
int rtcode = Allocat.updateRatifier(mode,agree,global.empId);
if(rtcode>=0){
str="ManagerRatifier.jsp";
}else
str="../pub/DBErr.jsp?rtcode=" + rtcode;
response.sendRedirect(str);
}
%>
<html>
<link rel="stylesheet" href="css.css" type="text/css">
<script language="javascript">
function getUrl(){
document.form1.action="AllocatRatify.jsp?agree=1&update=ok";
document.form1.submit();
}
function getUrl2(){
document.form1.action="AllocatRatify.jsp?agree=0&update=ok";
document.form1.submit();
}
</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"><br>
<form name="form1" method="post">
<blockquote> <span class="textb">
<input type="hidden" name="allocatId" value="<%=allocatId%>">
<input type="hidden" name="type" value="<%=type%>">
<input type="hidden" name="mode" value="<%=type%>">
批注: </span>
<textarea name="comment"> </textarea>
<p>
<input type="button" value="同意" onclick="getUrl()">
<input type="button" value="不同意" onclick="getUrl2()">
<input type="button" value="返回" onclick="history.back()"></blockquote>
</form>
<jsp:include page="AllocatDetail.jsp" flush="true">
<jsp:param name="allocatId" value="<%=allocatId%>"/>
</jsp:include>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -