📄 flow_card_maint.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<%@page import="java.text.*" %>
<%@page import="java.util.*" %>
<%@page import="com.bjsxt.drp.flowcard.model.*" %>
<%@page import="com.bjsxt.drp.flowcard.manager.*" %>
<%@page import="com.bjsxt.drp.util.*" %>
<%
String beginDate = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
String endDate = beginDate;
String command = request.getParameter("command");
String clientId = "";
String clientName = "";
String queryStr = "";
if (command != null && (command.equals("query") || command.equals("audit"))) {
beginDate = request.getParameter("beginDate");
endDate = request.getParameter("endDate");
clientId = request.getParameter("clientId");
clientName = request.getParameter("clientName");
//queryStr = "&command=query&clientId=" + clientId + "&clientName=" + clientName + "&beginDate=" + beginDate + "&endDate=" + endDate;
if (command.equals("audit")) {
String[] vouNos = request.getParameterValues("selectFlag");
System.out.println(vouNos);
for (int i = 0; i < vouNos.length; i++) {
FlowCardManager.getInstance().auditFlowCardById(vouNos[i]);
}
}
}
final int PAGE_SIZE = 2;
int pageNo = 1;
String pageNoStr = request.getParameter("pageNo");
if (pageNoStr != null && !pageNoStr.equals("")) {
pageNo = Integer.parseInt(pageNoStr);
}
PageModel pageModel = FlowCardManager.getInstance().findAllFlowCards(pageNo, PAGE_SIZE, clientId, beginDate, endDate);
%>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>流向单维护</title>
<link rel="stylesheet" href="../style/drp.css" type=text/css>
<link href="../style/JSCalendar.css" rel=stylesheet type=text/css>
<script src="../script/JSCalendar.js"></script>
<script src="../script/client_validate.js"></script>
<script type="text/javascript">
function addFlowCard() {
window.self.location = "flow_card_add.jsp";
}
function modifyFlowCard() {
window.self.location = "flow_card_modify.html";
}
function deleteFlowCard() {
if (!selectFlowCard()) {
alert("没有选中删除的流向单!");
return;
}
if (window.confirm("确认删除?")) {
document.flowCardForm.method = "post";
document.flowCardForm.action = "flow_card_maint.jsp?command=delete";
document.flowCardForm.submit();
}
}
function topPage() {
window.self.location = "flow_card_maint.jsp?pageNo=<%=pageModel.getTopPageNo()%>";
}
function previousPage() {
window.self.location = "flow_card_maint.jsp?pageNo=<%=pageModel.getPreviousPageNo()%>";
}
function nextPage() {
window.self.location = "flow_card_maint.jsp?pageNo=<%=pageModel.getNextPageNo()%>";
}
function bottomPage() {
window.self.location = "flow_card_maint.jsp?pageNo=<%=pageModel.getBottomPageNo()%>";
}
function queryFlowCard() {
if (document.flowCardForm.beginDate > document.flowCardForm.endDate) {
alert("开始日期不能大于结束日期!");
return;
}
document.flowCardForm.method = "post";
document.flowCardForm.action = "flow_card_maint.jsp?command=query";
document.flowCardForm.submit();
}
function resetFlowCard() {
document.flowCardForm.clientId.value = "";
document.flowCardForm.clientName.value = "";
}
function checkAll() {
}
function auditFlowCard() {
if (window.confirm("确认送审?")) {
document.flowCardForm.method = "post";
document.flowCardForm.action = "flow_card_maint.jsp?command=audit";
document.flowCardForm.submit();
}
}
</script>
</head>
<body class="body1">
<form name="flowCardForm">
<div align="center">
<table width="95%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td> </td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="8">
<tr>
<td width="522" class="p1" height="2" nowrap><img src="../images/mark_arrow_02.gif" width="14" height="14"> <b>分销商库存管理>>流向单维护</b></td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" height="29"><div align="right">供方分销商代码: </div></td>
<td width="23%"><input name="clientId" type="text" class="text1" id="clientId" size="10" value="<%=clientId %>" maxlength="10" readonly="true">
<input name="btnSelectClient" type="button" id="btnSelectClient" value="..." class="button1" onClick="window.open('client_select.jsp', '选择分销商', 'width=700, height=400, scrollbars=no')">
</td>
<td width="14%"><div align="right">供方分销商名称: </div></td>
<td width="34%"><input name="clientName" type="text" class="text1" id="clientName" value="<%=clientName %>" size="40" maxlength="40" readonly="true"></td>
<td width="14%"><input name="btnQuery" type="button" class="button1" id="btnQuery" value="查询" onClick="queryFlowCard()"></td>
</tr>
<tr>
<td height="26"><div align="right">开始日期: </div></td>
<td><input type="text" name="beginDate" size="10" maxlength="10" value="<%=beginDate %>" readonly="true" onClick=JSCalendar(this)>
</td>
<td><div align="right">结束日期: </div></td>
<td><input type="text" name="endDate" size="10" maxlength="10" value="<%=endDate %>" readonly="true" onClick=JSCalendar(this)></td>
<td><input name="btnReset" type="button" class="button1" id="btnReset" value="重置" onClick="resetFlowCard()"></td>
</tr>
</table>
<table height=8 width="95%">
<tr>
<td height=3></td>
</tr>
</table>
<table width="95%" height="20" border="0" cellspacing="0" id="toolbar" class="rd1">
<tr>
<td class="rd19" width="434" ><font color="#FFFFFF">查询列表</font></td>
<td nowrap class="rd16" width="489" ><div align="right"></div></td>
</tr>
</table>
<table width="95%" border="1" cellspacing="0" cellpadding="0" align="center" class="table1" title="点击选中的数据查看详细信息...">
<tr>
<td class="rd6"><input type="checkbox" name="ifAll" onClick="checkAll()" ></td>
<td class="rd6">流向单号</td>
<td class="rd6">供方分销商代码</td>
<td class="rd6">供方分销商名称</td>
<td class="rd6">录入人</td>
<td class="rd6">录入日期</td>
</tr>
<%
List flowCardList = pageModel.getList();
for (Iterator iter = flowCardList.iterator(); iter.hasNext();) {
FlowCard flowCard = (FlowCard)iter.next();
%>
<tr>
<td width="37" class="rd8" ><input type="checkbox" name="selectFlag" class="checkbox1" value="<%=flowCard.getVouNo() %>"></td>
<td width="88" class="rd8"><a href="#" onClick="window.open('flow_card_detail.jsp?vouNo=<%=flowCard.getVouNo() %>', '流向单详细信息', 'width=800, height=400, scrollbars=no')"><%=flowCard.getVouNo() %></a></td>
<td width="158" class="rd8" ><%=flowCard.getClient().getClientId() %></td>
<td width="211" class="rd8" ><%=flowCard.getClient().getName() %></td>
<td width="198" class="rd8" ><%=flowCard.getReocorder().getUserName() %></td>
<td width="197" class="rd8" ><%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(flowCard.getRecordDate()) %></td>
</tr>
<%
}
%>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="30" class="rd1">
<tr>
<td nowrap class="rd19" height="2" width="36%"> <div align="left"><font color="#FFFFFF"> 共 <%=pageModel.getTotalPages() %> 页</font> <font color="#FFFFFF">当前第</font> <font color="#FF0000"><%=pageModel.getPageNo() %></font> <font color="#FFFFFF">页</font>
</div></td>
<td nowrap class="rd19" width="64%"> <div align="right">
<input name="btnTopPage" class="button1" type="button" id="btnTopPage" value="|<< " title="首页" onClick="topPage()">
<input name="btnPreviousPage" class="button1" type="button" id="btnPreviousPage" value=" < " title="上页" onClick="previousPage()">
<input name="btnNext" class="button1" type="button" id="btnNext" value=" > " title="下页" onClick="nextPage()">
<input name="btnBottomPage" class="button1" type="button" id="btnBottomPage" value=" >>|" title="尾页" onClick="bottomPage()">
<input name="btnAdd" type="button" class="button1" id="btnAdd" value="添加" onClick="addFlowCard()">
<input name="btnDelete" class="button1" type="button" id="btnDelete" value="删除" onClick="deleteFlowCard()">
<input name="btnModify" class="button1" type="button" id="btnModify" value="修改" onClick="modifyFlowCard()">
<input name="btnAudit" class="button1" type="button" id="btnAudit" value="送审" onClick="auditFlowCard()">
</div></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -