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

📄 orderdetail.jsp

📁 全面管理订单流程(包含下单,核单,发货,跟单,记账等等),物流,客户关系和销售 媒体分析,货品销售分析,话务业绩分析.
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.Vector" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="com.comm.vo.GenericVO" %>
<%@ page import="com.comm.vo.ListVO" %>
<%@ page import="com.comm.util.BaseUtil" %>
<%@ page import="com.comm.util.AppUtil" %>
<jsp:useBean id="bean" scope="request" class="com.comm.vo.GenericVO"/>
<div>
  <table cellspacing="0" cellpadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC" height="134">
    <tr>
      <td align="center" height="29" bgcolor="#FFFFCC">订单详情</td>
    </tr>
    <tr>
      <td height="105" style="padding:8px;" valign="top">
      <table cellspacing="0" cellpadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
        <tr>
          <td align="center" height="29" bgcolor="#EEEEEE" width="429">商品名称</td>
          <td align="center" height="29" bgcolor="#EEEEEE" width="39">数量</td>
          <td align="center" height="29" bgcolor="#EEEEEE" width="138">单价</td>
          <td align="center" height="29" bgcolor="#EEEEEE" width="179">金额</td>
          <td align="center" height="29" bgcolor="#EEEEEE" width="165">计费重量</td>
        </tr>
<%
GenericVO tvo = null;
double tw = 0;
double tp = 0;
int td = 0;
Vector r = (Vector)bean.getItem("GOODS");
for(int i=0;i<r.size();i++){
tvo = (GenericVO)r.elementAt(i);
tw += BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("WEIGHT"));
tp += BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("PRICE2"));
td += BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("DOT"));
%>
        <tr>
          <td height="28" width="429">&nbsp;<%=tvo.getItem("NAME")%></td>
          <td align="center" height="28" width="39">&nbsp;<%=tvo.getItem("COUNT")%></td>
          <td align="center" height="28" width="138">&nbsp;<%=tvo.getItem("PRICE2")%></td>
          <td align="center" height="28" width="179">&nbsp;<%=BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("PRICE2"))%></td>
          <td align="center" height="28" width="165">&nbsp;<%=BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("WEIGHT"))%></td>
        </tr>
<%
}
%>
      </table>
      <div style="width:100%;height:5px;"></div>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td width="57%">
            <table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
              <tr>
                <td bgcolor="#EEEEEE" height="25">&nbsp;&nbsp;收货人信息 </td>
              </tr>
              <tr>
                <td bgColor="#ffffff" height="25">
                <table cellSpacing="3" cellPadding="0" width="100%" border="0">
                  <tr>
                    <td align="left">
                      <%tvo = (GenericVO)bean.getItem("ADDR");%>
                      &nbsp;&nbsp;收货人:<strong><%=tvo.getItem("NAME")%></strong><br>
                      &nbsp;&nbsp;地址:<%=tvo.getItem("ADDRESS")%><br>
                      &nbsp;&nbsp;邮编:<%=tvo.getItem("POST")%> <br>
                      &nbsp;&nbsp;联系电话:<%=tvo.getItem("TEL")%><br>
                      &nbsp;&nbsp;移动电话:<%=tvo.getItem("MOBILE")%>
                    </td>
                  </tr>
                  </table>
                </td>
              </tr>
            </table>
            <div style="font-size:1px;height:10px;"></div>
            <table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
              <tr>
                <td bgcolor="#EEEEEE" height="25" width="30%">&nbsp;&nbsp;付款方式</td>
                <td bgcolor="#EEEEEE" height="25" width="70%">&nbsp;&nbsp;详细说明</td>
              </tr>
              <tr>
                <td bgColor="#ffffff" height="25">
                  <%tvo = (GenericVO)bean.getItem("PAYMETHOD"); %>
                  &nbsp; <%=tvo.getItem("NAME")%>
                </td>
                <td bgColor="#ffffff" height="25">
                  &nbsp;&nbsp;<%=tvo.getItem("DESCRIPTION")%>
                </td>
              </tr>
            </table>
            <div style="font-size:1px;height:10px;"></div>
            <table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
              <tr>
                <td bgcolor="#EEEEEE" height="25">&nbsp;&nbsp;送货方式:</td>
              </tr>
              <tr>
                <td bgColor="#ffffff" height="25">
                  <%tvo = (GenericVO)bean.getItem("POSTMETHOD"); %>
                  <%=tvo.getItem("NAME")%>: <%=tvo.getItem("TIME")%><br />
                  <%
                  int sz = 1;
                  int xz = 0;
                  double je = 0;
                  if(tw%BaseUtil.todouble(tvo.getItemStr("FIRST"))==0){
                    xz = (int)(tw/BaseUtil.todouble(tvo.getItemStr("FIRST"))-1);
                  }
                  else{
                    xz = (int)(tw/BaseUtil.todouble(tvo.getItemStr("FIRST")));
                  }
                  je = BaseUtil.todouble(tvo.getItemStr("FIRSTFEE"))+xz*BaseUtil.todouble(tvo.getItemStr("NEXTFEE"))+BaseUtil.todouble(tvo.getItemStr("OTHERFEE"));
                  %>
                  <strong>计费总重</strong>: <font color="red"><%=tw%></font> 克<br>
                  <strong>首重</strong>:<font color="red"><%=tvo.getItemStr("FIRST")%></font> 克 <font color="red"><%=tvo.getItemStr("FIRSTFEE")%></font>元<br>
                  <strong>续重</strong>:<font color="red"><%=xz*BaseUtil.todouble(tvo.getItemStr("NEXT"))%></font> 克 <font color="red"><%=xz*BaseUtil.todouble(tvo.getItemStr("NEXTFEE"))%></font> 元<br>
                  <strong>其它费用</strong>:<%=tvo.getItemStr("OTHER")%>  <font color="red"><%=tvo.getItemStr("OTHERFEE")%></font> 元<br>
                  <strong>计费金额</strong>:<font color="red"><%=je%></font>
                </td>
              </tr>
            </table>
          </td>
          <td width="3%"></td>
          <td width="43%" valign="top">
            <table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
              <tr>
                <td bgcolor="#EEEEEE" height="25">&nbsp;&nbsp;<strong>积分使用:</strong></td>
              </tr>
              <tr>
                <td bgColor="#ffffff" height="25">
                  &nbsp;&nbsp;当前你拥有的积分:<strong><font color="#ff0000"><%=session.getAttribute("DOT")%></font></strong>分<br>
                  &nbsp;&nbsp;本次购物使用积分:<strong><font color="#ff0000"><%=bean.getItem("USEDOT")%></font></strong>分<br>
                </td>
              </tr>
            </table>
            <div style="font-size:1px;height:10px;"></div>
            <table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
              <tr>
                <td bgcolor="#EEEEEE" height="25">&nbsp;&nbsp;<strong>订单金额</strong></td>
              </tr>
              <tr>
                <td bgColor="#ffffff" height="11">
                <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                  <tr>
                    <td align="right" height="22">总金额:<strong><font color="#ff0000"><%=tp%></font></strong>&nbsp;元&nbsp;&nbsp;</td>
                  </tr>
                  <tr>
                    <td align="right" height="22">运费:<strong><font color="#ff0000"><%=je%></font></strong>&nbsp;元&nbsp;&nbsp;</td>
                  </tr>
                  <tr>
                    <td align="right" height="22">积分折现:<font id="dottomoney" color="red">0</font>&nbsp;元&nbsp;&nbsp;</td>
                  </tr>
                </table>
                </td>
              </tr>
              <tr>
                <td bgColor="#ffffff" height="12">
                <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                  <tr>
                    <td align="right" height="22">您需要付:<strong><font color="#ff0000" size="3" id="zje"><%=tp+je%></font></strong>&nbsp;元&nbsp;&nbsp;</td>
                  </tr>
                  <tr>
                    <td align="right" height="22">
                      您获得积分:<strong><font color="#ff0000" size="3"><%=td%></font></strong>&nbsp;分&nbsp;&nbsp;
                    </td>
                  </tr>
                </table>
                </td>
              </tr>
            </table>
            <div style="font-size:1px;height:10px;"></div>
            <table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC" height="56">
              <tr>
                <td bgcolor="#EEEEEE" height="23">&nbsp;&nbsp;订单备注 </td>
              </tr>
              <tr>
                <td bgColor="#ffffff" height="32" style="line-height: 150%" valign="top">
                  <p align="left"><%=bean.getItem("DESCRIPTION")%>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      </td>
    </tr>
  </table>
</div>

⌨️ 快捷键说明

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