Package edu.zzuli.model.orm.po

Examples of edu.zzuli.model.orm.po.GG_JGBH


//    Iterator iterator = gg_CZYB.getChildGG_CZYB_GWLB().iterator();
//    while (iterator.hasNext()) {
//      ((GG_CZYB_GWLB) iterator.next()).getGG_GWLB().getGwmc();
//    }
    loginInfo.put(MyVisit.USER_GG_CZYB, gg_CZYB);
    GG_JGBH gg_JGBH = (GG_JGBH) this.baseDaoEntity.getHibernateDao().selectSingle(new GG_JGBH(gg_CZYB.getGG_JGBH().getJgbh()));//daoFactory.getGG_JGBHDao().load(gg_CZYB.getGG_JGBH());
    GG_JGBH gg_JGBH_DW_Visit = new GG_JGBH();
    gg_JGBH_DW_Visit.setJgbh(gg_JGBH.getJgbh());
    gg_JGBH_DW_Visit.setJgmc(gg_JGBH.getJgmc());
    gg_JGBH_DW_Visit.setJglb(gg_JGBH.getJglb());
    gg_JGBH_DW_Visit.setJgbm(gg_JGBH.getJgbm());
    gg_JGBH_DW_Visit.setArea(gg_JGBH.getArea());

    String sql = "";
//    if (gg_JGBH_DW_Visit.getJglb() == Constants_core.JGSF_ZBJG) {
//      sql = "select distinct gg_lbfp.*\n" +
//        "  from gg_czyb_gwlb, gg_lbfp\n" +
//        " where gg_lbfp.fpid = gg_czyb_gwlb.gwid\n" +
//        "   and gg_czyb_gwlb.czyid = :GG_CZYID";
//    } else {
      sql = "select gg_lbfp.* from gg_lbfp  where fpid = :GG_CZYID";
//    }
    loginInfo.put(MyVisit.USER_GG_CZYLB, this.baseDaoEntity.getParaJdbcTemplate().queryForList(sql, new MapSqlParameterSource("GG_CZYID",gg_CZYB.getId())));
    loginInfo.put(MyVisit.DW_GG_JGBH, gg_JGBH_DW_Visit);
    loginInfo.put(MyVisit.LOGIN_TIME, DateUtil.getCurrentDateTimeView());
    Map mapPara = new HashMap();
    mapPara.put("SFDL", Constants_core.GG_CZYB_SFDL_YDL);
    mapPara.put("ID", gg_CZYB.getId());
    //系统不支持同一用户多次登录,是否登录状态改为未登录
//    if(Constants_xt.XT_PZCS_CSBS_TYHDCDL_NO == XtpzcsConstants.getSdzOfInteger(Constants_xt.XT_PZCS_CSBS_TYHDCDL)) {
//      baseDaoEntity.getParaJdbcTemplate().update("update gg_czyb set sfdl=:SFDL where id=:ID", mapPara);
//    }
   
    GG_XTRZ gg_XTRZ = new GG_XTRZ();
    gg_XTRZ.setCzyid(gg_CZYB.getId());
    gg_XTRZ.setName(gg_CZYB.getMc());
    gg_XTRZ.setDwbh(gg_JGBH_DW_Visit.getJgbh());
    gg_XTRZ.setArea(gg_JGBH_DW_Visit.getArea());
    gg_XTRZ.setRoletype(gg_JGBH_DW_Visit.getJglb());
    gg_XTRZ.setDlip(remoteIp);
    gg_XTRZ.setCzsj(Long.valueOf(DateUtil.formateCalendar(Calendar.getInstance(), "yyyyMMddHHmmss")));
    gg_XTRZ.setZxbz(Constants_core.GG_CZYB_SFDL_YDL);
    this.baseDaoEntity.getHibernateDao().save(gg_XTRZ);
//    daoFactory.getGG_XTRZDao().save(gg_XTRZ);
View Full Code Here


    if (gg_jgbh.getJgbh() != null && gg_jgbh.getJgbh().length() > 0) {
      this.baseDaoEntity.getHibernateDao().update(gg_jgbh, gg_jgbh.getStrKeyWhere());
    } else {
      String sql = "select nvl(max(sxh),0)+1 sxh from gg_jgbh where sjjg = ?";
      int sxh = this.baseDaoEntity.getJdbcTemplate().queryForInt(sql, gg_jgbh.getGG_JGBH().getJgbh());
      GG_JGBH  sjjg = (GG_JGBH) this.baseDaoEntity.selectSingle(gg_jgbh.getGG_JGBH());
      gg_jgbh.setJglb(sjjg.getJglb());
      gg_jgbh.setSxh(sxh);
      this.baseDaoEntity.getHibernateDao().save(gg_jgbh);
    }
  }
View Full Code Here

    if (getJgryCount(jgbh) > 0) {
      String delLbfp = "delete from gg_lbfp where fpid in(select id from gg_czyb where jgbh = ?)";
      this.baseDaoEntity.getJdbcTemplate().update(delLbfp,new Object[] {jgbh});
      this.baseDaoEntity.getHibernateDao().delete(new GG_CZYB(), new StringBuffer( "jgbh = '" + jgbh + "'"));
    }
    this.baseDaoEntity.getHibernateDao().delete(new GG_JGBH(jgbh));
  }
View Full Code Here

 
  private String ajaxResult;
 
  public String execute() {
    try {
      gg_czyb.setGG_JGBH(new GG_JGBH(jgbh));
      zzjgglService.saveOrUpdateGG_CZYB(gg_czyb);
      ajaxResult = "success";
    } catch (Exception e) {
      ajaxResult = "error";
    }
View Full Code Here

  }
 
  public String addOrModPage() {
    String id = ServletActionContext.getRequest().getParameter("jgbh");
    if (id != null && !"".equals(id)) {
      gg_jgbh = (GG_JGBH) zzjgglService.selectSinglePO(new GG_JGBH(id));
      this.sjjg = new GG_JGBH(ServletActionContext.getRequest().getParameter("sjjgid"));
      ServletActionContext.getRequest().setAttribute("gg_jgbh", gg_jgbh);
      ServletActionContext.getRequest().setAttribute("sjjg", sjjg);
    } else {
      gg_jgbh = new GG_JGBH();
      this.sjjg = new GG_JGBH(ServletActionContext.getRequest().getParameter("sjjgid"));
      ServletActionContext.getRequest().setAttribute("gg_jgbh", gg_jgbh);
      ServletActionContext.getRequest().setAttribute("sjjg", sjjg);
    }
    return "success";
  }
View Full Code Here

TOP

Related Classes of edu.zzuli.model.orm.po.GG_JGBH

Copyright © 2018 www.massapicom. 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.