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

📄 equipmentdetails.jsp

📁 《jsp案例开发》这本书的源代码。包括源代码和相关的具体配置操作步骤。非常不错
💻 JSP
📖 第 1 页 / 共 3 页
字号:
 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()==buid.intValue()) {   System.out.println("1q"); %> <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"><%=hbzname%>:</font>&nbsp;&nbsp;总数:<%=hbzzong%>&nbsp;&nbsp;备用:<%=hbzb%>&nbsp;&nbsp;正常使用:<%=hbzs%>&nbsp;&nbsp;维修:<%=hbzw%>&nbsp;&nbsp;待报废:<%=hbzd%>&nbsp;&nbsp;已报废:<%=hbzy%> </tr> <% }}else{  if(ousi.hasNext()) { ous = (officeUnitStruct)ousi.next();}Integer hbcid=ous.upunitid;System.out.println("hbcid="+hbcid+"id="+ous.unitid);officec = new ArrayList();ous = new officeUnitStruct();officec = officeUnitController.getUnitid(hbcid);ousi = officec.iterator();if(ousi.hasNext()) { ous = (officeUnitStruct)ousi.next();}Integer hqid=ous.upunitid;String hbcname = ous.processname;System.out.println("hqid="+hqid);officec = new ArrayList();ous = new officeUnitStruct();officec = officeUnitController.getUnitid(hqid);ousi = officec.iterator();if(ousi.hasNext()){ ous = (officeUnitStruct)ousi.next();}String hqname = ous.processname;Integer buid=new Integer(1);String buname="部海事局";int hbzzong = 0;int hbzb = 0;int hbzs = 0;int hbzw = 0;int hbzd = 0;int hbzy = 0;int hbczong = 0;int hbcb = 0;int hbcs = 0;int hbcw = 0;int hbcd = 0;int hbcy = 0;int hqzong = 0;int hqb = 0;int hqs = 0;int hqw = 0;int hqd = 0;int hqy = 0;int buzong = 0;int bub = 0;int bus = 0;int buw = 0;int bud = 0;int buy = 0;if(user.unitid.intValue()==hbzid.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;}if(user.unitid.intValue()==hbcid.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;}if(user.unitid.intValue()==hqid.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());

⌨️ 快捷键说明

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