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

📄 stati_dy.jsp

📁 这是一个学习jsp的基本程序
💻 JSP
📖 第 1 页 / 共 2 页
字号:
  a=ijb.price_in.toString();%><td><%=a%></td><%a="";if(ijb.time!=null)  a=ijb.time.toString();%><td><%=a%></td><%a="";if(ijb.person!=null)  a=ijb.person;%><td><%=a%></td></tr><%}if(xiaoshe!=0){%><tr bgcolor="#fafafa"> <td>小计</td>  <td></td>   <td></td>    <td></td>     <td><%=xiaoshe%></td>      <td><%=xiaoru%></td>       <td></td>        <td></td> </tr><%}}if(heshe!=0){%><tr bgcolor="#fafafa"> <td>合计</td>  <td></td>   <td></td>    <td></td>     <td><%=heshe%></td>      <td><%=heru%></td>       <td></td>        <td></td> </tr><%}zongshe = zongshe+heshe;zongru = zongru+heru;   }   if(zongshe!=0)   {   %>   <tr bgcolor="#fafafa">    <td>总计</td>     <td></td>      <td></td>       <td></td>        <td><%=zongshe%></td>         <td><%=zongru%></td>          <td></td>           <td></td>    </tr>   <%}}else{  Integer haiquid = new Integer(haiquname);  Iterator eqi = eqc.iterator();  String hname="";  Collection occ=officeUnitController.getUnitid(haiquid);  Iterator oit = occ.iterator();  if(oit.hasNext())  {  officeUnitStruct ofs = (officeUnitStruct)oit.next();  hname=ofs.processname;  }   double heshe=0;   double heru=0;  %>  <tr bgcolor="#fafafa">   <td><%=hname%></td>    <td></td>     <td></td>      <td></td>       <td></td>        <td></td>         <td></td>          <td></td>   </tr>  <%     Collection eqtc = new ArrayList();     while(eqi.hasNext())       {       EquipmentDetailsStruct eqds = new EquipmentDetailsStruct();       eqds = (EquipmentDetailsStruct)eqi.next();       Judge jd = new Judge();       if(jd.decide(haiquid,eqds.getUnitid()))                {             eqtc.add(eqds);                 }       }  for(int l=1;l<=5;l++)  {    double xiaoshe=0;    double xiaoru=0;  Collection eqtcc = new ArrayList();  eqi = eqtc.iterator();  while(eqi.hasNext())  {   EquipmentDetailsStruct eqds = new EquipmentDetailsStruct();   eqds = (EquipmentDetailsStruct)eqi.next();   if(eqds.getType().intValue()==l)      {     eqtcc.add(eqds);       }  }  eqi = eqtcc.iterator();  while(eqi.hasNext())    {    EquipmentDetailsStruct eqds = new EquipmentDetailsStruct();    eqds = (EquipmentDetailsStruct)eqi.next();  EquipmentJBean eqj = new EquipmentJBean();  eqj = eqController.getEquipmentByDeviceid(eqds.getDeviceid());  InaccountJBean ijb = new InaccountJBean();  try{  ijb = otherController.getInaccountByDeviceid(eqds.getDeviceid());  }  catch(Exception e)  {  ijb = new InaccountJBean();  }  xiaoshe=xiaoshe+eqds.price.doubleValue();  heshe=heshe+eqds.price.doubleValue();  if(ijb.price_in!=null)    {    xiaoru=xiaoru+ijb.price_in.doubleValue();    heru=heru+ijb.price_in.doubleValue();    }  %>  <tr bgcolor="#fafafa">  <%  String a="";  if(l==1)    a="VTS备件";  if(l==2)    a="航标设备及备件";  if(l==3)    a="AIS系统及备件";  if(l==4)    a="航测设备及备件";  if(l==5)    a="其他";  %>  <td><%=a%></td>  <td><%=eqds.getName()%></td>  <td><%=eqds.getModel()%></td>  <%  a="";  if(eqj.getStatus().intValue()==1)    a="未使用";  if(eqj.getStatus().intValue()==2)    a="正常使用";  if(eqj.getStatus().intValue()==3)    a="维修";  if(eqj.getStatus().intValue()==4)    a="待报废";  if(eqj.getStatus().intValue()==5)    a="已报废";  if(eqj.getStatus().intValue()==6)    a="其他";  %>  <td><%=a%></td>  <td><%=eqds.price%></td>  <%  a="";  if(ijb.price_in!=null)    a=ijb.price_in.toString();  %>  <td><%=a%></td>  <%  a="";  if(ijb.time!=null)    a=ijb.time.toString();  %>  <td><%=a%></td>  <%  a="";  if(ijb.person!=null)    a=ijb.person;  %>  <td><%=a%></td>  </tr>  <%  }  if(xiaoshe!=0)  {  %>  <tr bgcolor="#fafafa">   <td>小计</td>    <td></td>     <td></td>      <td></td>       <td><%=xiaoshe%></td>        <td><%=xiaoru%></td>         <td></td>          <td></td>   </tr>  <%  }}  if(heshe!=0)  {  %>  <tr bgcolor="#fafafa">   <td>合计</td>    <td></td>     <td></td>      <td></td>       <td><%=heshe%></td>        <td><%=heru%></td>         <td></td>          <td></td>   </tr>  <%}}}%>                  </form>                </table>              </tr>            </table>            <p><img src="../../images/msalogo.gif" width="272" height="50">            <table width="100%" border="0" cellspacing="0" cellpadding="0">              <tr>                <td height="3"><img src="a.gif" width="1" height="1"></td>              </tr>              <tr>                <td background="../../MacOS/hr.gif"><img src="../../MacOS/hr.gif" width="1" height="2"></td>              </tr>              <tr>                <td height="3"><img src="a.gif" width="1" height="1"></td>              </tr>            </table>            <table width="100%" border="0" cellspacing="0" cellpadding="0">              <tr>                <td> <div align="right"><a href="../../help.htm" target="blank" style="cursor:help" title="使用帮助"><img src="../../MacOS/help.gif" width="16" height="16" border="0">HELP</a></div></td>              </tr>            </table></TD>        </TR>        <TR>          <TD><IMG height=7 src="../../MacOS/leftbottom.gif" width=6></TD>          <TD background=../../MacOS/bottom.gif colSpan=3><IMG height=7        src="../../MacOS/bottom.gif" width=1></TD>          <TD><IMG height=7 src="../../MacOS/rightbottom.gif"  width=7></TD>        </TR>      </TABLE>      <BR>      <TABLE cellSpacing=1 cellPadding=2 width="300" border=0>        <TBODY>          <TR>            <TD align=center><FONT class=footer>Orient Super Net NMIE-OFFICE System 1.0              </FONT></TD>          </TR>        </TBODY>      </TABLE>  </DIV></BODY></HTML>    <%}%>

⌨️ 快捷键说明

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