fr.ifremer.wao.ui.pages
Class SamplingPlan

java.lang.Object
  extended by fr.ifremer.wao.ui.pages.SamplingPlan

@RequiresAuthentication(allowedPrograms={OBSMER,OBSVENTE})
@Import(stylesheet="context:css/sampling.css")
public class SamplingPlan
extends Object

SampingPlan Created: 9 nov. 2009

Author:
fdesbois

Constructor Summary
SamplingPlan()
           
 
Method Summary
 boolean canDisplayTidesReal()
           
 boolean canEditSampleRow()
          Can edit the sampleRow.
 String getActionsClass()
           
 String getCompanyName()
           
 String[] getContextForBoats()
           
 String[] getContextForEditingSampleRow()
           
 List<SampleRow> getData()
          Return List of SampleRow from suiviobsmer-business
 DateFormat getDateFormat()
           
 String getDcf5CodeDescription()
           
 SamplingFilter getFilter()
           
 String getFishingZones()
           
 Integer getHighTotalExpected()
           
 String getHighTotalRatio()
           
 Integer getHighTotalReal()
           
 String getMainClass()
           
 String getMonthCurrentClass()
           
 List<Date> getMonths()
           
 int getNbColumnsForMonths()
           
 int getNbColumnsForOther()
           
 int getNbColumnsForProfession()
           
 int getNbColumnsTotal()
           
 Integer getNbTidesExpected()
           
 Integer getNbTidesReal()
           
 NumberFormat getNumberFormat()
           
 org.nuiton.util.PeriodDates getPeriod()
           
 String getRatioForMonth()
           
 String getRealTidesClass()
           
 String getRealTidesClassForTotal()
           
 String getRowClasses()
           
 String getRowComment()
           
 ServiceSampling getServiceSampling()
           
 Integer getTotalExpectedForMonth()
           
 String getTotalPercentage()
           
 Integer getTotalRealForMonth()
           
 boolean hasNbTidesReal()
           
 boolean isCurrentMonth()
           
 boolean isFacadeChanged()
           
 boolean isFiltersVisible()
          FILTERS
 boolean isRowModified()
           
 boolean isRowNotFinished()
           
 boolean isSectorChanged()
           
 void setSelectedRowId(String selectedRowId)
           
protected  void setTotalsForMonths()
          Set totalExpectedForMonths, totalRealForMonths, highTotalExpected and highTotalReal values.
 boolean showActions()
          ------------------------- ACTIONS ----------------------------------
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplingPlan

public SamplingPlan()
Method Detail

getServiceSampling

public ServiceSampling getServiceSampling()

isFiltersVisible

public boolean isFiltersVisible()
FILTERS


getPeriod

public org.nuiton.util.PeriodDates getPeriod()

getFilter

public SamplingFilter getFilter()

getDcf5CodeDescription

public String getDcf5CodeDescription()

getData

public List<SampleRow> getData()
                        throws WaoException
Return List of SampleRow from suiviobsmer-business

Returns:
List of SampleRow
Throws:
WaoException

getMonths

public List<Date> getMonths()

isFacadeChanged

@Log
public boolean isFacadeChanged()

isSectorChanged

@Log
public boolean isSectorChanged()

getCompanyName

public String getCompanyName()

isCurrentMonth

public boolean isCurrentMonth()

getNbTidesExpected

public Integer getNbTidesExpected()

getFishingZones

public String getFishingZones()

getNbTidesReal

public Integer getNbTidesReal()

hasNbTidesReal

public boolean hasNbTidesReal()

canDisplayTidesReal

public boolean canDisplayTidesReal()

getTotalPercentage

public String getTotalPercentage()

getNumberFormat

public NumberFormat getNumberFormat()

setTotalsForMonths

protected void setTotalsForMonths()
Set totalExpectedForMonths, totalRealForMonths, highTotalExpected and highTotalReal values.


getTotalExpectedForMonth

public Integer getTotalExpectedForMonth()

getTotalRealForMonth

public Integer getTotalRealForMonth()

getRatioForMonth

public String getRatioForMonth()

getHighTotalExpected

public Integer getHighTotalExpected()

getHighTotalReal

public Integer getHighTotalReal()

getHighTotalRatio

public String getHighTotalRatio()

getRowComment

public String getRowComment()

getNbColumnsForProfession

public int getNbColumnsForProfession()

getNbColumnsForMonths

public int getNbColumnsForMonths()

getNbColumnsForOther

public int getNbColumnsForOther()

getNbColumnsTotal

public int getNbColumnsTotal()

getMainClass

public String getMainClass()

getActionsClass

public String getActionsClass()

getRealTidesClass

public String getRealTidesClass()

getRealTidesClassForTotal

public String getRealTidesClassForTotal()

getMonthCurrentClass

public String getMonthCurrentClass()

getDateFormat

public DateFormat getDateFormat()

setSelectedRowId

public void setSelectedRowId(String selectedRowId)

getRowClasses

public String getRowClasses()

showActions

public boolean showActions()
------------------------- ACTIONS ----------------------------------


canEditSampleRow

public boolean canEditSampleRow()
Can edit the sampleRow. Only for admin with no readOnly rights.

Returns:
true if the sampleRow can be edited.

isRowNotFinished

public boolean isRowNotFinished()

isRowModified

public boolean isRowModified()

getContextForEditingSampleRow

public String[] getContextForEditingSampleRow()

getContextForBoats

public String[] getContextForBoats()


Copyright © 2009-2011 Ifremer. All Rights Reserved.