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

📄 orderlistmgr.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="orderBean" class="com.saas.biz.formStateMgr.FormStateInfo" scope="page" />
<jsp:useBean id="comParam" class="com.saas.biz.commen.ParamethodMgr" scope="page"/>
<jsp:useBean id="comm" class="com.saas.biz.commen.commMethodMgr" scope="page" />
<html>
<head>
<title>销售管理</title>
<link href="/style/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
.line6 {width:72spx; width:70spx!important;border:#ffcb99 1px solid;  background-color:#fff8ee; text-align:left; padding-left: 20px;padding-top: 10px;padding-bottom: 10px; color:#000000; margin-top:13px;}   /*横栏样式6---- 头部提醒1*/
.line6 .img{width:53px; height:53px; float:left; margin-right:20px;}
.line6 .title {font-size:14px; font-weight:bold; color:#ff5400;}
.line1 {border-left:#ff7300 3px solid; background-color:#e2e2e2; color:#333333;text-align:left; font-size:12px;}  /*横栏样式1*/
</style>
<script type="text/javascript">
function deleteForm(){
 if(window.confirm('确定要删除本模板?')){
   return true;
 }else{
  return false;
 }
}
</script>
</head>
<body>
<%
   HttpSession  logsession = request.getSession(); 
    String cust_id = "";
    String iStart ="0";
    String meun_idx="";
   
    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)
    {
        meun_idx = request.getParameter("menu_id");
    }
    
    HashMap code_Map=comParam.getCompareInfoByCode("CRM","state_code");
    ArrayList tableList =orderBean.getOrderFormStateList(Integer.parseInt(iStart),cust_id);
    int counter=orderBean.getOrderFormStateCount(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;
	}
%>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td height="13" align="left">
	    </td>
	  </tr>
	  <tr>
	    <td>
		     <table width=727 border=0 cellpadding=2 cellspacing=1 align=center  bgcolor="#e7e7e7">
		        <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="15%">当前状态型</td>
					<td 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="15%">查看详细</td>
		        </tr>
		       <%
		         if(tableList !=null && tableList.size()>0){
		         for(int i=0;i<tableList.size();i++){
		           HashMap map=(HashMap)tableList.get(i);
		           String form_id="",form_name="",form_state="",state_code_date="",
		           quo_name="",quo_id="";
		           if(map.get("form_id")!=null){
		             form_id=map.get("form_id").toString();
		           }
		           if(map.get("server_id")!=null){
		             quo_id=map.get("server_id").toString();
		           }
		           if(map.get("quo_name")!=null){
		             quo_name=map.get("quo_name").toString();
		           }
		            if(map.get("form_name")!=null){
		             form_name=map.get("form_name").toString();
		           }
		            if(map.get("state_code")!=null){
		              form_state=map.get("state_code").toString();
		             if(code_Map.get(form_state)!=null){
		              form_state=code_Map.get(form_state).toString();
		             }
		           }
		           if(map.get("state_code_date")!=null){
		              state_code_date=map.get("state_code_date").toString();
		               if(state_code_date.length()>10){
		                state_code_date=state_code_date.substring(0,10);
		              }
		           }
		       %>
		        <tr style="background-color:#f9f9f9;"id="changcolor_tr<%=i%>" onmouseover="MM_changeProp('changcolor_tr<%=i%>','','backgroundColor','#ffffff','DIV')" onmouseout="MM_changeProp('changcolor_tr<%=i%>','','backgroundColor','#f9f9f9','DIV')">
	              <td style="color:#000000;" align="left"><a href="viewStateIndex.jsp?form_id=<%=form_id %>&menu_id=<%=meun_idx%>&quo_id=<%=quo_id%>" target="_self" title="查看详细信息"><%=quo_name%></a></td>
	              <td style="color:#000000;" align="center"><%=form_state%></td>
	              <td style="color:#000000;" align="center"><%=form_name%></td>
	              <td style="color:#000000;" align="center"><%=state_code_date%></td>
	              <td style="color:#000000;" align="center"><a href="viewStateIndex.jsp?form_id=<%=form_id %>&menu_id=<%=meun_idx%>&quo_id=<%=quo_id%>" target="_self"><img src=/images/menuimage/9.gif width=25 height=25 border=0 alt="查看详细信息"></a></td>
	            </tr>
	            <%}%>
			    <tr>
				   <td  align="left" colspan="2">共<%=counter%>条 &nbsp;共<%=pages%>页</td>
				   <td  align="right" colspan="3"><a href="indexMgr.jsp?iStart=1&menu_id=<%=meun_idx%>">首页 </a>&nbsp; &nbsp;<a href="indexMgr.jsp?iStart=<%=pageUp%>&menu_id=<%=meun_idx%>">上一页</a> &nbsp;<a href="indexMgr.jsp?iStart=<%=pageDown%>&menu_id=<%=meun_idx%>">下一页 </a>&nbsp; <a  href="indexMgr.jsp?iStart=<%=pages%>&menu_id=<%=meun_idx%>">尾页</a></td>
		       </tr>
		       <%}%>
		    </table>
	     </td>
	  </tr>
	  <tr>
	    <td height="13"></td>
	  </tr>
	</table>
</body>
</html>

⌨️ 快捷键说明

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