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

📄 stati_modeled1.jsp

📁 《jsp案例开发》这本书的源代码。包括源代码和相关的具体配置操作步骤。非常不错
💻 JSP
📖 第 1 页 / 共 2 页
字号:
  String yinjin = "&nbsp;";  String beizhu = "&nbsp;";  if(rcs.time_introduce!=null)    yinjin=rcs.time_introduce.toString();  if(rcs.manufacturer!=null)    beizhu = rcs.manufacturer;  %>  <tr bgcolor="#fafafa">  <td><%=yinjin%>  <td><%=rcs.dev_name%>  <td><%=rcs.unit%>  <td><%=rcs.unit%>  <td>&nbsp;  <td>备用  <td><%=beizhu%>  </tr><%}%><%}//////////////////////////////////////海区//////////////////////////////////////////if(upunitid.intValue()==1){  int num = 0;  int checknum = 0;  int handnum = 0;  int changenum = 0;    Collection checkc0 = new ArrayList();    Collection checkc1 = handtakeController.getCheckByModel(model);    Iterator checki1 = checkc1.iterator();    while(checki1.hasNext())    {    CheckReportJBean crj = (CheckReportJBean)checki1.next();    if(crj.lastamount.intValue()>0)    {    num=num+crj.lastamount.intValue();    checknum=crj.lastamount.intValue();    for(int p=0;p<checknum;p++)    {    checkc0.add(crj);    }    }    }    Collection handc0 = new ArrayList();    Collection handc1 = handtakeController.getHandByModel(model);    Iterator handi1 = handc1.iterator();    while(handi1.hasNext())    {    HandtakeJBean hjb = (HandtakeJBean)handi1.next();    if(hjb.hamount.intValue()>0)    {      num=num+hjb.hamount.intValue();      handnum=hjb.hamount.intValue();      for(int p=0;p<handnum;p++)      {      handc0.add(hjb);      }    }    }    Collection changec0 = new ArrayList();    Collection changec1 = handtakeController.getRechangeByModel(model);    Iterator changei1 = changec1.iterator();    while(changei1.hasNext())    {    rechangeStruct rcs = (rechangeStruct)changei1.next();    if(rcs.hamount.intValue()>0)    {      num=num+rcs.hamount.intValue();      changenum=rcs.hamount.intValue();      for(int p=0;p<changenum;p++)      {      changec0.add(rcs);      }    }    }    Vector eqstatus = new Vector();    eqstatus.removeAllElements();    Collection eqdc0 = new ArrayList();    Collection eqc1 = eqController.getEqdetailsByModel(model);    Iterator eqi1 = eqc1.iterator();    while(eqi1.hasNext())    {    EquipmentDetailsStruct eqd = (EquipmentDetailsStruct)eqi1.next();    EquipmentJBean eqj = eqController.getEquipmentByDeviceid(eqd.getDeviceid());    eqdc0.add(eqd);    eqstatus.addElement(eqj.getStatus());  }  num=num+eqdc0.size();  count = num;  int beifang = 0;  int donghai = 0;  int nanhai = 0;  int hainan = 0;  Judge jd = new Judge();  Iterator checkit = checkc0.iterator();  while(checkit.hasNext())  {  CheckReportJBean crj = (CheckReportJBean)checkit.next();  if(jd.decide((new Integer(2)),crj.unitid))    beifang++;  if(jd.decide((new Integer(3)),crj.unitid))    donghai++;  if(jd.decide((new Integer(4)),crj.unitid))    nanhai++;  if(jd.decide((new Integer(5)),crj.unitid))    hainan++;  }  Iterator handit = handc0.iterator();  while(handit.hasNext())  {  HandtakeJBean hjb = (HandtakeJBean)handit.next();  if(jd.decide((new Integer(2)),hjb.unitid))    beifang++;  if(jd.decide((new Integer(3)),hjb.unitid))    donghai++;  if(jd.decide((new Integer(4)),hjb.unitid))    nanhai++;  if(jd.decide((new Integer(5)),hjb.unitid))    hainan++;  }  Iterator changeit = changec0.iterator();  while(changeit.hasNext())  {  rechangeStruct rcs = (rechangeStruct)changeit.next();  if(jd.decide((new Integer(2)),rcs.unitid))    beifang++;  if(jd.decide((new Integer(3)),rcs.unitid))    donghai++;  if(jd.decide((new Integer(4)),rcs.unitid))    nanhai++;  if(jd.decide((new Integer(5)),rcs.unitid))    hainan++;  }  Iterator eqdit = eqdc0.iterator();  while(eqdit.hasNext())  {  EquipmentDetailsStruct eqd = (EquipmentDetailsStruct)eqdit.next();  if(jd.decide((new Integer(2)),eqd.getUnitid()))    beifang++;  if(jd.decide((new Integer(3)),eqd.getUnitid()))    donghai++;  if(jd.decide((new Integer(4)),eqd.getUnitid()))    nanhai++;  if(jd.decide((new Integer(5)),eqd.getUnitid()))    hainan++;  }  Iterator checki0 = checkc0.iterator();  Iterator handi0 = handc0.iterator();  Iterator changei0 = changec0.iterator();  Iterator eqdi0 =eqdc0.iterator();  %>  <tr bgcolor="#fafafa">  <%  if(num>0)  {  %>  <td rowspan=<%=num%>><%=model%>  <td rowspan=<%=num%>><%=num%>  <td rowspan=<%=num%>><%=beifang%>  <td rowspan=<%=num%>><%=donghai%>  <td rowspan=<%=num%>><%=nanhai%>  <td rowspan=<%=num%>><%=hainan%>  <%}%>  <%    if(checki0.hasNext())    {    CheckReportJBean cjb = (CheckReportJBean)checki0.next();    String beunit="&nbsp;";    c = officeUnitController.getUnitid(cjb.unitid);    i = c.iterator();    while(i.hasNext())    {    officeUnitStruct ous = new officeUnitStruct();    ous = (officeUnitStruct)i.next();    beunit = ous.processname;  }  String yinjin = "&nbsp;";  String beizhu = "&nbsp;";  if(cjb.time_land!=null)    yinjin = cjb.time_land.toString();  if(cjb.opinion!=null)    beizhu = cjb.opinion;  %>  <td><%=yinjin%>  <td><%=cjb.dev_name%>  <td><%=beunit%>  <td><%=beunit%>  <td>&nbsp;  <td>备用  <td><%=beizhu%>  <%}  else if(handi0.hasNext())  {  HandtakeJBean hjb = (HandtakeJBean)handi0.next();  String yinjin = "&nbsp;";  String beizhu = "&nbsp;";  if(hjb.time_introduce!=null)    yinjin = hjb.time_introduce.toString();  if(hjb.manufacturer!=null)    beizhu = hjb.manufacturer;  %>  <td><%=yinjin%>  <td><%=hjb.dev_name%>  <td><%=hjb.unit%>  <td><%=hjb.unit%>  <td>&nbsp;  <td>备用  <td><%=beizhu%>  <%}    else if(changei0.hasNext())    {  rechangeStruct rcs = (rechangeStruct)changei0.next();  String yinjin = "&nbsp;";  String beizhu = "&nbsp;";  if(rcs.time_introduce!=null)    yinjin=rcs.time_introduce.toString();  if(rcs.manufacturer!=null)    beizhu = rcs.manufacturer;  %>  <td><%=yinjin%>  <td><%=rcs.dev_name%>  <td><%=rcs.unit%>  <td><%=rcs.unit%>  <td>&nbsp;  <td>备用  <td><%=beizhu%>  <%}    else if(eqdi0.hasNext())    {    EquipmentDetailsStruct eqd = (EquipmentDetailsStruct)eqdi0.next();    Integer devstatus = (Integer)eqstatus.elementAt(0);    eqstatus.remove(0);    String devs = "其他";    if(devstatus.intValue()==1)      devs="备用";    if(devstatus.intValue()==2)      devs="正常使用";    if(devstatus.intValue()==3)      devs="维修";    if(devstatus.intValue()==4)      devs="待报废";    if(devstatus.intValue()==5)      devs="已报废";    String beunit = "&nbsp";    c = officeUnitController.getUnitid(eqd.getUnitid());    i = c.iterator();    while(i.hasNext())    {    officeUnitStruct ous = new officeUnitStruct();    ous = (officeUnitStruct)i.next();    beunit = ous.processname;    }    String disunit = beunit;    String install = "&nbsp;";    if(devstatus.intValue()!=1)    {    Collection circ = eqController.getCircsByDeviceId(eqd.getDeviceid());    Iterator ciri = circ.iterator();    while(ciri.hasNext())    {    circscollectionStruct ccs = (circscollectionStruct)ciri.next();    if(ccs.installtime!=null)      install = ccs.installtime.toString();    if(ccs.address!=null)      disunit=ccs.address;    }  }  String yinjin = "&nbsp;";  String beizhu = "&nbsp;";  if(eqd.getIntime()!=null)    yinjin = eqd.getIntime().toString();  if(eqd.getCompany()!=null)    beizhu = eqd.getCompany();  %>  <td><%=yinjin%>  <td><%=eqd.getName()%>  <td><%=disunit%>  <td><%=beunit%>  <td><%=install%>  <td><%=devs%>  <td><%=beizhu%>  <%}%>  </tr>  <%    while(eqdi0.hasNext())      {      EquipmentDetailsStruct eqd = (EquipmentDetailsStruct)eqdi0.next();      Integer devstatus = (Integer)eqstatus.elementAt(0);      eqstatus.remove(0);      String devs = "其他";      if(devstatus.intValue()==1)        devs="备用";      if(devstatus.intValue()==2)        devs="正常使用";      if(devstatus.intValue()==3)        devs="维修";      if(devstatus.intValue()==4)        devs="待报废";      if(devstatus.intValue()==5)        devs="已报废";      String beunit = "&nbsp";      c = officeUnitController.getUnitid(eqd.getUnitid());      i = c.iterator();      while(i.hasNext())      {      officeUnitStruct ous = new officeUnitStruct();      ous = (officeUnitStruct)i.next();      beunit = ous.processname;      }      String disunit = beunit;      String install = "&nbsp;";      if(devstatus.intValue()!=1)      {      Collection circ = eqController.getCircsByDeviceId(eqd.getDeviceid());      Iterator ciri = circ.iterator();      while(ciri.hasNext())      {      circscollectionStruct ccs = (circscollectionStruct)ciri.next();      if(ccs.installtime!=null)        install = ccs.installtime.toString();      if(ccs.address!=null)        disunit=ccs.address;      }    }    String yinjin = "&nbsp;";    String beizhu = "&nbsp;";    if(eqd.getIntime()!=null)      yinjin = eqd.getIntime().toString();    if(eqd.getCompany()!=null)      beizhu = eqd.getCompany();    %>    <tr bgcolor="#fafafa">    <td><%=yinjin%>    <td><%=eqd.getName()%>    <td><%=disunit%>    <td><%=beunit%>    <td><%=install%>    <td><%=devs%>    <td><%=beizhu%>    </tr>  <%}%>  <%    while(checki0.hasNext())      {      CheckReportJBean cjb = (CheckReportJBean)checki0.next();      String beunit="&nbsp;";      c = officeUnitController.getUnitid(cjb.unitid);      i = c.iterator();      while(i.hasNext())      {      officeUnitStruct ous = new officeUnitStruct();      ous = (officeUnitStruct)i.next();      beunit = ous.processname;    }    String yinjin = "&nbsp;";    String beizhu = "&nbsp;";    if(cjb.time_land!=null)      yinjin = cjb.time_land.toString();    if(cjb.opinion!=null)      beizhu = cjb.opinion;    %>    <tr bgcolor="#fafafa">    <td><%=yinjin%>    <td><%=cjb.dev_name%>    <td><%=beunit%>    <td><%=beunit%>    <td>&nbsp;    <td>备用    <td><%=beizhu%>    </tr>  <%}  %>  <%    while(handi0.hasNext())    {    HandtakeJBean hjb = (HandtakeJBean)handi0.next();    String yinjin = "&nbsp;";    String beizhu = "&nbsp;";    if(hjb.time_introduce!=null)      yinjin = hjb.time_introduce.toString();    if(hjb.manufacturer!=null)      beizhu = hjb.manufacturer;    %>    <tr bgcolor="#fafafa">    <td><%=yinjin%>    <td><%=hjb.dev_name%>    <td><%=hjb.unit%>    <td><%=hjb.unit%>    <td>&nbsp;    <td>备用    <td><%=beizhu%>    </tr>  <%}  %>  <%    while(changei0.hasNext())      {    rechangeStruct rcs = (rechangeStruct)changei0.next();    String yinjin = "&nbsp;";    String beizhu = "&nbsp;";    if(rcs.time_introduce!=null)      yinjin=rcs.time_introduce.toString();    if(rcs.manufacturer!=null)      beizhu = rcs.manufacturer;    %>    <tr bgcolor="#fafafa">    <td><%=yinjin%>    <td><%=rcs.dev_name%>    <td><%=rcs.unit%>    <td><%=rcs.unit%>    <td>&nbsp;    <td>备用    <td><%=beizhu%>    </tr>  <%}%><%}%><%                 if(count==0){                   %>                   <tr align=center bgcolor="#e0e0e0">                   <td colspan="15">没有满足条件的记录!</td>                   </tr>                     <%}%>                   <tr align=center bgcolor="#e0e0e0">                   <td colspan="15"><input type="button" class="file" value=" 返  回 " onclick="location='stati_model.jsp'"></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 + -