/** Configures the visibility of the fields in edit mode depending on the user privileges */
  private void setFieldEditAccess() {

    /* CentreExamen section widgets visibility */
    if (!AccessManager.canEditExamenMicroscopieCentreExamen())
      centreExamenSection.setVisible(false);

    /* Examen section widgets visibility */
    if (!AccessManager.canEditExamenMicroscopieExamen()) examenSection.setVisible(false);
  }
Ejemplo n.º 2
0
  /** Sets the properties of the fields */
  private void properties() {

    /* Description section widgets */
    descriptionSection.setGroupTitle(NLS.constants().casIndex_group_description());
    patient.setLabel(NLS.constants().casIndex_field_patient());
    patientLie.setLabel(NLS.constants().casIndex_field_patientLie());
    typeRelation.setLabel(NLS.constants().casIndex_field_typeRelation());
  }
  /** Sets the properties of the fields */
  private void properties() {

    /* CentreExamen section widgets */
    centreExamenSection.setGroupTitle(NLS.constants().examenMicroscopie_group_centreExamen());
    CDT.setLabel(NLS.constants().examenMicroscopie_field_cDT());
    laboratoireReference.setLabel(NLS.constants().examenMicroscopie_field_laboratoireReference());

    /* Examen section widgets */
    examenSection.setGroupTitle(NLS.constants().examenMicroscopie_group_examen());
    casTb.setLabel(NLS.constants().examenMicroscopie_field_casTb());
    date.setLabel(NLS.constants().examenMicroscopie_field_date());
    raisonDepistage.setLabel(NLS.constants().examenMicroscopie_field_raisonDepistage());
    raisonDepistage.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RAISONDEPISTAGE_DIAGNOSTIC,
        NLS.constants().examenMicroscopie_raisonDepistage_diagnostic_option());
    raisonDepistage.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RAISONDEPISTAGE_SUIVI,
        NLS.constants().examenMicroscopie_raisonDepistage_suivi_option());
    resultat.setLabel(NLS.constants().examenMicroscopie_field_resultat());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_NEGATIF,
        NLS.constants().examenMicroscopie_resultat_negatif_option());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_RARE,
        NLS.constants().examenMicroscopie_resultat_rare_option());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_UNPLUS,
        NLS.constants().examenMicroscopie_resultat_unPlus_option());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_DEUXPLUS,
        NLS.constants().examenMicroscopie_resultat_deuxPlus_option());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_TROISPLUS,
        NLS.constants().examenMicroscopie_resultat_troisPlus_option());
    observations.setLabel(NLS.constants().examenMicroscopie_field_observations());
  }
Ejemplo n.º 4
0
  /** Configures the visibility of the fields in edit mode depending on the user privileges */
  private void setFieldEditAccess() {

    /* Description section widgets visibility */
    if (!AccessManager.canEditCasIndexDescription()) descriptionSection.setVisible(false);
  }