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()));
     }
   }
 }
 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);
     }
   }
 }
 public void listEmployeeListener(AjaxBehaviorEvent event) {
   oEmployeeList = oEmployeeController.getAllEmpls();
 }