use of de.symeda.sormas.ui.utils.V7UuidRenderer in project SORMAS-Project by hzi-braunschweig.
the class CaseSelectionGrid method buildGrid.
private void buildGrid() {
setSizeFull();
setSelectionMode(SelectionMode.SINGLE);
setHeightMode(HeightMode.ROW);
BeanItemContainer<CaseSelectionDto> container = new BeanItemContainer<>(CaseSelectionDto.class);
GeneratedPropertyContainer generatedContainer = new GeneratedPropertyContainer(container);
setContainerDataSource(generatedContainer);
setColumns(CaseSelectionDto.UUID, CaseSelectionDto.EPID_NUMBER, CaseSelectionDto.EXTERNAL_ID, CaseSelectionDto.PERSON_FIRST_NAME, CaseSelectionDto.PERSON_LAST_NAME, CaseSelectionDto.AGE_AND_BIRTH_DATE, CaseSelectionDto.RESPONSIBLE_DISTRICT_NAME, CaseSelectionDto.HEALTH_FACILITY_NAME, CaseSelectionDto.REPORT_DATE, CaseSelectionDto.SEX, CaseSelectionDto.CASE_CLASSIFICATION, CaseSelectionDto.OUTCOME);
if (FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_GERMANY)) {
getColumn(CaseSelectionDto.EPID_NUMBER).setHidden(true);
} else {
getColumn(CaseSelectionDto.EXTERNAL_ID).setHidden(true);
}
getColumn(CaseSelectionDto.UUID).setRenderer(new V7UuidRenderer());
getColumn(CaseSelectionDto.AGE_AND_BIRTH_DATE).setConverter(new AgeAndBirthDateDtoConverterV7());
getColumn(CaseSelectionDto.REPORT_DATE).setRenderer(new DateRenderer(DateHelper.getLocalDateTimeFormat(I18nProperties.getUserLanguage())));
for (Column column : getColumns()) {
column.setHeaderCaption(I18nProperties.getPrefixCaption(CaseSelectionDto.I18N_PREFIX, column.getPropertyId().toString(), column.getHeaderCaption()));
}
}
use of de.symeda.sormas.ui.utils.V7UuidRenderer in project SORMAS-Project by hzi-braunschweig.
the class EventParticipantSelectionGrid method setColumns.
protected void setColumns() {
setColumns(SimilarEventParticipantDto.UUID, SimilarEventParticipantDto.FIRST_NAME, SimilarEventParticipantDto.LAST_NAME, SimilarEventParticipantDto.INVOLVEMENT_DESCRIPTION, SimilarEventParticipantDto.EVENT_UUID, SimilarEventParticipantDto.EVENT_STATUS, SimilarEventParticipantDto.EVENT_TITLE, SimilarEventParticipantDto.START_DATE);
for (Column column : getColumns()) {
column.setHeaderCaption(I18nProperties.findPrefixCaption(column.getPropertyId().toString(), SimilarEventParticipantDto.I18N_PREFIX, SimilarPersonDto.I18N_PREFIX, EventDto.I18N_PREFIX));
}
getColumn(SimilarEventParticipantDto.UUID).setRenderer(new V7UuidRenderer());
getColumn(SimilarEventParticipantDto.FIRST_NAME).setMinimumWidth(150);
getColumn(SimilarEventParticipantDto.LAST_NAME).setMinimumWidth(150);
getColumn(SimilarEventParticipantDto.EVENT_UUID).setRenderer(new V7UuidRenderer());
}
use of de.symeda.sormas.ui.utils.V7UuidRenderer in project SORMAS-Project by hzi-braunschweig.
the class ContactSelectionGrid method setColumns.
protected void setColumns() {
setColumns(SimilarContactDto.UUID, SimilarContactDto.FIRST_NAME, SimilarContactDto.LAST_NAME, SimilarContactDto.CAZE, SimilarContactDto.CASE_ID_EXTERNAL_SYSTEM, SimilarContactDto.LAST_CONTACT_DATE, SimilarContactDto.CONTACT_PROXIMITY, SimilarContactDto.CONTACT_CLASSIFICATION, SimilarContactDto.CONTACT_STATUS, SimilarContactDto.FOLLOW_UP_STATUS);
for (Column column : getColumns()) {
column.setHeaderCaption(I18nProperties.findPrefixCaption(column.getPropertyId().toString(), SimilarContactDto.I18N_PREFIX, ContactIndexDto.I18N_PREFIX, ContactDto.I18N_PREFIX));
}
getColumn(SimilarContactDto.UUID).setRenderer(new V7UuidRenderer());
getColumn(SimilarContactDto.FIRST_NAME).setMinimumWidth(150);
getColumn(SimilarContactDto.LAST_NAME).setMinimumWidth(150);
}
use of de.symeda.sormas.ui.utils.V7UuidRenderer in project SORMAS-Project by hzi-braunschweig.
the class ContactCaseConversionSelectionGrid method setColumns.
@Override
protected void setColumns() {
setColumns(SimilarContactDto.UUID, SimilarContactDto.CAZE, SimilarContactDto.CASE_ID_EXTERNAL_SYSTEM, SimilarContactDto.LAST_CONTACT_DATE, SimilarContactDto.CONTACT_PROXIMITY, SimilarContactDto.CONTACT_CLASSIFICATION, SimilarContactDto.CONTACT_STATUS, SimilarContactDto.FOLLOW_UP_STATUS);
for (Column column : getColumns()) {
column.setHeaderCaption(I18nProperties.findPrefixCaption(column.getPropertyId().toString(), SimilarContactDto.I18N_PREFIX, ContactIndexDto.I18N_PREFIX, ContactDto.I18N_PREFIX));
}
getColumn(SimilarContactDto.UUID).setRenderer(new V7UuidRenderer());
}
use of de.symeda.sormas.ui.utils.V7UuidRenderer in project SORMAS-Project by hzi-braunschweig.
the class PathogenTestSelectionGrid method buildGrid.
private void buildGrid() {
setSizeFull();
setSelectionMode(SelectionMode.SINGLE);
setHeightMode(HeightMode.ROW);
BeanItemContainer<PathogenTestDto> container = new BeanItemContainer<>(PathogenTestDto.class);
GeneratedPropertyContainer generatedContainer = new GeneratedPropertyContainer(container);
setContainerDataSource(generatedContainer);
setColumns(PathogenTestDto.UUID, PathogenTestDto.TEST_DATE_TIME, PathogenTestDto.TESTED_DISEASE, PathogenTestDto.TEST_TYPE, PathogenTestDto.LAB, PathogenTestDto.TEST_RESULT);
getColumn(PathogenTestDto.UUID).setRenderer(new V7UuidRenderer());
getColumn(PathogenTestDto.TEST_DATE_TIME).setRenderer(new DateRenderer(DateHelper.getLocalDateTimeFormat(I18nProperties.getUserLanguage())));
for (Column column : getColumns()) {
column.setHeaderCaption(I18nProperties.getPrefixCaption(PathogenTestDto.I18N_PREFIX, column.getPropertyId().toString()));
}
}
Aggregations