📄 plansellupdate.jsp
字号:
<jsp:useBean id="planSell" class="src.wuyang.PlanSell" scope="page"/>
<jsp:useBean id="department" class="src.wuyang.Department" scope="page"/>
<jsp:useBean id="production" class="src.wuyang.Production" 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>
<% }
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body bgcolor="#949B93" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="1" height="90%" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" >
<tr>
<td valign="top" >
<br><br>
<%
int rtcode;
if (request.getParameter("mode")!=null){
if ((request.getParameter("sellBegTimen")!=null)&&(request.getParameter("sellBegTimey")!=null)&&(request.getParameter("sellBegTimer")!=null)) {
planSell.setSellBegTime( planSell.stringToDate(request.getParameter("sellBegTimen"),request.getParameter("sellBegTimey"),request.getParameter("sellBegTimer") ) ); }
if ((request.getParameter("sellEndTimen")!=null)&&(request.getParameter("sellEndTimey")!=null)&&(request.getParameter("sellEndTimer")!=null)) {
planSell.setSellEndTime( planSell.stringToDate(request.getParameter("sellEndTimen"),request.getParameter("sellEndTimey"),request.getParameter("sellEndTimer") ) ); }
planSell.setGlobal(global);%>
<jsp:setProperty name="planSell" property="*" />
<%
rtcode = planSell.update();
%>
<div class="textb" align="center">记录已被修改!</div><br>
<%
if(rtcode < 0) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%
}
}
if (request.getParameter("planSellId")!=null) {
rtcode=planSell.load(request.getParameter("planSellId"));
if(rtcode < 0) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%
}
}
%>
<form method="post" action="PlanSellUpdate.jsp" > <blockquote>
<table width="300" border="0">
<tr>
<td class="textb"> <b>
计划销售编号 : </b></td>
<td class="textb">
<%=planSell.getPlanSellId()%>
</td>
</tr>
<tr>
<td class="textb"> <b>
<input type="hidden" name="mode" value="update"/>
<input type="hidden" name="planSellId" value="<%=request.getParameter("planSellId")%>"/>
部门 : </b></td>
<td class="textb">
<%
rtcode=department.load(planSell.getDeptId());
if(rtcode < 0) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%
}
%>
<%=department.getDeptName()%>
</td>
</tr>
<tr>
<td class="textb"><b>产品 : </b></td>
<td class="textb">
<%
rtcode=production.load(planSell.getProductId());
if(rtcode < 0) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%
}
%>
<%=production.getProductName()%>
</td>
</tr>
<tr>
<td class="textb"><b>计划数量 : </b></td>
<td>
<input type="text" name="planAmount" value="<%=planSell.getPlanAmount()%>"/>
</td>
</tr>
<tr>
<td class="textb"><b>销售开始日期 :</b></td>
<td>
<input type="text" name="sellBegTimen" size="4" value="<%=planSell.getStringDate(planSell.getSellBegTime(),1)%>"/>
<span class="textb">年</span>
<input type="text" name="sellBegTimey" size="2" value="<%=planSell.getStringDate(planSell.getSellBegTime(),2)%>"/>
<span class="textb">月 </span>
<input type="text" name="sellBegTimer" size="2" value="<%=planSell.getStringDate(planSell.getSellBegTime(),3)%>"/>
<span class="textb">日</span>
</td>
</tr>
<tr>
<td class="textb"><b>销售截至日期 : </b></td>
<td>
<input type="text" name="sellEndTimen" size="4" value="<%=planSell.getStringDate(planSell.getSellEndTime(),1)%>"/>
<span class="textb">年</span>
<input type="text" name="sellEndTimey" size="2" value="<%=planSell.getStringDate(planSell.getSellEndTime(),2)%>"/>
<span class="textb">月 </span>
<input type="text" name="sellEndTimer" size="2" value="<%=planSell.getStringDate(planSell.getSellEndTime(),3)%>"/>
<span class="textb">日</span>
</td>
</tr>
<tr>
<td colspan="2">
<div align="center"><b> <br>
<input type="submit" name="insert" value="提交" />
</b>
<input type="reset" value="重置" name="reset" />
</div>
</td>
</tr>
</table>
<p> </p> </blockquote>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -