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

📄 cancelshippinglist.jsp

📁 运输模块代码
💻 JSP
字号:
<%@page contentType="text/html;charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%>
<%@page import= "com.hexiesoft.utils.*"%>

<%
	String PG_TITLE =(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("TITLE");
    String con=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("CONFIRM_DELETE");
    String label_1=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("LABEL_1");
    String label_2=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("LABEL_2");
    String label_3=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("LABEL_3");
    String label_4=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("LABEL_4");
    String label_5=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("LABEL_5");
    String label_6=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("LABEL_6");
    String label_7=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("LABEL_7");
    String label_8=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("LABEL_8");
    String button=(String)Configure.getConfigure(sIe_Language, "CancelShippingList").get("BUTTON");
    String sCode = DataConvert.toRealString(iPostChange,(String)CurPage.getParameter("Code"));

%>

<script type="text/javascript">
    function checkform()
    {
        OpenComp("CancelShippingList", "/ShippingManager/ShippingList/cancelShippingList/DoCancel.jsp","Code="+"<%=sCode%>"+"&rand="+randomNumber(),"right","");
        self.close();
    }
</script>


<head><title><%=PG_TITLE%></title></head>
<body class="pagebackground"   text="#000000">
<%
    String sql="";
    ASResultSet packnoteRs;

    sql="select * from shipment where blno='"+sCode+"'";
    ASResultSet shipmentRs=Sqlca.getASResultSet(sql);

%>
<%
    String cWeight="";
    String sName="";
    float loaded=0;
    float nett=0;
    String shipdt="";
       //shipment表中,相同的blno对应的shipdt,name,add1,add2,islbs都相同
        shipmentRs.next();
        shipdt=shipmentRs.getString("shipdt");
        sName=shipmentRs.getString("name")+shipmentRs.getString("add1")+shipmentRs.getString("add2");
        if(shipmentRs.getString("islbs").equals("1"))
        {
            cWeight="lbs";
        }
        else
        {
            cWeight="kgs";
        }

    sql="select * from packnote where blno='"+sCode+"'";
    packnoteRs=Sqlca.getASResultSet(sql);
    while(packnoteRs.next()){
         loaded=loaded+packnoteRs.getFloat("gross");
         nett=nett+packnoteRs.getFloat("net");
    }
  int i=0;
%>
<p  align="center"><font size="+2"><strong><font color="#333300"><%=label_1%></font></strong></font></p>
<table width="80%" border="0" align=center>
  <tr>
    <td width="13%"><strong><font color="#333300"><%=label_2%></font></strong> </td>
    <td width="15%"><%=sCode%></td>
    <td width="23%">&nbsp;</td>
    <td width="12%"><font color="#336600"><strong><%=label_3%></strong></font> </td>
    <td colspan="2"><%=shipdt.substring(0,10)%></td>
  </tr>
    <%
    while(shipmentRs.next())
    {
    %>
  <tr>
    <td><font color="#333300"><strong><%if(i==0){%><%=label_4%><%}%></strong></font> </td>
    <td width="15%" align='left'><%=shipmentRs.getString("worksno")%></td>
    <td colspan="3" align='left'><%=shipmentRs.getString("DESC")%></td>
    <td width="9%" align='left'><%=StringUtils.nullToEmpty(shipmentRs.getString("custpo"))%></td>
    <td width="10%" align='left'><%=StringUtils.nullToEmpty(shipmentRs.getString("custprod"))%></td>
    <td width="7%" align='left'><%=(shipmentRs.getFloat("net"))+""%></td>
  </tr>
<%
    i++;
    }

    sql="select * from packnote  where blno='"+sCode+"'";
    packnoteRs=Sqlca.getASResultSet(sql);
%>
</table>
<p  align="center"><font size="4"><strong><font color="#333300"><%=sName%></font></strong></font></p>

 <table width="80%" border="0" align="center">
  <tr>
    <td width="10%" ><font color="#333300" size="+1"><%=label_5%></font></td>
    <td colspan="2" ><%=loaded%></td>
    <td width="13%" ><font color="#333300" size="+1"><%=label_6%></font></td>
    <td width="11%" ><%=nett%></td>
    <td width="8%" ><%=cWeight%></td>
    <td width="42%" >&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><font color="#333300"><%=label_7%></font></td>
    <td colspan="2"><font color="#333300"><%=label_8%></font></td>
    <td colspan="2">&nbsp;</td>
  </tr>
<%
    while(packnoteRs.next())
    {
%>
  <tr>
    <td colspan="3"><%=packnoteRs.getString("pnno")%></td>
    <td colspan="2"><%=packnoteRs.getString("net")%></td>
    <td colspan="2">&nbsp;</td>
  </tr>
<%
    }
%>
</table>
<form action="javascript:checkform();" onsubmit="return confirm('<%=con%>')">

    <table width="80%" border="0" align="center">
  <tr>
    <td>&nbsp;</td>
    <td align="right"><input type="submit" name="next" value="<%=button%>"></td>
  </tr>
</table>
</form>
</body>

<%@ include file="/IncludeEnd.jsp"%>

⌨️ 快捷键说明

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