Пример #1
0
 public String addfield() {
   if ((this.infoItem != null) && (!"".equals(this.infoItem))) {
     String[] inf = this.infoItem.replace('.', ',').split(",");
     InfoItemBO ib = SysCacheTool.findInfoItem("", inf[1]);
     ib.setSetId(CodeUtil.interpertCode(CodeUtil.TYPE_INFOSET, inf[0]));
     ib.setItemSequence(String.valueOf(this.baseFields.size() + 1));
     this.baseFields.add(ib);
   }
   return null;
 }
Пример #2
0
  public String getPageInit() {

    String orgID1 = super.getRequestParameter("superId");
    if (orgID1 != null && !"".equals(orgID1)) {
      this.orgID = orgID1;
      this.orgName = CodeUtil.interpertCode(CodeUtil.TYPE_ORG, this.orgID);
    }
    doQuery();
    return this.pageInit;
  }
Пример #3
0
  public String getInitOrgEdit() {
    String act = super.getRequestParameter("act");
    if ("init".equals(act)) {
      try {
        this.orgchangebo =
            (OrgPersonTypeChangeBO)
                this.changeService.getObjByID(
                    OrgPersonTypeChangeBO.class, super.getUserInfo().getOrgId());
        if (this.orgchangebo == null) {
          this.orgchangebo = new OrgPersonTypeChangeBO();
          this.orgchangebo.setOrgID(super.getUserInfo().getOrgId());
          this.changeService.saveObj(this.orgchangebo);
        } else {
          if (this.orgchangebo.getWageItem() != null
              && !"".equals(this.orgchangebo.getWageItem())) {
            this.baseFields = new ArrayList();
            String[] fs = this.orgchangebo.getWageItem().split(",");
            for (int i = 0; i < fs.length; i++) {
              InfoItemBO ib = SysCacheTool.findInfoItem("", fs[i]);
              ib.setItemSequence(String.valueOf(i + 1));
              ib.setSetId(CodeUtil.interpertCode(CodeUtil.TYPE_INFOSET, ib.getSetId()));
              if (!this.baseFields.contains(ib)) {
                this.baseFields.add(ib);
              }
            }
          }
        }
        this.orgchangebo.setOrgName(
            CodeUtil.interpertCode(CodeUtil.TYPE_ORG, this.orgchangebo.getOrgID()));
      } catch (SysException e) {
        e.printStackTrace();
      }
    }

    return initOrgEdit;
  }
Пример #4
0
 public void doQuery() {
   if (this.mypage.getCurrentPage() == 0) {
     this.mypage.setCurrentPage(1);
   }
   try {
     this.list =
         this.changeService.getEmpTypeChangeBO(
             mypage,
             this.orgID,
             super.getUserInfo(),
             this.name,
             this.apprived,
             this.time,
             this.time2);
   } catch (SysException e) {
     e.printStackTrace();
   }
   if (this.list == null) {
     this.list = new ArrayList<EmpPersonTypeChangeBO>();
   }
   for (EmpPersonTypeChangeBO bo : this.list) {
     PersonBO p = SysCacheTool.findPersonById(bo.getPersonID());
     bo.setName(p.getName());
     bo.setPersonCode(p.getPersonCode());
     bo.setOrgName(CodeUtil.interpertCode(CodeUtil.TYPE_ORG, p.getOrgId()));
     bo.setDeptName(CodeUtil.interpertCode(CodeUtil.TYPE_ORG, p.getDeptId()));
     if (bo.getOldType() != null) {
       bo.setOldTypeDes(CodeUtil.interpertCode(bo.getOldType()));
     }
     bo.setNewTypeDes(CodeUtil.interpertCode(bo.getNewType()));
     p = SysCacheTool.findPersonById(bo.getApplyPersonID());
     if (p != null) {
       bo.setApplyPersonName(p.getName());
     }
   }
 }