Exemplo n.º 1
0
 public void setEmplId(String pEmplId) {
   this.emplId = pEmplId;
   if (oEmployeeController != null) {
     oValue = oEmployeeController.getEmployee(pEmplId);
     if (oValue != null) {
       if (oValue.getSwDept() != null) setDeptId(String.valueOf(oValue.getSwDept().getDeptId()));
       if (oValue.getSwBuEx() != null) setBuExId(String.valueOf(oValue.getSwBuEx().getBuExId()));
       if (oValue.getSwEmployee() != null)
         setManagerId(String.valueOf(oValue.getSwEmployee().getEmplId()));
     }
   }
 }
Exemplo n.º 2
0
 public void addEmployee() {
   if (oValuePwd.getPassword().equals(confirmPwd)) {
     if (this.oOpridController != null) {
       this.oOpridController.addOprid(oValuePwd);
     }
     if (this.oEmployeeController != null) {
       this.oValue.setSwOprid(oValuePwd);
       if (oDepartmentController != null && deptId != null) {
         this.oValue.setSwDept(oDepartmentController.getDepartment(deptId));
       }
       if (oEmployeeController != null && managerId != null) {
         this.oValue.setSwEmployee(oEmployeeController.getEmployee(managerId));
       }
       if (oBuExController != null && buExId != null) {
         this.oValue.setSwBuEx(oBuExController.getBuEx(Integer.valueOf(buExId)));
       }
       this.oEmployeeController.addEmployee(this.oValue);
     }
   }
 }
Exemplo n.º 3
0
 public void listEmployeeListener(AjaxBehaviorEvent event) {
   oEmployeeList = oEmployeeController.getAllEmpls();
 }