Search in sources :

Example 6 with FieldsForType

use of com.qcadoo.mes.cmmsMachineParts.plannedEvents.fieldsForType.FieldsForType in project mes by qcadoo.

the class PlannedEventStateValidationService method fieldIsNotHidden.

private boolean fieldIsNotHidden(Entity plannedEvent, String fieldName) {
    PlannedEventType type = PlannedEventType.from(plannedEvent);
    FieldsForType fieldsForType = eventFieldsForTypeFactory.createFieldsForType(type);
    return !fieldsForType.getHiddenFields().contains(fieldName);
}
Also used : FieldsForType(com.qcadoo.mes.cmmsMachineParts.plannedEvents.fieldsForType.FieldsForType)

Aggregations

FieldsForType (com.qcadoo.mes.cmmsMachineParts.plannedEvents.fieldsForType.FieldsForType)6 PlannedEventType (com.qcadoo.mes.cmmsMachineParts.constants.PlannedEventType)3 Entity (com.qcadoo.model.api.Entity)2 TimeUsageDTO (com.qcadoo.mes.cmmsMachineParts.reports.xls.timeUsage.dto.TimeUsageDTO)1