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

📄 equipmentdetails.jsp

📁 《jsp案例开发》这本书的源代码。包括源代码和相关的具体配置操作步骤。非常不错
💻 JSP
📖 第 1 页 / 共 2 页
字号:
if(jd.decide(user.unitid,hbzeqj.getUnitid())){hbzc.add(hbzeqj);}}hbzi = hbzc.iterator();while(hbzi.hasNext()){EquipmentJBean hbzeqj = (EquipmentJBean)hbzi.next();if(hbzeqj.getStatus().intValue()==1)hbzb++;if(hbzeqj.getStatus().intValue()==2)hbzs++;if(hbzeqj.getStatus().intValue()==3)hbzw++;if(hbzeqj.getStatus().intValue()==4)hbzd++;if(hbzeqj.getStatus().intValue()==5)hbzy++;}hbzzong = hbzzong+hbzb+hbzs+hbzw+hbzd+hbzy;Collection hbctc = new ArrayList();hbctc = eqController.getEqdetailsByName(eqd.getName());Collection hbcc = new ArrayList();Iterator hbci = hbctc.iterator();while(hbci.hasNext()){EquipmentDetailsStruct hbceqd = (EquipmentDetailsStruct)hbci.next();EquipmentJBean hbceqj = eqController.getEquipmentByDeviceid(hbceqd.getDeviceid());Judge jd = new Judge();if(jd.decide(user.unitid,hbceqj.getUnitid())){hbcc.add(hbceqj);}}hbci = hbcc.iterator();while(hbci.hasNext()){EquipmentJBean hbceqj = (EquipmentJBean)hbci.next();if(hbceqj.getStatus().intValue()==1)  hbcb++;if(hbceqj.getStatus().intValue()==2)  hbcs++;if(hbceqj.getStatus().intValue()==3)  hbcw++;if(hbceqj.getStatus().intValue()==4)  hbcd++;if(hbceqj.getStatus().intValue()==5)  hbcy++;}Collection jiaojiec = new ArrayList();Collection diaoboc = new ArrayList();jiaojiec = hController.getHandByName(eqd.getName());diaoboc = hController.getRechangeByName(eqd.getName());Iterator jiaojiei = jiaojiec.iterator();while(jiaojiei.hasNext()){HandtakeJBean hjb = (HandtakeJBean)jiaojiei.next();Judge jd = new Judge();if(jd.decide(user.unitid,hjb.unitid)){hbcb = hbcb+hjb.hamount.intValue();}}Iterator diaoboi = diaoboc.iterator();while(diaoboi.hasNext()){rechangeStruct rcs = (rechangeStruct)diaoboi.next();Judge jd = new Judge();if(jd.decide(user.unitid,rcs.unitid)){hbcb = hbcb+rcs.hamount.intValue();}}hbczong = hbcb+hbcs+hbcw+hbcd+hbcy;  Collection hqtc = new ArrayList();  hqtc = eqController.getEqdetailsByName(eqd.getName());  Collection hqc = new ArrayList();  Iterator hqi = hqtc.iterator();  while(hqi.hasNext())  {  EquipmentDetailsStruct hqeqd = (EquipmentDetailsStruct)hqi.next();  EquipmentJBean hqeqj = eqController.getEquipmentByDeviceid(hqeqd.getDeviceid());  Judge jd = new Judge();  if(jd.decide(user.unitid,hqeqj.getUnitid()))  {  hqc.add(hqeqj);  }  }  hqi = hqc.iterator();  while(hqi.hasNext())  {  EquipmentJBean hqeqj = (EquipmentJBean)hqi.next();  if(hqeqj.getStatus().intValue()==1)    hqb++;  if(hqeqj.getStatus().intValue()==2)    hqs++;  if(hqeqj.getStatus().intValue()==3)    hqw++;  if(hqeqj.getStatus().intValue()==4)    hqd++;  if(hqeqj.getStatus().intValue()==5)    hqy++;}Collection jiaojiec1 = new ArrayList();Collection diaoboc1 = new ArrayList();Collection yanshouc1 = new ArrayList();jiaojiec1 = hController.getHandByName(eqd.getName());diaoboc1 = hController.getRechangeByName(eqd.getName());yanshouc1 = hController.getCheckByName(eqd.getName());Iterator jiaojiei1 = jiaojiec1.iterator();while(jiaojiei1.hasNext()){HandtakeJBean hjb = (HandtakeJBean)jiaojiei1.next();Judge jd = new Judge();if(jd.decide(user.unitid,hjb.unitid)){hqb = hqb+hjb.hamount.intValue();}}Iterator diaoboi1 = diaoboc1.iterator();while(diaoboi1.hasNext()){rechangeStruct rcs = (rechangeStruct)diaoboi1.next();Judge jd = new Judge();if(jd.decide(user.unitid,rcs.unitid)){hqb = hqb+rcs.hamount.intValue();}}Iterator yanshoui1 = yanshouc1.iterator();while(yanshoui1.hasNext()){CheckReportJBean crj = (CheckReportJBean)yanshoui1.next();Judge jd = new Judge();if(jd.decide(user.unitid,crj.unitid)){hqb = hqb+crj.lastamount.intValue();}}hqzong = hqb+hqs+hqw+hqd+hqy;}if(user.unitid.intValue()==buid.intValue()){  Collection hbztc = new ArrayList();hbztc = eqController.getEqdetailsByName(eqd.getName());Collection hbzc = new ArrayList();Iterator hbzi = hbztc.iterator();while(hbzi.hasNext()){EquipmentDetailsStruct hbzeqd = (EquipmentDetailsStruct)hbzi.next();EquipmentJBean hbzeqj = eqController.getEquipmentByDeviceid(hbzeqd.getDeviceid());Judge jd = new Judge();if(jd.decide(user.unitid,hbzeqj.getUnitid())){hbzc.add(hbzeqj);}}hbzi = hbzc.iterator();while(hbzi.hasNext()){EquipmentJBean hbzeqj = (EquipmentJBean)hbzi.next();if(hbzeqj.getStatus().intValue()==1)hbzb++;if(hbzeqj.getStatus().intValue()==2)hbzs++;if(hbzeqj.getStatus().intValue()==3)hbzw++;if(hbzeqj.getStatus().intValue()==4)hbzd++;if(hbzeqj.getStatus().intValue()==5)hbzy++;}hbzzong = hbzzong+hbzb+hbzs+hbzw+hbzd+hbzy;Collection hbctc = new ArrayList();hbctc = eqController.getEqdetailsByName(eqd.getName());Collection hbcc = new ArrayList();Iterator hbci = hbctc.iterator();while(hbci.hasNext()){EquipmentDetailsStruct hbceqd = (EquipmentDetailsStruct)hbci.next();EquipmentJBean hbceqj = eqController.getEquipmentByDeviceid(hbceqd.getDeviceid());Judge jd = new Judge();if(jd.decide(user.unitid,hbceqj.getUnitid())){hbcc.add(hbceqj);}}hbci = hbcc.iterator();while(hbci.hasNext()){EquipmentJBean hbceqj = (EquipmentJBean)hbci.next();if(hbceqj.getStatus().intValue()==1)hbcb++;if(hbceqj.getStatus().intValue()==2)hbcs++;if(hbceqj.getStatus().intValue()==3)hbcw++;if(hbceqj.getStatus().intValue()==4)hbcd++;if(hbceqj.getStatus().intValue()==5)hbcy++;}Collection jiaojiec = new ArrayList();Collection diaoboc = new ArrayList();jiaojiec = hController.getHandByName(eqd.getName());diaoboc = hController.getRechangeByName(eqd.getName());Iterator jiaojiei = jiaojiec.iterator();while(jiaojiei.hasNext()){HandtakeJBean hjb = (HandtakeJBean)jiaojiei.next();Judge jd = new Judge();if(jd.decide(user.unitid,hjb.unitid)){hbcb = hbcb+hjb.hamount.intValue();}}Iterator diaoboi = diaoboc.iterator();while(diaoboi.hasNext()){rechangeStruct rcs = (rechangeStruct)diaoboi.next();Judge jd = new Judge();if(jd.decide(user.unitid,rcs.unitid)){hbcb = hbcb+rcs.hamount.intValue();}}hbczong = hbcb+hbcs+hbcw+hbcd+hbcy;Collection hqtc = new ArrayList();hqtc = eqController.getEqdetailsByName(eqd.getName());Collection hqc = new ArrayList();Iterator hqi = hqtc.iterator();while(hqi.hasNext()){EquipmentDetailsStruct hqeqd = (EquipmentDetailsStruct)hqi.next();EquipmentJBean hqeqj = eqController.getEquipmentByDeviceid(hqeqd.getDeviceid());Judge jd = new Judge();if(jd.decide(user.unitid,hqeqj.getUnitid())){hqc.add(hqeqj);}}hqi = hqc.iterator();while(hqi.hasNext()){EquipmentJBean hqeqj = (EquipmentJBean)hqi.next();if(hqeqj.getStatus().intValue()==1)  hqb++;if(hqeqj.getStatus().intValue()==2)  hqs++;if(hqeqj.getStatus().intValue()==3)  hqw++;if(hqeqj.getStatus().intValue()==4)  hqd++;if(hqeqj.getStatus().intValue()==5)  hqy++;}Collection jiaojiec1 = new ArrayList();Collection diaoboc1 = new ArrayList();Collection yanshouc1 = new ArrayList();jiaojiec1 = hController.getHandByName(eqd.getName());diaoboc1 = hController.getRechangeByName(eqd.getName());yanshouc1 = hController.getCheckByName(eqd.getName());Iterator jiaojiei1 = jiaojiec1.iterator();while(jiaojiei1.hasNext()){HandtakeJBean hjb = (HandtakeJBean)jiaojiei1.next();Judge jd = new Judge();if(jd.decide(user.unitid,hjb.unitid)){hqb = hqb+hjb.hamount.intValue();}}Iterator diaoboi1 = diaoboc1.iterator();while(diaoboi1.hasNext()){rechangeStruct rcs = (rechangeStruct)diaoboi1.next();Judge jd = new Judge();if(jd.decide(user.unitid,rcs.unitid)){hqb = hqb+rcs.hamount.intValue();}}Iterator yanshoui1 = yanshouc1.iterator();while(yanshoui1.hasNext()){CheckReportJBean crj = (CheckReportJBean)yanshoui1.next();Judge jd = new Judge();if(jd.decide(user.unitid,crj.unitid)){hqb = hqb+crj.lastamount.intValue();}}hqzong = hqb+hqs+hqw+hqd+hqy;  Collection butc = new ArrayList();  butc = eqController.getEqdetailsByName(eqd.getName());  Collection buc = new ArrayList();  Iterator bui = butc.iterator();  while(bui.hasNext())  {  EquipmentDetailsStruct bueqd = (EquipmentDetailsStruct)bui.next();  EquipmentJBean bueqj = eqController.getEquipmentByDeviceid(bueqd.getDeviceid());  buc.add(bueqj);  }  bui = buc.iterator();  while(bui.hasNext())  {  EquipmentJBean bueqj = (EquipmentJBean)bui.next();  if(bueqj.getStatus().intValue()==1)    bub++;  if(bueqj.getStatus().intValue()==2)    bus++;  if(bueqj.getStatus().intValue()==3)    buw++;  if(bueqj.getStatus().intValue()==4)    bud++;  if(bueqj.getStatus().intValue()==5)    buy++;}Collection jiaojiec2 = new ArrayList();Collection diaoboc2 = new ArrayList();Collection yanshouc2 = new ArrayList();jiaojiec2 = hController.getHandByName(eqd.getName());diaoboc2 = hController.getRechangeByName(eqd.getName());yanshouc2 = hController.getCheckByName(eqd.getName());Iterator jiaojiei2 = jiaojiec2.iterator();while(jiaojiei2.hasNext()){HandtakeJBean hjb = (HandtakeJBean)jiaojiei2.next();bub = bub+hjb.hamount.intValue();}Iterator diaoboi2 = diaoboc2.iterator();while(diaoboi2.hasNext()){rechangeStruct rcs = (rechangeStruct)diaoboi2.next();bub = bub+rcs.hamount.intValue();}Iterator yanshoui2 = yanshouc2.iterator();while(yanshoui2.hasNext()){CheckReportJBean crj = (CheckReportJBean)yanshoui2.next();bub = bub+crj.lastamount.intValue();}buzong = bub+bus+buw+bud+buy;}%><%if(user.unitid.intValue()==hbzid.intValue()){%><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hbzname%>:</font>&nbsp;&nbsp;总数:<%=hbzzong%>&nbsp;&nbsp;备用:<%=hbzb%>&nbsp;&nbsp;正常使用:<%=hbzs%>&nbsp;&nbsp;维修:<%=hbzw%>&nbsp;&nbsp;待报废:<%=hbzd%>&nbsp;&nbsp;已报废:<%=hbzy%></tr><%}if(user.unitid.intValue()==hbcid.intValue()){%><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hbcname%>:</font>&nbsp;&nbsp;总数:<%=hbczong%>&nbsp;&nbsp;备用:<%=hbcb%>&nbsp;&nbsp;正常使用:<%=hbcs%>&nbsp;&nbsp;维修:<%=hbcw%>&nbsp;&nbsp;待报废:<%=hbcd%>&nbsp;&nbsp;已报废:<%=hbcy%></tr><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hbzname%>:</font>&nbsp;&nbsp;总数:<%=hbzzong%>&nbsp;&nbsp;备用:<%=hbzb%>&nbsp;&nbsp;正常使用:<%=hbzs%>&nbsp;&nbsp;维修:<%=hbzw%>&nbsp;&nbsp;待报废:<%=hbzd%>&nbsp;&nbsp;已报废:<%=hbzy%></tr><%}if(user.unitid.intValue()==hqid.intValue()){%><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hqname%>:</font>&nbsp;&nbsp;总数:<%=hqzong%>&nbsp;&nbsp;备用:<%=hqb%>&nbsp;&nbsp;正常使用:<%=hqs%>&nbsp;&nbsp;维修:<%=hqw%>&nbsp;&nbsp;待报废:<%=hqd%>&nbsp;&nbsp;已报废:<%=hqy%></tr><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hbcname%>:</font>&nbsp;&nbsp;总数:<%=hbczong%>&nbsp;&nbsp;备用:<%=hbcb%>&nbsp;&nbsp;正常使用:<%=hbcs%>&nbsp;&nbsp;维修:<%=hbcw%>&nbsp;&nbsp;待报废:<%=hbcd%>&nbsp;&nbsp;已报废:<%=hbcy%></tr><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hbzname%>:</font>&nbsp;&nbsp;总数:<%=hbzzong%>&nbsp;&nbsp;备用:<%=hbzb%>&nbsp;&nbsp;正常使用:<%=hbzs%>&nbsp;&nbsp;维修:<%=hbzw%>&nbsp;&nbsp;待报废:<%=hbzd%>&nbsp;&nbsp;已报废:<%=hbzy%></tr><%}if(user.unitid.intValue()==buid.intValue()){%><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=buname%>:</font>&nbsp;&nbsp;总数:<%=buzong%>&nbsp;&nbsp;备用:<%=bub%>&nbsp;&nbsp;正常使用:<%=bus%>&nbsp;&nbsp;维修:<%=buw%>&nbsp;&nbsp;待报废:<%=bud%>&nbsp;&nbsp;已报废:<%=buy%></tr><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hqname%>:</font>&nbsp;&nbsp;总数:<%=hqzong%>&nbsp;&nbsp;备用:<%=hqb%>&nbsp;&nbsp;正常使用:<%=hqs%>&nbsp;&nbsp;维修:<%=hqw%>&nbsp;&nbsp;待报废:<%=hqd%>&nbsp;&nbsp;已报废:<%=hqy%></tr><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hbcname%>:</font>&nbsp;&nbsp;总数:<%=hbczong%>&nbsp;&nbsp;备用:<%=hbcb%>&nbsp;&nbsp;正常使用:<%=hbcs%>&nbsp;&nbsp;维修:<%=hbcw%>&nbsp;&nbsp;待报废:<%=hbcd%>&nbsp;&nbsp;已报废:<%=hbcy%></tr><tr bgcolor="#fafafa"><td colspan="4"><font  class="strong"><%=hbzname%>:</font>&nbsp;&nbsp;总数:<%=hbzzong%>&nbsp;&nbsp;备用:<%=hbzb%>&nbsp;&nbsp;正常使用:<%=hbzs%>&nbsp;&nbsp;维修:<%=hbzw%>&nbsp;&nbsp;待报废:<%=hbzd%>&nbsp;&nbsp;已报废:<%=hbzy%></tr><%}%>                     <tr bgcolor="#e0e0e0" align="center">                       <td colspan="3" height="30"><%if(user.userAccess.intValue()==11){%>                        &nbsp; <input type="button" name="Button32" value=" 修  改 " class="file" onClick="location='equipmentmodify1.jsp?deviceid=<%=eqj.getDeviceid()%>'">                        &nbsp; <input type="button" name="Button32" value=" 删  除 " class="file" onClick="location='equipmentdel.jsp?deviceid=<%=eqj.getDeviceid()%>'"><%}%>                      <input type="button" name="Button21" value=" 返  回 " class="file" onClick="history.back();">                      </td>                     </tr>                   </table>                 </td>               </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><IMG height=1         src="MacOS/hr_black.gif" width="100%"><BR>             Orient Super Net MSA-OFFICE System               </FONT></TD>           </TR>         </TBODY>       </TABLE>     </form></DIV></BODY></HTML><%}%>

⌨️ 快捷键说明

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