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

📄 auditindex.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.*"%>
<jsp:directive.page import="java.text.SimpleDateFormat" />
<jsp:useBean id="planBean" class="com.saas.biz.saleOrderMgr.SaleOrderInfo" scope="page" />
<jsp:useBean id="bean" class="com.saas.biz.commen.ParamethodMgr" scope="page" />
<%
	String menu_id = "";
	HttpSession logsession = request.getSession();
	String iStart = "0";
	String menu_idx = "";
	String cust_id = "";
	if (request.getParameter("iStart") != null) {
		iStart = request.getParameter("iStart");
	}
	if (logsession.getAttribute("SESSION_CUST_ID") != null) {
		cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
	}

	if (request.getParameter("menu_id") != null) {
		menu_idx = request.getParameter("menu_id");
		logsession.setAttribute("menu_id", menu_idx);
	}
	ArrayList list = planBean.getOrderListByState(Integer.parseInt(iStart), cust_id, "1", "1", "1");
	int counter = planBean.getOrderCountByState(cust_id, "1", "1", "1");
	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;
	}
	HashMap stateMap = bean.getCompareInfoByCode("CRM", "plan_state");
	HashMap typeMap = bean.getCompareInfoByCode("CRM", "form_type");
%>
<html>
	<head>
		<title>订单管理</title>
		<link href="/style/layout.css" rel="stylesheet" type="text/css">
		<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>
	</head>
	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<jsp:include page="/inc/top.jsp" />
			<tr>
				<td align="center">
					<div id="manager_body">
						<div id="manager_body_left">
							<jsp:include page="/inc/left.jsp" />
						</div>
						<div id="manager_body_right">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td>
										<div id="righttop">
											<jsp:include page="/inc/menu.jsp">
												<jsp:param name="menu_id" value="<%=menu_id%>" />
											</jsp:include>
										</div>
										<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="25%">
																订单名称
															</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>
														</tr>
														<%
																if (list != null && list.size() > 0) {
																for (int i = 0; i < list.size(); i++) {
																	HashMap map = (HashMap) list.get(i);
																	String quo_id = map.get("quo_id").toString();
																	String quo_name = "";
																	if (map.get("quo_name") != null) {
																quo_name = map.get("quo_name").toString();
																	}
																	String form_name = "";
																	if (map.get("form_name") != null) {
																form_name = map.get("form_name").toString();
																	}
																	String form_id = "";
																	if (map.get("form_id") != null) {
																form_id = map.get("form_id").toString();
																	}
																	String entity_type = "";
																	if (map.get("entity_type") != null) {
																entity_type = map.get("entity_type").toString();
																if (typeMap.get(entity_type) != null) {
																	entity_type = typeMap.get(entity_type).toString();
																}
																	}
																	String state_code = "";
																	if (map.get("state_code") != null) {
																state_code = map.get("state_code").toString();
																if (stateMap.get(state_code) != null) {
																	state_code = stateMap.get(state_code).toString();
																}
																	}
																	String end_date = new SimpleDateFormat("yyyy-MM-dd")
																	.format(new Date());
																	if (map.get("end_date") != null) {
																end_date = map.get("end_date").toString();
																if (end_date.length() > 10) {
																	end_date = end_date.substring(0, 10);
																}
																	}
														%>
														<tr style="background-color: #f9f9f9;">
															<td style="color: #000000;" align="left">
																<a href="/saleOrder/viewStateIndex.jsp?form_id=<%=form_id%>&name=<%=form_name%>&quo_id=<%=quo_id%>" TARGET=appwin onclick="mydefss()" title="查看订单"><%=quo_name%></a>
															</td>
															<td style="color: #000000;" align="left"><%=entity_type%></td>
															<td style="color: #000000;" align="left"><%=state_code%></td>
															<td style="color: #000000;" align="center"><%=end_date%></td>
															<td style="color: #000000;" align="center">
																<a href="auditOrder.jsp?form_id=<%=form_id%>&quo_id=<%=quo_id%>" TARGET=appwin onclick="mydefss()"><img src=/img/change.png width=20 height=20 border=0 style="cursor: hand" alt="审批!">
																</a>
															</td>
														</tr>
														<%
															}
															}
														%>
														<tr>
															<td align="left" colspan="2">
																共<%=counter%>条 &nbsp;第<%=Integer.parseInt(iStart) + 1%>页&nbsp;&nbsp;共<%=pages%>页
															</td>
															<td align="right" colspan="3">
																<a href="auditIndex.jsp?iStart=0">首页 </a>&nbsp; &nbsp;
																<%
																if (Integer.parseInt(iStart) > 0) {
																%>
																<a href="auditIndex.jsp?iStart=<%=pageUp%>">上一页</a> &nbsp;
																<%
																	}
																	if (Integer.parseInt(iStart) < pages - 1) {
																%>
																<a href="auditIndex.jsp?iStart=<%=pageDown%>">下一页 </a>&nbsp;
																<%
																}
																%>
																<a href="auditIndex.jsp?iStart=<%=pages - 1%>">尾页</a>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</div>
					</div>
				</td>
			</tr>
			<tr>
				<td align="center">
					<jsp:include page="/bottom.jsp" />
				</td>
			</tr>
		</table>
	</body>
</html>

⌨️ 快捷键说明

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