Search in sources :

Example 11 with DefaultActionsEditor

use of org.akaza.openclinica.control.DefaultActionsEditor in project OpenClinica by OpenClinica.

the class ListDiscNotesSubjectTableFactory method configureColumns.

@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
    resword = ResourceBundleProvider.getWordsBundle(locale);
    resformat = ResourceBundleProvider.getFormatBundle(locale);
    tableFacade.setColumnProperties(columnNames);
    Row row = tableFacade.getTable().getRow();
    configureColumn(row.getColumn(columnNames[0]), resword.getString("study_subject_ID"), null, null);
    configureColumn(row.getColumn(columnNames[1]), resword.getString("subject_status"), new StatusCellEditor(), new StatusDroplistFilterEditor());
    configureColumn(row.getColumn(columnNames[2]), "Site ID", null, null);
    // study event definition columns
    for (int i = 3; i < columnNames.length - 1; i++) {
        StudyEventDefinitionBean studyEventDefinition = studyEventDefinitions.get(i - 3);
        configureColumn(row.getColumn(columnNames[i]), studyEventDefinition.getName(), new StudyEventDefinitionMapCellEditor(), new SubjectEventStatusDroplistFilterEditor(), true, false);
    }
    String actionsHeader = resword.getString("rule_actions") + "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;";
    configureColumn(row.getColumn(columnNames[columnNames.length - 1]), actionsHeader, new ActionsCellEditor(), new DefaultActionsEditor(locale), true, false);
}
Also used : DefaultActionsEditor(org.akaza.openclinica.control.DefaultActionsEditor) StudyEventDefinitionBean(org.akaza.openclinica.bean.managestudy.StudyEventDefinitionBean) Row(org.jmesa.view.component.Row)

Example 12 with DefaultActionsEditor

use of org.akaza.openclinica.control.DefaultActionsEditor in project OpenClinica by OpenClinica.

the class ListNotesTableFactory method configureColumns.

@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
    tableFacade.setColumnProperties("studySubject.label", "discrepancyNoteBean.disType", "discrepancyNoteBean.resolutionStatus", "siteId", "discrepancyNoteBean.createdDate", "discrepancyNoteBean.updatedDate", "age", "days", "eventName", "eventStartDate", "crfName", "crfStatus", "entityName", "entityValue", "discrepancyNoteBean.entityType", "discrepancyNoteBean.description", "discrepancyNoteBean.detailedNotes", "numberOfNotes", "discrepancyNoteBean.user", "discrepancyNoteBean.owner", "actions");
    Row row = tableFacade.getTable().getRow();
    configureColumn(row.getColumn("studySubject.label"), resword.getString("study_subject_ID"), null, null, true, true);
    configureColumn(row.getColumn("siteId"), resword.getString("site_id"), null, null, true, false);
    configureColumn(row.getColumn("discrepancyNoteBean.createdDate"), resword.getString("date_created"), new DateCellEditor(getDateFormat()), null, true, true);
    configureColumn(row.getColumn("discrepancyNoteBean.updatedDate"), resword.getString("date_updated"), new DateCellEditor(getDateFormat()), null, true, false);
    configureColumn(row.getColumn("eventStartDate"), resword.getString("event_date"), new DateCellEditor(getDateFormat()), null, false, false);
    configureColumn(row.getColumn("eventName"), resword.getString("event_name"), null, null, true, false);
    configureColumn(row.getColumn("crfName"), resword.getString("CRF"), null, null, true, false);
    configureColumn(row.getColumn("crfStatus"), resword.getString("CRF_status"), null, null, false, false);
    configureColumn(row.getColumn("entityName"), resword.getString("entity_name"), new EntityNameCellEditor(), null, true, false);
    configureColumn(row.getColumn("entityValue"), resword.getString("entity_value"), null, null, true, false);
    configureColumn(row.getColumn("discrepancyNoteBean.description"), resword.getString("description"), null, null, true, false);
    configureColumn(row.getColumn("discrepancyNoteBean.detailedNotes"), resword.getString("detailed_notes"), null, null, false, false);
    configureColumn(row.getColumn("numberOfNotes"), resword.getString("of_notes"), null, null, false, false);
    configureColumn(row.getColumn("discrepancyNoteBean.user"), resword.getString("assigned_user"), new AssignedUserCellEditor(), null, true, false);
    configureColumn(row.getColumn("discrepancyNoteBean.resolutionStatus"), resword.getString("resolution_status"), new ResolutionStatusCellEditor(), resolutionStatusDropdown, true, false);
    configureColumn(row.getColumn("discrepancyNoteBean.disType"), resword.getString("type"), new DiscrepancyNoteTypeCellEditor(), discrepancyNoteTypeDropdown, true, false);
    configureColumn(row.getColumn("discrepancyNoteBean.entityType"), resword.getString("entity_type"), null, null, true, false);
    configureColumn(row.getColumn("discrepancyNoteBean.owner"), resword.getString("owner"), new OwnerCellEditor(), null, false, false);
    String actionsHeader = resword.getString("actions") + "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;";
    configureColumn(row.getColumn("actions"), actionsHeader, new ActionsCellEditor(), new DefaultActionsEditor(locale), true, false);
    configureColumn(row.getColumn("age"), resword.getString("days_open"), null, null);
    configureColumn(row.getColumn("days"), resword.getString("days_since_updated"), null, null);
}
Also used : DefaultActionsEditor(org.akaza.openclinica.control.DefaultActionsEditor) Row(org.jmesa.view.component.Row) DateCellEditor(org.jmesa.view.editor.DateCellEditor)

Aggregations

DefaultActionsEditor (org.akaza.openclinica.control.DefaultActionsEditor)12 Row (org.jmesa.view.component.Row)11 DateCellEditor (org.jmesa.view.editor.DateCellEditor)4 CRFBean (org.akaza.openclinica.bean.admin.CRFBean)2 EventDefinitionCRFBean (org.akaza.openclinica.bean.managestudy.EventDefinitionCRFBean)2 StudyEventDefinitionBean (org.akaza.openclinica.bean.managestudy.StudyEventDefinitionBean)2 StudyGroupClassBean (org.akaza.openclinica.bean.managestudy.StudyGroupClassBean)2 EventCRFBean (org.akaza.openclinica.bean.submit.EventCRFBean)2 HtmlColumn (org.jmesa.view.html.component.HtmlColumn)2 HtmlRow (org.jmesa.view.html.component.HtmlRow)2 ResourceBundle (java.util.ResourceBundle)1 SDVToolbar (org.akaza.openclinica.controller.helper.table.SDVToolbar)1 SDVUtil (org.akaza.openclinica.web.table.sdv.SDVUtil)1 MatcherKey (org.jmesa.core.filter.MatcherKey)1 TableFacade (org.jmesa.facade.TableFacade)1 TableFacadeFactory.createTableFacade (org.jmesa.facade.TableFacadeFactory.createTableFacade)1 HtmlTable (org.jmesa.view.html.component.HtmlTable)1