コード例 #1
0
  /** Create a new instance of LaboratoireReference */
  private void createNewLaboratoireReference() {

    request = requestFactory.laboratoireReferenceRequest();

    /* create a new intance of LaboratoireReference */
    LaboratoireReferenceProxy newLaboratoireReference =
        request.create(LaboratoireReferenceProxy.class);
    newLaboratoireReference.setId(ImogKeyGenerator.generateKeyId("LAB_REF"));
    LocalizedTextProxy newNom = request.create(LocalizedTextProxy.class);
    newLaboratoireReference.setNom(newNom);
    LocalizedTextProxy newDescription = request.create(LocalizedTextProxy.class);
    newLaboratoireReference.setDescription(newDescription);
    GeoFieldProxy newCoordonnees = request.create(GeoFieldProxy.class);
    newLaboratoireReference.setCoordonnees(newCoordonnees);

    /* push the instance to the editor */
    current = newLaboratoireReference;
    editorDriver.edit(current, request);

    /* set request context for list editor operations */
    editor.setRequestContextForListEditors(request);

    /* update field widgets in editor */
    editor.computeVisibility(null, true);
    // Field districtSante depends on the value of field region
    editor.getDistrictSanteFilteredByRegion(null);
    editor.setEdited(true);
  }
コード例 #2
0
  /** Create a new instance of TransfertReference */
  private void createNewTransfertReference() {

    request = requestFactory.transfertReferenceRequest();

    /* create a new intance of TransfertReference */
    TransfertReferenceProxy newTransfertReference = request.create(TransfertReferenceProxy.class);
    newTransfertReference.setId(ImogKeyGenerator.generateKeyId("TRANS_REF"));

    /* push the instance to the editor */
    current = newTransfertReference;
    editorDriver.edit(current, request);

    /* set request context for list editor operations */
    editor.setRequestContextForListEditors(request);

    /* update field widgets in editor */
    editor.computeVisibility(null, true);
    // Field districtSante depends on the value of field region
    editor.getDistrictSanteFilteredByRegion(null);
    // Field cDTDepart depends on the value of field districtSante
    editor.getCDTDepartFilteredByDistrictSante(null);
    // Field districtSanteArrivee depends on the value of field regionArrivee
    editor.getDistrictSanteArriveeFilteredByRegionArrivee(null);
    // Field cDTArrivee depends on the value of field districtSanteArrivee
    editor.getCDTArriveeFilteredByDistrictSanteArrivee(null);
    editor.getPatientFilteredByCDTDepart(null);
    editor.setEdited(true);
  }
コード例 #3
0
  /** Create a new instance of LieuDit */
  private void createNewLieuDit() {

    request = requestFactory.lieuDitRequest();

    /* create a new intance of LieuDit */
    LieuDitProxy newLieuDit = request.create(LieuDitProxy.class);
    newLieuDit.setId(ImogKeyGenerator.generateKeyId("LD"));
    LocalizedTextProxy newDescription = request.create(LocalizedTextProxy.class);
    newLieuDit.setDescription(newDescription);
    GeoFieldProxy newCoordonnees = request.create(GeoFieldProxy.class);
    newLieuDit.setCoordonnees(newCoordonnees);

    /* push the instance to the editor */
    current = newLieuDit;
    editorDriver.edit(current, request);

    /* set request context for list editor operations */
    editor.setRequestContextForListEditors(request);

    /* update field widgets in editor */
    editor.computeVisibility(null, true);
    editor.setEdited(true);
  }