Esempio n. 1
0
  protected static AgreementSummaryInstance getAgreementSummaryInstance(
      Agreement agreement, boolean primary, boolean siteSearch) {
    AgreementSummaryInstance instance = new AgreementSummaryInstance();

    instance.setId(agreement.getId());
    instance.setBillUcn(agreement.getBillUcn());
    instance.setCommissionCode(agreement.getCommissionCode());
    instance.setAgreementTypeCode(agreement.getAgreementTypeCode());
    instance.setDeleteReasonCode(agreement.getDeleteReasonCode());
    instance.setStatus(agreement.getStatus());
    instance.setCreatedDate(agreement.getCreatedDatetime());
    instance.setFromPrimaryOnly(primary);
    instance.setFromSiteSearch(siteSearch);

    return instance;
  }
Esempio n. 2
0
  public static AgreementInstance getInstance(Agreement dbInstance) {
    AgreementInstance instance = new AgreementInstance();

    instance.setId(dbInstance.getId());
    instance.setBillUcn(dbInstance.getBillUcn());
    instance.setBillUcnSuffix(dbInstance.getBillUcnSuffix());
    instance.setAgreementTypeCode(dbInstance.getAgreementTypeCode());
    instance.setAgreementLinkId(dbInstance.getAgreementLinkId());
    instance.setBuildings(dbInstance.getBuildings());
    instance.setEnrollment(dbInstance.getEnrollment());
    instance.setPopulation(dbInstance.getPopulation());
    instance.setWorkstations(dbInstance.getWorkstations());
    instance.setCommissionCode(dbInstance.getCommissionCode());
    instance.setDeleteReasonCode(instance.getDeleteReasonCode());
    instance.setOrgPath(dbInstance.getOrgPath());
    instance.setNote(dbInstance.getNote());
    instance.setCreatedDatetime(dbInstance.getCreatedDatetime());
    instance.setStatus(dbInstance.getStatus());

    return instance;
  }