private void setAttribute() {

    employeeSpecialSkill = (EmployeeSpecialSkill) iterator.next();
    pageContext.setAttribute(
        "specialSkillId",
        employeeSpecialSkill.getEmployeeSkillId() == null
            ? ""
            : employeeSpecialSkill.getEmployeeSkillId());
    pageContext.setAttribute(
        "specialSkillCode",
        employeeSpecialSkill.getCurrentSkill().getAttributeCode() == null
            ? ""
            : employeeSpecialSkill.getCurrentSkill().getAttributeCode());
    pageContext.setAttribute(
        "specialSkillName",
        employeeSpecialSkill.getCurrentSkill().getAttributeName() == null
            ? ""
            : employeeSpecialSkill.getCurrentSkill().getAttributeName());
    pageContext.setAttribute(
        "specialSkillCategoryName",
        employeeSpecialSkill.getCurrentSkill().getSkillCategory() == null
            ? ""
            : employeeSpecialSkill.getCurrentSkill().getSkillCategory().getAttributeName());
    pageContext.setAttribute("specialSkillAcquiredDate", employeeSpecialSkill.getAcquiredDate());
    pageContext.setAttribute(
        "specialSkillDescription",
        employeeSpecialSkill.getSkillDescription() == null
            ? ""
            : employeeSpecialSkill.getSkillDescription());
  }
  private void setAttribute() {

    employeeIdentity = (EmployeeIdentity) iterator.next();
    pageContext.setAttribute(
        "employeeIdentityId",
        employeeIdentity.getAttributeId() == null ? "" : employeeIdentity.getAttributeId());
    pageContext.setAttribute("employeeIdentityCode", employeeIdentity.getAttributeCode());
    pageContext.setAttribute("employeeIdentityName", employeeIdentity.getAttributeName());
    pageContext.setAttribute("employeeIdentityDescription", employeeIdentity.getDescription());
  }
Beispiel #3
0
 public int doAfterBody() throws JspException {
   if (iterator.hasNext()) {
     setAttribute();
     return IterationTag.EVAL_BODY_AGAIN;
   } else {
     try {
       bodyContent.writeOut(bodyContent.getEnclosingWriter());
       return SKIP_BODY;
     } catch (IOException ioe) {
       throw new JspTagException(ioe.getMessage());
     }
   }
 }
Beispiel #4
0
  private void setAttribute() {

    this.headCharge = (HandCharge) iterator.next();

    pageContext.setAttribute("headChargeRowNumber", "" + headCharge.getRowNumber());
    pageContext.setAttribute(
        "handCharge", "" + headCharge.getHandCharge() == null ? "" : headCharge.getHandCharge());
    pageContext.setAttribute(
        "handChargeError",
        headCharge.isValid("handCharge") ? "" : headCharge.getMessage("handCharge"));
    pageContext.setAttribute(
        "selectHandCharge",
        headCharge.getSelectHandCharge() == null ? "" : headCharge.getSelectHandCharge());
  }
Beispiel #5
0
  private void setAttribute() {

    SalesRep salesRep = (SalesRep) iterator.next();

    if (salesRep.equals(currentSalesRep)) {
      pageContext.setAttribute("selected", "selected");
    } else {
      pageContext.setAttribute("selected", "");
    }

    pageContext.setAttribute("employeeId", salesRep.getEmployeeId());
    pageContext.setAttribute("employeeCode", salesRep.getEmployeeCode());
    pageContext.setAttribute("employeeName", salesRep.getEmployeeName());
    pageContext.setAttribute("titleCode", salesRep.getTitle().getAttributeCode());
    pageContext.setAttribute("titleName", salesRep.getTitle().getAttributeName());
    pageContext.setAttribute("divisionCode", salesRep.getDivision().getAttributeCode());
    pageContext.setAttribute("divisionName", salesRep.getDivision().getAttributeName());
  }
Beispiel #6
0
 private void setAttribute() {
   try {
     this.materialTransactionType = (MaterialTransactionType) iterator.next();
     pageContext.setAttribute(
         "materialId",
         materialTransactionType.getAttributeId() == null
             ? ""
             : materialTransactionType.getAttributeId());
     pageContext.setAttribute("materialCode", materialTransactionType.getAttributeCode());
     pageContext.setAttribute("materialName", materialTransactionType.getAttributeName());
     pageContext.setAttribute("materialDescription", materialTransactionType.getDescription());
     pageContext.setAttribute(
         "materialApprovedFlag",
         materialTransactionType.getApprovedFlag() == null
             ? ""
             : this.materialTransactionType.getApprovedFlag());
     pageContext.setAttribute(
         "isReturn",
         materialTransactionType.getType() == null
             ? ""
             : materialTransactionType.getType().equals("2") ? "Retrun" : "");
     pageContext.setAttribute(
         "isIssue",
         materialTransactionType.getType() == null
             ? ""
             : materialTransactionType.getType().equals("1") ? "Issue" : "");
     pageContext.setAttribute(
         "isTransfer",
         materialTransactionType.getType() == null
             ? ""
             : materialTransactionType.getType().equals("3") ? "Transfer" : "");
     pageContext.setAttribute(
         "isConsume",
         materialTransactionType.getType() == null
             ? ""
             : materialTransactionType.getType().equals("4") ? "Consume" : "");
   } catch (Exception e) {
     e.printStackTrace();
   }
 }