예제 #1
0
  private void loadStructure(grdFrictionRow row) {
    DeepFrictionMassageAreaStructureCollection collDeepFriction =
        LookupHelper.getDeepFrictionMassageAreaStructure(domain.getLookupService());

    TreeNode[] rootNodes = null;
    ArrayList childColl = null;

    DeepFrictionMassageAreaStructure childFrictionInst = null;
    rootNodes = collDeepFriction.getRootNodes();

    for (int j = 0; j < rootNodes.length; j++) {
      DeepFrictionMassageAreaStructure inst = (DeepFrictionMassageAreaStructure) rootNodes[j];

      if (row.getColArea().getValue().equals(inst)) {
        childColl = inst.getChildInstances();

        row.getColStructure().clear();
        if (childColl != null) {
          for (int p = 0; p < childColl.size(); p++) {
            childFrictionInst = (DeepFrictionMassageAreaStructure) childColl.get(p);
            row.getColStructure().newRow(childFrictionInst, childFrictionInst.getText());
          }
        }
      }
    }
  }
예제 #2
0
  private void prePopulateGaitGrd() {
    GenForm.grdGaitAspectRow row = null;
    form.grdGaitAspect().getRows().clear();
    GaitReEducationGaitAspectCollection gaitColl =
        LookupHelper.getGaitReEducationGaitAspect(domain.getLookupService());

    for (int i = 0; i < gaitColl.size(); i++) {
      GaitReEducationGaitAspect aspect = gaitColl.get(i);
      row = form.grdGaitAspect().getRows().newRow();
      row.setValue(aspect);
      row.setColGaitAspect(aspect.getText());
    }
  }
 protected final void bindcmbTypeOfInjuryLookup() {
   this.form.cmbTypeOfInjury().clear();
   ims.spinalinjuries.vo.lookups.InjuryClassTypeOfInjuryCollection lookupCollection =
       ims.spinalinjuries.vo.lookups.LookupHelper.getInjuryClassTypeOfInjury(
           this.domain.getLookupService());
   for (int x = 0; x < lookupCollection.size(); x++) {
     this.form
         .cmbTypeOfInjury()
         .newRow(
             lookupCollection.get(x),
             lookupCollection.get(x).getText(),
             lookupCollection.get(x).getImage(),
             lookupCollection.get(x).getTextColor());
   }
 }
 protected final void bindcmbTypeLookup() {
   this.form.ctnDetails().cmbType().clear();
   ims.spinalinjuries.vo.lookups.WheelchairTypeCollection lookupCollection =
       ims.spinalinjuries.vo.lookups.LookupHelper.getWheelchairType(
           this.domain.getLookupService());
   for (int x = 0; x < lookupCollection.size(); x++) {
     this.form
         .ctnDetails()
         .cmbType()
         .newRow(
             lookupCollection.get(x),
             lookupCollection.get(x).getText(),
             lookupCollection.get(x).getImage(),
             lookupCollection.get(x).getTextColor());
   }
 }
예제 #5
0
  private void loadLookupsIntoGrid(grdFrictionRow rowFriction) {
    DeepFrictionMassageAreaStructureCollection collDeepFriction =
        LookupHelper.getDeepFrictionMassageAreaStructure(domain.getLookupService());

    TreeNode[] rootNodes = null;

    rootNodes = collDeepFriction.getRootNodes();

    if (rowFriction == null) rowFriction = form.grdFriction().getRows().newRow();

    rowFriction.getColArea().clear();
    for (int j = 0; j < rootNodes.length; j++) {
      DeepFrictionMassageAreaStructure inst = (DeepFrictionMassageAreaStructure) rootNodes[j];
      rowFriction.getColArea().newRow(inst, inst.getText());
    }
  }
 protected final void setcmbTypeLookupValue(int id) {
   ims.spinalinjuries.vo.lookups.WheelchairType instance =
       ims.spinalinjuries.vo.lookups.LookupHelper.getWheelchairTypeInstance(
           this.domain.getLookupService(), id);
   if (instance != null) this.form.ctnDetails().cmbType().setValue(instance);
 }
 protected final void setcmbTypeOfInjuryLookupValue(int id) {
   ims.spinalinjuries.vo.lookups.InjuryClassTypeOfInjury instance =
       ims.spinalinjuries.vo.lookups.LookupHelper.getInjuryClassTypeOfInjuryInstance(
           this.domain.getLookupService(), id);
   if (instance != null) this.form.cmbTypeOfInjury().setValue(instance);
 }