コード例 #1
0
  public String execute() throws Exception {
    IRecruitplanBo recruitplanBo = (IRecruitplanBo) getBean("recruitplanBO");
    if (getRecruitplan() == null) {
      String[] fetch = {
        "recpDepartmentNo", "recpCreateBy", "recpLastChangeBy", "recpType", "recpJobTitle"
      };
      this.recruitplan = recruitplanBo.loadRecruitplan(this.id, fetch);
    }

    String[] fetchDept = {"empDeptNo"};
    if (!getCurrentEmpNo().equals(this.recruitplan.getRecpCreateBy().getId())) {
      return "noauth";
    }
    IEmployeeBo empBo = (IEmployeeBo) getBean("empBo");
    IDepartmentBO deptbo = (IDepartmentBO) SpringBeanFactory.getBean("departmentBO");
    Employee tempEmp = empBo.loadEmp(getCurrentEmpNo(), fetchDept);
    this.departmentName = tempEmp.getEmpDeptNo().getDepartmentName();
    this.departmentId = tempEmp.getEmpDeptNo().getId();
    setAllDept(deptbo.FindEnabledDepartment());
    ILocationBO localbo = (ILocationBO) SpringBeanFactory.getBean("locationBO");
    setAllLocation(localbo.FindEnabledLocation());

    setAllStatus(recruitplanBo.getRecruitplanStatus());
    IEmpTypeBO emptypebo = (IEmpTypeBO) SpringBeanFactory.getBean("emptypeBO");
    setEmptype(emptypebo.FindEnabledEmpType());

    IJobTitleBo jobTitleBo = (IJobTitleBo) SpringBeanFactory.getBean("jobTitleBo");
    this.jobTitles = jobTitleBo.FindEnabledJobTitle();
    return "success";
  }
コード例 #2
0
  private void getDrillDownList() {
    ILocationBO localbo = (ILocationBO) SpringBeanFactory.getBean("locationBO");
    this.locations = localbo.FindEnabledLocation();
    IEmpTypeBO emptypebo = (IEmpTypeBO) SpringBeanFactory.getBean("emptypeBO");
    this.empType = emptypebo.FindEnabledEmpType();

    IEmpAddConfBo empAddConfBo = (IEmpAddConfBo) BaseAction.getBean("empAddConfBo");
    this.attdConfList = empAddConfBo.listByTable("attend");
    for (Empaddconf conf : this.attdConfList)
      if (conf != null) conf.setFieldValueList(getListByString(conf.getEadcFieldValue()));
  }