private ListPanel getTimeSheetByAlarmId(int alarmId)
    {
        ArrayList<Time_Sheet> timeSheet = new ArrayList<Time_Sheet>();
        ArrayList<Time_Sheet> timeSheetStatinsduty = new ArrayList<Time_Sheet>();
        ListPanel list = new ListPanel(parent.getWidth());
        try {
            timeSheet = tsa.getDataForAproval(alarmId);
            timeSheetStatinsduty = tsa.stationsVagt(alarmId);
            //here lays the logic for showing the timesheets order by cars and station duty
            ArrayList<TimeSheetList> timeSheetLists = new ArrayList<>();
            for(Time_Sheet a : timeSheet)
            {
                boolean carFound = false;
                for(TimeSheetList ts : timeSheetLists){
                    if(ts.getCar() != null && ts.getCar().getCarNr() == a.getCar().getCarNr()){
                        carFound = true;
                        populateFiremenViewObject(a, ts);
                        
                    }
                }
                if(!carFound){
                    TimeSheetList tsl = new TimeSheetList(a);
                    populateFiremenViewObject(a, tsl);
                    timeSheetLists.add(tsl);
                    //list.addViewObject(ViewObjectFactory.getViewObject(tsl));
                }
            }
            TimeSheetList v;
            if(timeSheetStatinsduty.size() > 0){
                v = new TimeSheetList(timeSheetStatinsduty.get(0));
                for(Time_Sheet b : timeSheetStatinsduty)
                {
                    v.addStationDuty(b);
                    
                }
                list.addViewObject(ViewObjectFactory.getViewObject(v));
            }
            
            for(TimeSheetList tsl: timeSheetLists){
                list.addViewObject(ViewObjectFactory.getViewObject(tsl));
            }
            Story s = new Story(alarmId);
            list.addViewObject(ViewObjectFactory.getViewObject(s));
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(this, "Database call error: " + ex);
        }
        
        
        return list;
    }