Commit a23beb0a by Nilu Committed by Harsh Shah

J002 - Save these requirements as a template - If text has been entered in the…

J002 - Save these requirements as a template - If text has been entered in the template name field, warn if the user tries to advance to the next step without saving. (They can clear that field or uncheck save to advance - they don't _have_ to save a template :) )
parent 1e863afc
......@@ -57,6 +57,9 @@ public class SaveCultureTemplateFP extends ORMProcessFormProcessor
LogMgr.log(Job.LOG, LogLevel.PROCESSING1, "SaveCultureTemplateFP completed for ", job);
job.setSaveCultureTemplate(Boolean.FALSE);
job.setCultureTemplateName(null);
NotificationUtils.setNotifyIDInRequest(request, messageId);
return RedisplayResult.getInstance();
......
......@@ -4,7 +4,6 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import oneit.logging.LogLevel;
import oneit.logging.LogMgr;
import oneit.logging.LoggingArea;
import oneit.objstore.ObjectTransaction;
import oneit.objstore.StorageException;
import oneit.objstore.parser.BusinessObjectParser;
......@@ -50,6 +49,10 @@ public class SaveRequirementsTemplateFP extends ORMProcessFormProcessor
newTemplate.addToAssessmentCriterias(criteriaCopy);
}
});
job.setAssessmentTemplateName(null);
job.setSaveAssessmentTemplate(Boolean.FALSE);
LogMgr.log(Job.LOG, LogLevel.PROCESSING1, "SaveRequirementsTemplateFP completed for create new template.", job);
return RedisplayResult.getInstance();
......
......@@ -64,6 +64,10 @@ public class Job extends BaseJob
{
context.check(getAssessmentCriteriasCount() > 0 , this, MULTIPLEREFERENCE_AssessmentCriterias, "atleastOneRequirement");
}
context.check(getSaveAssessmentTemplate() == null || !getSaveAssessmentTemplate() , this, FIELD_AssessmentTemplateName, "saveTemplateFirst");
context.check(getSaveCultureTemplate() == null || !getSaveCultureTemplate() , this, FIELD_CultureTemplateName, "saveTemplateFirst");
}
......
#atleastOneRequirement = Please add at least one Requirement.
#exceedMaxShortlisted = Selected number of applications exceed maximum shortlist application count
\ No newline at end of file
#exceedMaxShortlisted = Selected number of applications exceed maximum shortlist application count
#saveTemplateFirst = Please save template first, before proceeding to the next step
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment