⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 seecmdstatelist.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<%@ page import="com.saas.biz.cmdStateMgr.CmdStateInfo"%>
<%
	HttpSession logs = request.getSession();
	String iStart = "0";
	String meun_idx = "";
	String cust_id = "";
	if (request.getParameter("iStart") != null) {
		iStart = request.getParameter("iStart");
	}
	if (logs.getAttribute("SESSION_CUST_ID") != null) {
		cust_id = logs.getAttribute("SESSION_CUST_ID").toString();
	}
	if (request.getParameter("menu_id") != null) {
		meun_idx = request.getParameter("menu_id");
		logs.setAttribute("menu_id", meun_idx);
	}

	CmdStateInfo order = new CmdStateInfo();
	ArrayList orderList = order.getCmdStateList(Integer
			.parseInt(iStart), cust_id);
	int counter = order.getCmdStateList(cust_id);
	int pages = counter / 20 + 1;
	int pageUp = 0, pageDown = 0;
	int currenPage = Integer.valueOf(iStart).intValue();
	if (pages > currenPage) {
		if (currenPage > 0) {
			pageUp = currenPage - 1;
		}
		pageDown = currenPage + 1;
	} else if (pages == currenPage) {
		pageUp = currenPage - 1;
		pageDown = currenPage;
	}
%>
<html>
	<head>
		<title>Xsaas-客户管理系统</title>
		<link href="/style/layout.css" rel="stylesheet" type="text/css">
		<script src="/www/fuction/calendar.js" type="text/javascript"></script>
		<script language="JavaScript" src="/www/fuction/public.js"></script>
		<link href="/style/layout.css" rel="stylesheet" type="text/css">
		<link rel="stylesheet" type="text/css" href="../ext/resources/css/ext-all.css" />
		<script type="text/javascript" src="../ext/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="../ext/ext-all.js"></script>
		<script type="text/javascript" src="../ext/build/locale/ext-lang-zh_CN.js"></script>
		<script type="text/javascript" src="/js/prototype.js"></script>
		<script language="javascript" src="/js/Calendar_Ly.js"></script>
		<SCRIPT>WinLIKEerrorpage='/winlike/winman/hlp-error.html';</SCRIPT>
		<SCRIPT SRC="/winlike/winman/wininit.js"></SCRIPT>
		<SCRIPT SRC="/winlike/winman/winman.js"></SCRIPT>
		<SCRIPT>
	            WinLIKE.definewindows=mydefss;
	            function mydefss() {
	            	var j=new WinLIKE.window('', 100, 100, '90%', 'WinLIKE.browsersize().Height -Top-30', 2);
	            	j.Vis=false;
	            	j.Nam='appwin';
	            	WinLIKE.addwindow(j);
	            };
	    </SCRIPT>
		<script type="text/javascript">
		function delet(){
		 if(window.confirm('确定要删除本条记录?')){
		   return true;
		 }else{
		   return false;
		 }
		}
		</script>
	</head>
	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="2"></td>
			</tr>
			<tr>
				<td valign="top">
					<table width=100% border=0 cellpadding=5 cellspacing=1 align=center bgcolor="#dddddd">
						<tr>
							<td class="line1" style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="20%">
								配送标题
							</td>
							<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="20%">
								配送部门
							</td>
							<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="10%">
								起始位置
							</td>
							<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="15%">
								结束位置
							</td>
							<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="15%">
								配送数量
							</td>
							<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="10%">
								配送时间
							</td>
							<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="10%">
								状态
							</td>
						</tr>
						<%
								if (orderList != null && orderList.size() > 0) {
								for (int i = 0; i < orderList.size(); i++) {
									HashMap map = (HashMap) orderList.get(i);
									String shopo_title = "", from_addr = "", to_addr = "", cmd_num = "", pre_date = "", state_code = "", cmd_obj_name = "";
									if (map.get("shopo_title") != null) {
								shopo_title = map.get("shopo_title").toString();
									}
									if (map.get("from_addr") != null) {
								from_addr = map.get("from_addr").toString();
									}
									if (map.get("to_addr") != null) {
								to_addr = map.get("to_addr").toString();
									}
									if (map.get("cmd_num") != null) {
								cmd_num = map.get("cmd_num").toString();
									}
									if (map.get("pre_date") != null) {
								pre_date = map.get("pre_date").toString();
									}
									if (pre_date.length() > 10) {
								pre_date = pre_date.substring(0, 10);
									}
									if (map.get("state_code") != null) {
								state_code = map.get("state_code").toString();
									}
									if (state_code.equals("0") || state_code == "0") {
								state_code = "新录入!";
									} else if (state_code.equals("1") || state_code == "1") {
								state_code = "执行中!";
									} else if (state_code.equals("2") || state_code == "2") {
								state_code = "已执行!";
									}
									if (map.get("cmd_obj_name") != null) {
								cmd_obj_name = map.get("cmd_obj_name").toString();
									}
						%>
						<tr style="background-color: #f9f9f9;">
							<td style="color: #000000;" align="left"><%=shopo_title%></td>
							<td style="color: #000000;" align="left"><%=cmd_obj_name%></td>
							<td style="color: #000000;" align="left"><%=from_addr%></td>
							<td style="color: #000000;" align="center"><%=to_addr%></td>
							<td style="color: #000000;" align="center"><%=cmd_num%></td>
							<td style="color: #000000;" align="center"><%=pre_date%></td>
							<td style="color: #000000;" align="center"><%=state_code%></td>
						</tr>
						<%
							}
							}
						%>
						<tr>
							<td align="left" colspan="2">
								共<%=counter%>条 &nbsp;第<%=Integer.parseInt(iStart) + 1%>页&nbsp;&nbsp;共<%=pages%>页
							</td>
							<td align="right" colspan="4">
								<a href="index.jsp?iStart=0&menu_id=<%=meun_idx%>">首页 </a>&nbsp; &nbsp;
								<%
								if (Integer.parseInt(iStart) > 0) {
								%>
								<a href="index.jsp?iStart=<%=pageUp%>&menu_id=<%=meun_idx%>">上一页</a> &nbsp;
								<%
									}
									if (Integer.parseInt(iStart) < pages - 1) {
								%>
								<a href="index.jsp?iStart=<%=pageDown%>&menu_id=<%=meun_idx%>">下一页 </a>&nbsp;
								<%
								}
								%>
								<a href="index.jsp?iStart=<%=pages - 1%>&menu_id=<%=meun_idx%>">尾页</a>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -