use of org.openforis.collect.designer.viewmodel.SurveyBaseVM.SurveyType in project collect by openforis.
the class SurveyExportParametersVM method isIncludeDataVisible.
@DependsOn({ "tempForm.type", "tempForm.outputFormat" })
public boolean isIncludeDataVisible() {
SurveyType type = SurveyType.valueOf(getTypeFormField());
OutputFormat outputFormat = OutputFormat.valueOf(getOutputFormatFormField());
return type == PUBLISHED && outputFormat == RDB;
}
use of org.openforis.collect.designer.viewmodel.SurveyBaseVM.SurveyType in project collect by openforis.
the class SurveyCloneParametersPopUpVM method init.
@Init
public void init(@ExecutionArgParam("originalSurvey") SurveySummary originalSurvey) {
this.originalSurvey = originalSurvey;
this.form = new HashMap<String, Object>();
SurveyType originalSurveyType = originalSurvey.isTemporary() ? TEMPORARY : PUBLISHED;
this.form.put("originalType", originalSurveyType.name());
this.nameValidator = new SurveyNameValidator(surveyManager, SURVEY_NAME_FIELD, true);
}
Aggregations