📄 queryplan.jsp
字号:
<%@ page language="java" import="java.util.*,com.gensou.logic.sheji.plan.*,com.gensou.hibernate.model.*;" pageEncoding="UTF-8"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/erp" prefix="erp"%>
<%@ taglib uri="/tags/user" prefix="user" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>沈阳根守渔具厂ERP系统</title>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
<link href="/gensou/images/allcss.css" rel="stylesheet" type="text/css">
<style type="text/css">
.STYLE1 {color: #404040}
</style>
<script language="javascript">
<!--
function posURI(groupID)
{
groupIDEncoder=encodeURI(groupID);
location.href=groupIDEncoder;
}
//-->
</script>
</head>
<body>
<%
String id=(String)session.getAttribute("user");
%>
<user:quanxian path="../../manage/login/login.jsp" quanxian="36" user="<%=id %>"></user:quanxian>
<%
HashMap hash;
String username=null;
try{
// hash=(HashMap)application.getAttribute("hash");
if(application.getAttribute("hash")==null){
hash=new HashMap();
username=(String)session.getAttribute("uername");
if(username!=null&&!username.equals("")){
hash.put(username,"生产计划信息模块");
}
application.setAttribute("hash",hash);
}else{
hash=(HashMap)application.getAttribute("hash");
username=(String)session.getAttribute("username");
if(username!=null&&!username.equals("")){
hash.put(username,"生产计划信息模块");
}
application.setAttribute("hash",hash);
}
}catch(NullPointerException e){}
String str;
String query="";
String pages="";
String maxpages="";
Map querymap=new HashMap();
try{
query=(String)request.getAttribute("query");
if(query==null){
query="";
}
querymap.put("query",query);
pages=(String)request.getAttribute("pageS");
maxpages=(String)request.getAttribute("maxpages");
str=(String)request.getAttribute("str");
if(str==null||str.equals("")){
}else{
out.print("<font color='blue'>"+str+"</font>");
}
%>
<br>
<table width="39%" class="table8" align="center" >
<tr>
<td width="33%" align="center"><a href="/gensou/gjsp/sheji/plan/queryplan.jsp">查询生产计划</a></td>
<td></td>
<td width="34%" align="center"><a href="/gensou/gjsp/sheji/plan/addplan.jsp">添加生产计划</a></td>
</tr>
</table>
<html:form action="/qureyplan" method="POST">
<table width="40%" border="0" cellpadding="0" cellspacing="2" class="table8" align="center">
<tr>
<td colspan="3" align="center" bgcolor="#f1f1f1">生产计划查询</td>
</tr>
<tr><td> </td></tr>
<tr>
<td width="25%">生产计划编号</td>
<td width="49%"><input name="shengchangjihuaId" type="text" class="EditBox"></td>
<input name="pageS" type="hidden" value="1" />
<td width="31%"><input name="Submit" type="submit" class="blueButtonCss" value="查 询"></td>
</tr>
</table>
</html:form>
<%
List list=(List)request.getAttribute("plan_info");
if(list==null){
list=new ArrayList();
}
if(!list.isEmpty()&&list!=null){
%>
<table width="90%" class="table_yubo" align="center" border cellspacing="0" cellpadding="0">
<tr>
<th background="/gensou/images/bg1.gif" class="tabletop_yubo" align="center" width="6%">生产计划编号</th>
<th background="/gensou/images/bg1.gif" class="tabletop_yubo" align="center" width="6%">订单编号</th>
<th background="/gensou/images/bg1.gif" class="tabletop_yubo" align="center" width="6%">开始时间</th>
<th background="/gensou/images/bg1.gif" class="tabletop_yubo" align="center" width="6%">结束时间</th>
<th background="/gensou/images/bg1.gif" class="tabletop_yubo" align="center" width="6%">计划状态</th>
<th background="/gensou/images/bg1.gif" class="tabletop_yubo" align="center" width="6%">详细信息</th>
</tr>
<%
for(int i=0;i<list.size();i++){
QueryPlans plans=(QueryPlans)list.get(i);
%>
<tr>
<td class="td_yubo"><%=plans.getShengchangjihuaId() %></td>
<td class="td_yubo"><%=plans.getDingdanid() %></td>
<td class="td_yubo"><%=plans.getKaishiTime() %></td>
<td class="td_yubo"><%=plans.getJieshuTime() %></td>
<%
String zhuangtai=plans.getZhuangtai();
if(zhuangtai.equals("0")){
%>
<td class="td_yubo">生产进行中</td>
<%
}else{
%>
<td class="td_yubo">生产已完毕</td>
<%
}
%>
<td class="td_yubo"><a href="querytermplan.do?planid=<%=plans.getId() %>">详细信息</a></td>
</tr>
<%
}
%>
</table>
<CENTER><erp:pagination map="<%=querymap%>" maxPage="<%=maxpages%>" page="<%=pages%>" path="qureyplan.do"></erp:pagination></CENTER>
<%
}
}catch(NullPointerException e){}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -