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

📄 viewsaleinfo1.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 import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.Date"%>
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="com.saas.biz.saleMgr.SaleInfo"%>
<%@ page import="com.saas.biz.userMgr.UserInfo"%>
<%@ page import="com.saas.biz.custMgr.Custinfo"%>

<%

	String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
	String sale_id = "";
	String title = "";
	String content = "";
	String publish_user_id="";
	String cust_id="";
	String cust_name="";
	String sale_addr = "";
	String start_date = date;
	String end_date = date;
	String sale_price = "";
	String commodity_price = "";
	

	if (request.getParameter("sale_id") != null)
	{
		sale_id = request.getParameter("sale_id");
	}

	SaleInfo saleObj = new SaleInfo();
	ArrayList saleList = new ArrayList();

	if (sale_id != null && !sale_id.equals("")) 
	{
		saleList = saleObj.genOneSale(sale_id);
		if (saleList != null && saleList.size() > 0) 
		{
			HashMap map = (HashMap) saleList.get(0);
			sale_id = map.get("sale_id").toString();

			if (map.get("title") != null) 
			{
				title = map.get("title").toString();
			}

			if (map.get("content") != null) 
			{
				content = map.get("content").toString();
			}
            
            if (map.get("publish_user_id") != null) 
				{
					publish_user_id = map.get("publish_user_id").toString();
					UserInfo userInfo = new UserInfo();
					ArrayList list = new ArrayList(); 
					HashMap map1 = new HashMap();
					list = userInfo.genOneUserInfo(publish_user_id);
					if (list != null && list.size() > 0)
					{
						   map1 = (HashMap) list.get(0);
						   cust_id = map1.get("cust_id").toString();
						  
						    Custinfo custInfo = new Custinfo();
							ArrayList list2 = new ArrayList(); 
							HashMap map2 = new HashMap();
							list2 = custInfo.genSpecCustInfo(cust_id);
							if (list2 != null && list2.size() > 0)
							{
								  map2 = (HashMap) list2.get(0);
								  cust_name = map2.get("cust_name").toString();
							}
					}
				}
            
        
			if (map.get("sale_addr") != null) 
			{
				sale_addr = map.get("sale_addr").toString();
			}

			if (map.get("start_date") != null) 
			{
				start_date = map.get("start_date").toString();
				if (start_date.length() > 10)
				{
					start_date = start_date.substring(0, 10);
				}
			}

			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);
				}
			}

			if (map.get("sale_price") != null) 
			{
				sale_price = map.get("sale_price").toString();
			}

			if (map.get("commodity_price") != null)
			{
				commodity_price = map.get("commodity_price").toString();
			}

		}

	}

%>

<html>

	<head>

		<title>www.Xsaas.com</title>
		<link href="/style/layout.css" rel="stylesheet" type="text/css">
		<script language="JavaScript" src="/www/fuction/public.js"></script>
		<script language="javascript" src="/js/Calendar_Ly.js"></script>
		<script language="JavaScript">

    function Check_Value()
	{
 	    return true;
	}
     function check_none(current_obj)
     {
          if (current_obj.advshow.checked)
          {
      	    current_obj.submit1.disabled=false;        	     
      	  }
        else
        {
      	    current_obj.submit1.disabled=true;
      	}
  	}
    	function exit()
    	{
    	    window.close();
    	}

    	function confirmsub(formobj)
    	{
    	    if(window.confirm('你确定要提交吗?')) 
    	    {
    	        if (!Check_Value())
    	        {
    	             return;
    	        }    	            	           
    	        formobj.submit();    	         
    	    }
    	    else
    	    {
    	        return;
    	    }
    	}

  </script>

	</head>

	<body>
  <form  name="classForm" method="post" action="/doTradeReg.do" target="_bank">
		<table width="818" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td height="26" >&nbsp;				
				</td>
			</tr>
			<tr>
					<table width="93%" border=0 cellpadding=5 cellspacing=1 align=center bgcolor="#dddddd">
						<tr>
							<td class="line1" align="left" colspan="2">
								查看销售单
							</td>
						</tr>
						<tr>
							<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align=right width=15%>
								销售标题
							</td>
							<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left width=85%>
								<%=title%>
							</td>
						</tr>
						<tr>
							<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align=right valign="top">
								销售内容
							</td>
							<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left>
									<%=content%>
							</td>
						</tr>
						
						<tr>
							<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align=right valign="top">
								销售单位
							</td>
							<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left>
									<%=cust_name%>
							</td>
						</tr>
						
						<tr>
							<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align=right>
								销售地点
							</td>
							<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left>
								<%=sale_addr%>
							</td>
						</tr>
						
						<tr>
							<td align=right style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;">
								价格
							</td>
							<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align="left">
								<%=sale_price%>
							</td>
						</tr>
						<tr>
							<td align=right style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;">
								原价
							</td>
							<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align="left">
								<%=commodity_price%>
							</td>
						</tr>
						
						<tr>
							<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align=right>
								开始日期
							</td>
							<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left>
								<%=start_date%>
							</td>
						</tr>
						<tr>
							<td style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;" align=right>
								结束日期
							</td>
					    	<td style="background-color:#ffffff; color:#000000;  font-size:12px;" align=left>
								<%=end_date%>
							</td>
						</tr>
						
						<tr>
							<td align="center" style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:13px;padding-top:10px;padding-bottom:10px;" colspan="2">
								<!--input class="gban" name=button1 type=button value="" onclick=exit()-->
							</td>
						</tr>
					</table>
			</tr>
			
		</table>
	</form>
	</body>

</html>

⌨️ 快捷键说明

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