Package net.sf.esims.model.entity

Examples of net.sf.esims.model.entity.ReceivedApplicationForm


  public Resolution createRAForm() {
    String message = EsimsConstants._BLANK_STRING;

    ReceivedApplicationFormEssence applicationFormEssence = this
        .setPropertiesToEssence();
    ReceivedApplicationForm receivedApplicationForm = applicationFormEssence
        .createReceivedApplicationForm();
    // check for duplicate submission and save
    if (this.receivedApplicationFormService
        .checkForDuplicate(receivedApplicationForm)) {
      message = EsimsUtils.createWarnMessage(this.getContext()
View Full Code Here


  // Editing part begins

  @HandlesEvent("beginEditing")
  public Resolution beginEditing() {
    ReceivedApplicationForm applicationFormToEdit = this.receivedApplicationFormService
        .getById(new Long(this.getContext().getRequest().getParameter(
            "formId")));
    this.getContext()
        .setAttributeToSession("raForm", applicationFormToEdit);
    String buttonName = "handleFormDetailsEditing";
View Full Code Here

        "/WEB-INF/pages/receivedApplicationFormDetails.jsp");
  }

  @HandlesEvent("handleFormDetailsEditing")
  public Resolution handleFormDetailsEditing() {
    ReceivedApplicationForm applicationFormToEdit = (ReceivedApplicationForm) this
        .getContext().getAttributeFromSession("raForm");
    applicationFormToEdit.setFormIssuedOn(this.formIssuedOn);
    applicationFormToEdit.setFormFilledOn(this.formFilledOn);
    applicationFormToEdit.setFormReceivedOn(this.formReceivedOn);
    this.getContext()
        .setAttributeToSession("raForm", applicationFormToEdit);
    String buttonName = "handleStudentDetailsEditing";
    String buttonValue = "Continue";
    this.getContext().setAttributeToSession("buttonName", buttonName);
View Full Code Here

        "/WEB-INF/pages/receivedApplicationStudentDetails.jsp");
  }

  @HandlesEvent("handleStudentDetailsEditing")
  public Resolution handleStudentDetailsEditing() {
    ReceivedApplicationForm applicationFormToEdit = (ReceivedApplicationForm) this
        .getContext().getAttributeFromSession("raForm");

    // setting the new values

    applicationFormToEdit.setFirstName(this.firstName);
    applicationFormToEdit.setMiddleName(this.middleName);
    applicationFormToEdit.setDateOfBirth(this.dateOfBirth);
    applicationFormToEdit.setLastName(this.lastName);
   
    applicationFormToEdit.setReligion(this.religion);
    applicationFormToEdit.setCaste(this.caste);
    applicationFormToEdit.setSubcaste(this.subcaste);
    applicationFormToEdit
        .setScheduledCasteOrTribe(this.scheduledCasteOrTribe);
    applicationFormToEdit.setGender(this.gender);
    applicationFormToEdit.setNationality(this.nationality);
    applicationFormToEdit.setPlaceOfBirth(this.placeOfBirth);
    applicationFormToEdit.setMotherTounge(this.motherTounge);

    this.getContext()
        .setAttributeToSession("raForm", applicationFormToEdit);
    String buttonName = "handleParentDetailsEditing";
    String buttonValue = "Continue";
View Full Code Here

  }

  @HandlesEvent("handleParentDetailsEditing")
  public Resolution handleParentDetailsEditing() {

    ReceivedApplicationForm applicationFormToEdit = (ReceivedApplicationForm) this
        .getContext().getAttributeFromSession("raForm");

    applicationFormToEdit.setFatherFirstName(this.fatherFirstName);
    applicationFormToEdit.setFatherMiddleName(this.fatherMiddleName);
    applicationFormToEdit.setFatherLastName(this.fatherLastName);
    applicationFormToEdit.setMotherFirstName(this.motherFirstName);
    applicationFormToEdit.setMotherMiddleName(this.motherMiddleName);
    applicationFormToEdit.setMotherLastName(this.motherLastName);
    applicationFormToEdit
        .setGrossHouseHoldIncome(this.grossHouseHoldIncome);
    applicationFormToEdit
    .setBelowPovertyLine(this.belowPovertyLine);

    // setting the new values
    this.getContext()
        .setAttributeToSession("raForm", applicationFormToEdit);
View Full Code Here

  // Handles both address changes and saving

  @HandlesEvent("saveForm")
  public Resolution saveForm() {
    String message = EsimsConstants._BLANK_STRING;
    ReceivedApplicationForm applicationFormToEdit = (ReceivedApplicationForm) this
        .getContext().getAttributeFromSession("raForm");

    // setting the new values
    applicationFormToEdit
        .setPermanentHouseNameOrNumber(this.permanentHouseNameOrNumber);
    applicationFormToEdit.setPermanentStreet(this.permanentStreet);
    applicationFormToEdit
        .setPermanentVillageOrTownOrCity(this.permanentVillageOrTownOrCity);
    applicationFormToEdit.setPermanentPinCode(this.permanentPinCode);
    applicationFormToEdit.setPermanentState(this.permanentState);
    applicationFormToEdit
        .setPermanentPhoneNumber(this.permanentPhoneNumber);
    this.receivedApplicationFormService.save(applicationFormToEdit);
    message = EsimsUtils.createInfoMessage(this.getContext()
        .getContextPath(), "Form #<strong> "
        + applicationFormToEdit.getFormNumber()
        + "</strong> was updated succesfully");

    this.getContext().removeAttributeFromSession("raForm");
    FlashScope.getCurrent(this.getContext().getRequest(),true).put("message", message);
    return new RedirectResolution(DisplayMessageAction.class,  "forwardToMessagePage");
View Full Code Here

  // delete method

  @HandlesEvent("deleteForm")
  public Resolution deleteForm() {
    ReceivedApplicationForm applicationForm = this.receivedApplicationFormService
        .getById(new Long(this.getContext().getRequest().getParameter(
            "formId")));
    this.receivedApplicationFormService.delete(applicationForm);
    // refresh the search results and forward to results page
View Full Code Here

    this.academicYearDAO.save(academicYear);
    //saving valid instance
    ReceivedApplicationFormEssence essence = createValidInstance();
    essence.setAcademicYear(academicYear);
   
    ReceivedApplicationForm form = essence.createReceivedApplicationForm();
    receivedApplicationFormDAO.save(form);
    form = receivedApplicationFormDAO.get(form.getId());
    assertNotNull(form);
    DatabaseOperation.DELETE_ALL.execute(connection, receivedApplicationFormDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, academicYearDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, schoolDataSet);
  }
View Full Code Here

    AcademicYear academicYear = new  AcademicYear("2006-2007",school,d1,d2,"active");
    this.academicYearDAO.save(academicYear);
   
    ReceivedApplicationFormEssence essence = createValidInstance();
    essence.setAcademicYear(academicYear);
    ReceivedApplicationForm form = essence.createReceivedApplicationForm();
    receivedApplicationFormDAO.save(form);
    form = receivedApplicationFormDAO.get(form.getId());
    receivedApplicationFormDAO.delete(form);
    List<ReceivedApplicationForm> listOfForms = receivedApplicationFormDAO.getAll();
    assertEquals(0, listOfForms.size());
    DatabaseOperation.DELETE_ALL.execute(connection, receivedApplicationFormDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, academicYearDataSet);
View Full Code Here

    AcademicYear academicYear = new  AcademicYear("2006-2007",school,d1,d2,"active");
    this.academicYearDAO.save(academicYear);
   
    ReceivedApplicationFormEssence essence = createValidInstance();
    essence.setAcademicYear(academicYear);
    ReceivedApplicationForm form = essence.createReceivedApplicationForm();
    receivedApplicationFormDAO.save(form);
   
    form = receivedApplicationFormDAO.get(form.getId());
    assertNotNull(form);
   
    //testing with null shoudl fail
    try{
      form = receivedApplicationFormDAO.get(null);
View Full Code Here

TOP

Related Classes of net.sf.esims.model.entity.ReceivedApplicationForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.