コード例 #1
0
  protected final void oncmbAnaesTypeValueSet(Object value) {
    java.util.ArrayList listOfValues = this.form.lyr1().tabSearch().cmbAnaesType().getValues();

    if (value == null) {
      if (listOfValues != null && listOfValues.size() > 0) {
        for (int x = 0; x < listOfValues.size(); x++) {
          ims.clinical.vo.lookups.AnaestheticType existingInstance =
              (ims.clinical.vo.lookups.AnaestheticType) listOfValues.get(x);
          if (!existingInstance.isActive()) {
            bindcmbAnaesTypeLookup();
            return;
          }
        }
      }
    } else if (value instanceof ims.clinical.vo.lookups.AnaestheticType) {
      ims.clinical.vo.lookups.AnaestheticType instance =
          (ims.clinical.vo.lookups.AnaestheticType) value;

      if (listOfValues != null) {
        if (listOfValues.size() == 0) bindcmbAnaesTypeLookup();

        for (int x = 0; x < listOfValues.size(); x++) {
          ims.clinical.vo.lookups.AnaestheticType existingInstance =
              (ims.clinical.vo.lookups.AnaestheticType) listOfValues.get(x);
          if (existingInstance.equals(instance)) return;
        }
      }

      this.form
          .lyr1()
          .tabSearch()
          .cmbAnaesType()
          .newRow(instance, instance.getText(), instance.getImage(), instance.getTextColor());
    }
  }
 public void populate(
     ims.vo.ValueObjectBeanMap map,
     ims.RefMan.vo.beans.SearchCriteriaForElectiveListManagementVoBean bean) {
   this.type =
       ims.RefMan.vo.lookups.ElectiveAdmissionTypeCollection.buildFromBeanCollection(
           bean.getType());
   this.admissiontype =
       bean.getAdmissionType() == null
           ? null
           : ims.RefMan.vo.lookups.WaitingCardAdmissionType.buildLookup(bean.getAdmissionType());
   this.urgency =
       bean.getUrgency() == null
           ? null
           : ims.RefMan.vo.lookups.ReferralUrgency.buildLookup(bean.getUrgency());
   this.onlycancerreferrals = bean.getOnlyCancerReferrals();
   this.service = bean.getService() == null ? null : bean.getService().buildVo(map);
   this.consultant = bean.getConsultant() == null ? null : bean.getConsultant().buildVo(map);
   this.procedure = bean.getProcedure() == null ? null : bean.getProcedure().buildVo(map);
   this.electivelistname =
       bean.getElectiveListName() == null ? null : bean.getElectiveListName().buildVo(map);
   this.theatretype =
       bean.getTheatreType() == null
           ? null
           : ims.scheduling.vo.lookups.TheatreType.buildLookup(bean.getTheatreType());
   this.anaesthetictype =
       bean.getAnaestheticType() == null
           ? null
           : ims.clinical.vo.lookups.AnaestheticType.buildLookup(bean.getAnaestheticType());
   this.electiveliststatus = bean.getElectiveListStatus();
   this.electiveliststatusrequirestcisuboption = bean.getElectiveListStatusRequiresTCISubOption();
   this.shortnotice = bean.getShortNotice();
   this.daysnoticerequired = bean.getDaysNoticeRequired();
   this.rttbreachin = bean.getRTTBreachIn();
   this.rttbreachinperiod =
       bean.getRTTBreachInPeriod() == null
           ? null
           : ims.core.vo.lookups.TimeUnitsSecondsToMonths.buildLookup(bean.getRTTBreachInPeriod());
   this.includepatientsrttbreached = bean.getIncludePatientsRTTBreached();
   this.planneddatein = bean.getPlannedDateIn();
   this.planneddateinperiod =
       bean.getPlannedDateInPeriod() == null
           ? null
           : ims.core.vo.lookups.TimeUnitsSecondsToMonths.buildLookup(
               bean.getPlannedDateInPeriod());
   this.includepatientspastplanneddates = bean.getIncludePatientsPastPlannedDates();
   this.hospital = bean.getHospital() == null ? null : bean.getHospital().buildVo(map);
 }