Examples of OredaEqipment


Examples of com.ordobill.webapp.beans.OredaEqipment

 
  @SuppressWarnings("unchecked")
  public ActionForward infoList(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) throws Exception {
    Oreda _Oreda = (Oreda)form;
    OredaEqipment _OredaEqipment = new OredaEqipment();
     
    ArrayList<Oreda> oredaListInfo = (ArrayList<Oreda>) sqlMap.queryForList("Oreda.listInfo", _Oreda);
    String taxono = "";
    String title_item = "";
        if (oredaListInfo.size()>0) {
          title_item = oredaListInfo.get(0).getTop_item().replace("||", "&nbsp");
        StringTokenizer strT = new StringTokenizer(oredaListInfo.get(0).getTop_taxonomyno() , "||");
          int cnt = strT.countTokens()
          while(strT.hasMoreTokens()){
            String tempStr = strT.nextToken();
            if(!tempStr.equals("") && !tempStr.equals(null)){
              //taxono += (String) sqlMap.queryForObject("Oreda.getUid", Integer.parseInt(tempStr));
              taxono += tempStr+".";
            }
          }
        
      String Top_item = oredaListInfo.get(0).getTop_item().replace("||", "<br>");
     
      oredaListInfo.get(0).setTop_item(Top_item);
        }
       
        String result = "";
        ArrayList<OredaEqipment> oredaListEqipment = new ArrayList<OredaEqipment>();
      if (oredaListInfo.size()>0) {
       
        int cate_uid = oredaListInfo.get(0).getTop_category();
        if (_Oreda.getStep0().equals("TopSide")) {
          result = "listInfoTop";
            oredaListEqipment = (ArrayList<OredaEqipment>)sqlMap.queryForList("Oreda.listTOPEqipment",  cate_uid);
        } else if (_Oreda.getStep0().equals("SubSea")) {
          _OredaEqipment.setCategorytableUid(cate_uid);
          result = "listInfoSub";
          oredaListEqipment = (ArrayList<OredaEqipment>)sqlMap.queryForList("Oreda.listSUBEqipment",  _OredaEqipment);
        }
       
      } else {
View Full Code Here

Examples of com.ordobill.webapp.beans.OredaEqipment

  }
 
  @SuppressWarnings("unchecked")
  public ActionForward eqTopData(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) throws Exception {
    OredaEqipment _OredaEqipment = (OredaEqipment)form;
    //sqlMap.update("Oreda.infoUpdate", _Oreda);
    ArrayList<OredaEqDB> oredaEqDBList = null;
    if (_OredaEqipment.getMode().equals("upd")) {
      oredaEqDBList = (ArrayList<OredaEqDB>) sqlMap.queryForList("Oreda.oredaEqipmentlist",_OredaEqipment);
    }
    request.setAttribute("oredaEqDBList", oredaEqDBList);
    request.setAttribute("_Oreda", _OredaEqipment);
    return mapping.findForward("TopeqData");
View Full Code Here

Examples of com.ordobill.webapp.beans.OredaEqipment

  }
 
  @SuppressWarnings("unchecked")
  public ActionForward eqSubData(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) throws Exception {
    OredaEqipment _OredaEqipment = (OredaEqipment)form;
    //sqlMap.update("Oreda.infoUpdate", _Oreda);
    ArrayList<OredaEqipment> oredaListEqipment = new ArrayList<OredaEqipment> ();
    if (_OredaEqipment.getSubseaEqipmentUid() > 0) {
      oredaListEqipment = (ArrayList<OredaEqipment>)sqlMap.queryForList("Oreda.listSUBEqipment",  _OredaEqipment);
    } else {
      oredaListEqipment.add(new OredaEqipment());
    }
   
    request.setAttribute("oredaEqDBList", oredaListEqipment);
    request.setAttribute("_Oreda", _OredaEqipment);
    return mapping.findForward("SubeqData");
View Full Code Here

Examples of com.ordobill.webapp.beans.OredaEqipment

  }

  @SuppressWarnings("unchecked")
  public void eqSubInsert(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) throws Exception {
    OredaEqipment _OredaEqipment = (OredaEqipment)form;
    if(_OredaEqipment.getEqipmentDepth() == 0) {
      _OredaEqipment.setEqipmentDepth(1);
    } else {
      _OredaEqipment.setEqipmentDepth(_OredaEqipment.getEqipmentDepth()+1);
    }
    String subCode = (String) sqlMap.queryForObject("Oreda.getSubCode", _OredaEqipment);
    _OredaEqipment.setSubsCode(subCode);
   
    sqlMap.insert("Oreda.subSeaEQInsert", _OredaEqipment);
    PrintWriter out = response.getWriter();
      out.println("<script language='javascript'>");
      out.println("opener.parent.location.reload();");
View Full Code Here

Examples of com.ordobill.webapp.beans.OredaEqipment

  }
 
  @SuppressWarnings("unchecked")
  public void eqSubUpdate(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) throws Exception {
    OredaEqipment _OredaEqipment = (OredaEqipment)form;
   
    sqlMap.update("Oreda.subSeaEQUpdate",_OredaEqipment);
    PrintWriter out = response.getWriter();
      out.println("<script language='javascript'>");
      out.println("opener.parent.location.reload();");
View Full Code Here

Examples of com.ordobill.webapp.beans.OredaEqipment

  }
 
  @SuppressWarnings("unchecked")
  public void eqSubDelete(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) throws Exception {
    OredaEqipment _OredaEqipment = (OredaEqipment)form;
    String returnUrl = "location.href = 'oreda-info.do?method=infoList&categoryUid="+_OredaEqipment.getCategorytableUid()+"&step0=SubSea';";
       
    sqlMap.delete("Oreda.subSeaEQNodeDelete", _OredaEqipment);
    sqlMap.delete("Oreda.subSeaEQDelete", _OredaEqipment);
   
      PrintWriter out = response.getWriter();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.