コード例 #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()));
  }
コード例 #3
0
 private Map<String, Empsalaryacctversion> getEsaNameVersionMap() {
   Map result = new HashMap();
   IEmpSalaryAcctBo esaBo = (IEmpSalaryAcctBo) SpringBeanFactory.getBean("empsalaryacctBo");
   List<Empsalaryacctversion> salaryAcctList = esaBo.searchAllEmpsalaryacctVersionInUse();
   for (Empsalaryacctversion esav : salaryAcctList) {
     result.put(esav.getEsavEsac().getEsacName(), esav);
   }
   return result;
 }
コード例 #4
0
 private Map<String, Jobgrade> getJobgradeMap() {
   Map jobgradeTable = new HashMap();
   IJobgradeBO jobgradeBO = (IJobgradeBO) SpringBeanFactory.getBean("jobgradeBO");
   List jobgradeBOList = jobgradeBO.FindAllJobgrade();
   for (int i = 0; i < jobgradeBOList.size(); ++i) {
     Jobgrade jobgrade = (Jobgrade) jobgradeBOList.get(i);
     jobgradeTable.put(jobgrade.getJobGradeName(), jobgrade);
   }
   return jobgradeTable;
 }
コード例 #5
0
  public SearchAttendmonthly() {
    this.page = new Pager();

    this.searchOrExport = null;

    this.docStream = null;
    this.contentDisposition = null;

    this.serverFileName = null;

    this.attendmothlyBO = ((IAttendmonthlyBO) SpringBeanFactory.getBean("attendmonthlyBo"));
  }
コード例 #6
0
  public IEmpSalaryConfig() {
    this.msgDbInsertError = "数据库插入失败!";
    this.msgGreaterThan = "{0}大于{1}!";
    this.msgExist = "{0}已存在!";
    this.msgNoNull = "{0}不能为空!";
    this.msgNotExist = "{0}不存在!";
    this.msgNotExistOrQuit = "{0}不存在或已经离职!";
    this.msgNotExistOrStop = "{0}不存在或已经被停用!";
    this.msgNumLimit = "导入员工数目超过限制!";
    this.msgCanNotQuit = "该员工有下属员工,无法离职!";
    this.msgQuitNeedInfo = "离职人员必须填写离职相关信息!";
    this.msgEmpCircle = "出现员工环,对应的行数为:{0}!";
    this.msgDbRepeat = "数据库数据出现重复,导入失败!";

    this.salaryconfBo = ((ISalaryconfBo) SpringBeanFactory.getBean("salaryconfBo"));
  }
コード例 #7
0
  public Map<String, Employee> getEmployeeMap() {
    Map employeeHashtable = new HashMap();
    IEmployeeBo esaBo = (IEmployeeBo) SpringBeanFactory.getBean("empBo");
    DetachedCriteria dc = DetachedCriteria.forClass(Employee.class);
    dc.createAlias(Employee.PROP_EMP_BENEFIT_TYPE, "empBenefitType", 1);
    dc.createAlias(Employee.PROP_EMP_BENEFIT, "benefit", 1);
    dc.createAlias(Employee.PROP_EMP_DEPT_NO, "empDeptNo", 1);
    dc.createAlias(Employee.PROP_CONFIG, "config", 1);

    dc.add(Restrictions.eq(Employee.PROP_EMP_STATUS, Integer.valueOf(1)));
    List<Employee> empList = esaBo.findByCriteria(dc);
    for (Employee emp : empList) {
      employeeHashtable.put(emp.getEmpDistinctNo(), emp);
    }
    return employeeHashtable;
  }
コード例 #8
0
 private Map<String, List<Empsalaryacctitems>> createAcctItemsMap() {
   Map result = new HashMap();
   IEmpSalaryAcctitemsBo empSalaryAcctitemsBo =
       (IEmpSalaryAcctitemsBo) SpringBeanFactory.getBean("empsalaryacctitemsBo");
   List<Empsalaryacctitems> acct = empSalaryAcctitemsBo.findAll();
   for (Empsalaryacctitems item : acct) {
     String key = item.getEsaiEsav().getId();
     if (result.containsKey(key)) {
       ((List) result.get(key)).add(item);
     } else {
       List tmpList = new ArrayList();
       tmpList.add(item);
       result.put(key, tmpList);
     }
   }
   return result;
 }
コード例 #9
0
 public String execute() throws Exception {
   IEmpTypeBO bo = (IEmpTypeBO) SpringBeanFactory.getBean("emptypeBO");
   this.emptypeList = bo.FindAllEmpType();
   return "success";
 }
コード例 #10
0
 public String execute() throws Exception {
   String id = getRequest().getParameter("applierID_bishi");
   String name = getRequest().getParameter("applierName_bishi");
   String comment = getRequest().getParameter("common_id_bishi");
   Integer status = Integer.valueOf(getRequest().getParameter("applierStatus_bishi"));
   IRecruitapplierBo applierBo = (IRecruitapplierBo) getBean("applierBo");
   Recruitapplier tempApplier = applierBo.loadApplier(id.trim(), null);
   if (tempApplier.getRecaStatus().equals(status)) {
     return "error";
   }
   applierBo.updateApplierRemark(comment, status, id);
   String statusText = "";
   switch (status.intValue()) {
     case 1:
       statusText = "初选通过";
       break;
     case 21:
       statusText = "黑名单";
       break;
     case 11:
       statusText = "待定候选人";
       break;
     case 13:
       statusText = "接受录取通知";
       break;
     case 19:
       statusText = "拒绝录取通知";
       break;
     case 12:
       statusText = "已发录取通知";
       break;
     case 9:
       statusText = "不合格";
     case 2:
     case 3:
     case 4:
     case 5:
     case 6:
     case 7:
     case 8:
     case 10:
     case 14:
     case 15:
     case 16:
     case 17:
     case 18:
     case 20:
   }
   try {
     ISysLogBO logBO = (ISysLogBO) SpringBeanFactory.getBean("logBO");
     logBO.addToSyslog(
         "recruitapplier",
         getCurrentEmpNo(),
         tempApplier.getRecaCreateBy().getId(),
         id,
         0,
         "状态更改为" + statusText,
         comment);
   } catch (Exception e) {
     e.printStackTrace();
   }
   addSuccessInfo("应聘者" + name + "更新备注成功。");
   return "success";
 }