Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Accident


    applicationUser.setGroupUser("Nei");
    when(login.getApplicationUser()).thenReturn(applicationUser);
    when(managerRepository.getAccidentManager())
        .thenReturn(accidentManager);
    List<Accident> accidentList = Lists.newArrayList();
    Accident accident = new Accident();
    accidentList.add(accident);
    when(accidentManager.findAll()).thenReturn(accidentList);
    when(accidentManager.findByObject((Accident) anyObject())).thenReturn(
        accidentList);
View Full Code Here


  }

  @Override
  public final Accident getNewObject() {
    return new Accident();
  }
View Full Code Here

  }

  private void generateReport(PresentationModel presentationModel)
      throws ProTransException {
    Accident accident = ((AccidentModel) presentationModel.getBean())
        .getObject();
    if (accident != null) {

      ReportViewer reportViewer = new ReportViewer("Hendelse/ulykke",
          mailConfig);
View Full Code Here

     * @param rowIndex
     * @param columnIndex
     * @return verdi
     */
    public Object getValueAt(int rowIndex, int columnIndex) {
      Accident accident = (Accident) getRow(rowIndex);
      switch (columnIndex) {
      case 0:
        return accident.getRegisteredBy();
      case 1:

        return Util.formatDate(accident.getRegistrationDate(),
            Util.SHORT_DATE_FORMAT);
      case 2:
        return accident.getJobFunction();
      case 3:
        return accident.getPersonalInjuryBool();
      case 4:
        return accident.getAccidentDateAndTime();
      case 5:
        return accident.getReportedLeaderBool();
      case 6:
        return accident.getReportedPoliceBool();
      case 7:
        return accident.getReportedSocialSecurityBool();
      default:
        throw new IllegalStateException("Unknown column");
      }

    }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.Accident

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.