org.opengts.war.track.page
Class ReportMenu

java.lang.Object
  extended by org.opengts.war.tools.WebPageAdaptor
      extended by org.opengts.war.track.page.ReportMenu
All Implemented Interfaces:
WebPage, Constants
Direct Known Subclasses:
ReportMenuDeviceDetail, ReportMenuDriverPerformance, ReportMenuFleetDetail, ReportMenuFleetSummary, ReportMenuIFTA, ReportMenuSysAdmin

public class ReportMenu
extends WebPageAdaptor
implements Constants


Field Summary
static java.lang.String CALENDAR_FROM
           
static java.lang.String CALENDAR_TO
           
static java.lang.String COMMAND_REPORT_SELECT
           
static java.lang.String CSS_REPORT_RADIO_BUTTON
           
static java.lang.String CSS_REPORT_RADIO_OPTION
           
static java.lang.String FORM_DEVICE_GROUP
           
static java.lang.String FORM_GET_REPORT
           
static java.lang.String FORM_SELECT_REPORT
           
static java.lang.String PARM_DEVICE_ID
           
static java.lang.String[] PARM_EMAIL_ADDR
           
static java.lang.String[] PARM_FORMAT
           
static java.lang.String PARM_GROUP_ID
           
static java.lang.String[] PARM_LIMIT
           
static java.lang.String[] PARM_LIMIT_TYPE
           
static java.lang.String PARM_MENU
           
static java.lang.String[] PARM_REPORT
           
static java.lang.String PARM_REPORT_OPT
           
static java.lang.String PARM_REPORT_OPT_
           
static java.lang.String PARM_REPORT_SUBMIT
           
static java.lang.String PARM_REPORT_TEXT
           
static java.lang.String PARM_REPORT_TEXT_
           
static java.lang.String REPORT_TYPE_ALL
           
 
Fields inherited from class org.opengts.war.tools.WebPageAdaptor
PARM_ARGUMENT, PARM_COMMAND, PARM_CONTENT, PARM_PAGE, SORTTABLE_JS, SORTTABLE_SORTKEY, SUBACL_SEPARATOR
 
Fields inherited from interface org.opengts.war.track.Constants
_DEFAULT_BASE_URI, COMMAND_LOGOUT, DEFAULT_ATTACH_URI, DEFAULT_BASE_URI, DEFAULT_DEMO_LOGIN_URI, DEFAULT_MARKER_URI, FORM_COMMAND, FORM_COMMAND_CSV, FORM_MONTH_CHG, LAST_GEOCODE_ADDRESS, LAST_GEOCODE_CACHE, LAST_GEOCODE_LATITUDE, LAST_GEOCODE_LONGITUDE, LAST_REVERSEGEOCODE, PAGE_ACCOUNT_INFO, PAGE_ACCOUNT_NEW, PAGE_ALERT_PANEL, PAGE_CODE_INFO, PAGE_CORRIDOR_INFO, PAGE_DEVICE_ALERTS, PAGE_DEVICE_INFO, PAGE_DEVICE_PROPS, PAGE_DRIVER_INFO, PAGE_ENTITY_INFO, PAGE_GROUP_INFO, PAGE_HTML_WRAP, PAGE_J1587_SHOW, PAGE_LAF_INFO, PAGE_LOGIN, PAGE_MAP_DEVICE, PAGE_MAP_FLEET, PAGE_MENU_REPORT, PAGE_MENU_RPT_DEVDETAIL, PAGE_MENU_RPT_GRPDETAIL, PAGE_MENU_RPT_GRPSUMMRY, PAGE_MENU_RPT_IFTA, PAGE_MENU_RPT_PERFORM, PAGE_MENU_RPT_SYSADMIN, PAGE_MENU_TOP, PAGE_OFFLINE, PAGE_PASSWD, PAGE_PASSWD_EMAIL, PAGE_REPORT_SHOW, PAGE_ROLE_INFO, PAGE_RPTJOB_ADMIN, PAGE_RULE_INFO, PAGE_SYSADMIN_ACCOUNTS, PAGE_SYSADMIN_DEVICES, PAGE_SYSADMIN_INFO, PAGE_SYSPROP_ADMIN, PAGE_USER_INFO, PAGE_WORKORDER_INFO, PAGE_WORKZONE_INFO, PAGE_ZONE_INFO, PARM_ACCOUNT, PARM_ACCOUNT_A, PARM_DEVICE, PARM_DEVICE_COMMAND, PARM_ENCPASS, PARM_GROUP, PARM_LOCALE, PARM_MAP_LIMIT, PARM_MAP_LIMIT_TYPE, PARM_PASSWORD, PARM_PASSWORD_A, PARM_REGION, PARM_REQSTATE, PARM_RESTOREPW, PARM_RULE, PARM_SA_RELOGIN, PARM_SA_RELOGIN_ACCT, PARM_SA_RELOGIN_SESS, PARM_SA_RELOGIN_USER, PARM_USER, PARM_USER_A, PARM_USEREMAIL
 
Fields inherited from interface org.opengts.war.tools.WebPage
SORTTABLE_CSS_CLASS, SORTTABLE_CSS_NOSORT
 
Constructor Summary
ReportMenu()
           
 
Method Summary
 java.lang.String getMenuDescription(RequestProperties reqState, java.lang.String parentMenuName)
           
 java.lang.String getMenuHelp(RequestProperties reqState, java.lang.String parentMenuName)
           
 java.lang.String getMenuName(RequestProperties reqState)
           
 java.lang.String getNavigationDescription(RequestProperties reqState)
           
 java.lang.String getNavigationTab(RequestProperties reqState)
           
protected  java.util.List<ReportEntry> getReportItems(RequestProperties reqState, java.lang.String rptType)
           
 java.lang.String getReportType()
           
 boolean isReportTypeAll()
           
 boolean isReportTypeDeviceGroup()
           
 void setReportType(java.lang.String rptType)
           
protected static void writeJS_MenuUpdate(java.io.PrintWriter out, RequestProperties reqState, ReportMenu rptMenu, java.lang.String[] parm_RANGE_FR, java.lang.String[] parm_RANGE_TO, java.lang.String[] parm_TIMEZONE)
           
 void writePage(RequestProperties reqState, java.lang.String pageMsg)
           
 
Methods inherited from class org.opengts.war.tools.WebPageAdaptor
_getMenuDescription, _getMenuHelp, _getNavigationDescription, _getNavigationTab, EncodeMakeURL, EncodeMakeURL, encodePageURL, encodePageURL, encodePageURL, EncodeURL, EncodeURL, FilterText, FilterValue, Form_CheckBox, Form_ComboBox, Form_ComboBox, Form_ComboBox, Form_ComboBox, Form_TextArea, Form_TextArea, Form_TextField, Form_TextField, Form_TextField, Form_TextField, FormRow_CheckBox, FormRow_ComboBox, FormRow_ComboBox, FormRow_ComboBox, FormRow_ComboBox, FormRow_ComboBox, FormRow_ComboBox, FormRow_Separator, FormRow_Separator, FormRow_SubSeparator, FormRow_TextArea, FormRow_TextArea, FormRow_TextField, FormRow_TextField, FormRow_TextField, FormRow_TextNote, getAclName, getAclName, getBaseURI, getBooleanProperty, getChildAclList, getCssDirectory, getDoubleProperty, getFilteredID, getFilteredID, getIsEnabled, getJspURI, getLongProperty, getMenuButtonAltImage, getMenuButtonImage, getMenuGroup, getMenuIconImage, getPageName, getPageNavigation, getPageNavigationHTML, getPageNavigationHTML, getPageURI, getPageURI, getPageURI, getPrivateLabel, getProperties, getRuntimePropertyKey, getRuntimePropertyKeyPrefix, getStringProperty, getTarget, getWindowDimension, hasPageNavigation, hasRuntimePropertyKeyPrefix, isLoginRequired, isOkToDisplay, isValidID, isValidID, JS_alert, MakeURL, MakeURL, MakeURL, MakeURL, Onclick_ConfirmDelete, Onclick_ConfirmOperation, Onclick_ConfirmSelected, postInit, setAclName, setBaseURI, setCssDirectory, setJspURI, setLoginRequired, setMenuButtonAltImage, setMenuButtonImage, setMenuDescription, setMenuGroup, setMenuHelp, setMenuIconImage, setNavigationDescription, setNavigationTab, setPageName, setPageNavigation, setPrivateLabel, setProperties, setRuntimePropertyKeyPrefix, SubmitMatch, SubmitMatch, systemAdminOnly, writeCssLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORM_GET_REPORT

public static final java.lang.String FORM_GET_REPORT
See Also:
Constant Field Values

FORM_SELECT_REPORT

public static final java.lang.String FORM_SELECT_REPORT
See Also:
Constant Field Values

FORM_DEVICE_GROUP

public static final java.lang.String FORM_DEVICE_GROUP
See Also:
Constant Field Values

REPORT_TYPE_ALL

public static final java.lang.String REPORT_TYPE_ALL
See Also:
Constant Field Values

CSS_REPORT_RADIO_BUTTON

public static final java.lang.String CSS_REPORT_RADIO_BUTTON
See Also:
Constant Field Values

CSS_REPORT_RADIO_OPTION

public static final java.lang.String CSS_REPORT_RADIO_OPTION
See Also:
Constant Field Values

COMMAND_REPORT_SELECT

public static final java.lang.String COMMAND_REPORT_SELECT
See Also:
Constant Field Values

PARM_DEVICE_ID

public static final java.lang.String PARM_DEVICE_ID
See Also:
Constant Field Values

PARM_GROUP_ID

public static final java.lang.String PARM_GROUP_ID
See Also:
Constant Field Values

PARM_REPORT_SUBMIT

public static final java.lang.String PARM_REPORT_SUBMIT
See Also:
Constant Field Values

PARM_REPORT

public static final java.lang.String[] PARM_REPORT

PARM_REPORT_OPT_

public static final java.lang.String PARM_REPORT_OPT_
See Also:
Constant Field Values

PARM_REPORT_OPT

public static final java.lang.String PARM_REPORT_OPT
See Also:
Constant Field Values

PARM_REPORT_TEXT_

public static final java.lang.String PARM_REPORT_TEXT_
See Also:
Constant Field Values

PARM_REPORT_TEXT

public static final java.lang.String PARM_REPORT_TEXT
See Also:
Constant Field Values

PARM_LIMIT

public static final java.lang.String[] PARM_LIMIT

PARM_LIMIT_TYPE

public static final java.lang.String[] PARM_LIMIT_TYPE

PARM_FORMAT

public static final java.lang.String[] PARM_FORMAT

PARM_EMAIL_ADDR

public static final java.lang.String[] PARM_EMAIL_ADDR

PARM_MENU

public static final java.lang.String PARM_MENU
See Also:
Constant Field Values

CALENDAR_FROM

public static final java.lang.String CALENDAR_FROM
See Also:
Constant Field Values

CALENDAR_TO

public static final java.lang.String CALENDAR_TO
See Also:
Constant Field Values
Constructor Detail

ReportMenu

public ReportMenu()
Method Detail

writeJS_MenuUpdate

protected static void writeJS_MenuUpdate(java.io.PrintWriter out,
                                         RequestProperties reqState,
                                         ReportMenu rptMenu,
                                         java.lang.String[] parm_RANGE_FR,
                                         java.lang.String[] parm_RANGE_TO,
                                         java.lang.String[] parm_TIMEZONE)
                                  throws java.io.IOException
Throws:
java.io.IOException

setReportType

public void setReportType(java.lang.String rptType)

getReportType

public java.lang.String getReportType()

isReportTypeAll

public boolean isReportTypeAll()

isReportTypeDeviceGroup

public boolean isReportTypeDeviceGroup()

getMenuName

public java.lang.String getMenuName(RequestProperties reqState)
Specified by:
getMenuName in interface WebPage
Specified by:
getMenuName in class WebPageAdaptor

getMenuDescription

public java.lang.String getMenuDescription(RequestProperties reqState,
                                           java.lang.String parentMenuName)
Specified by:
getMenuDescription in interface WebPage
Overrides:
getMenuDescription in class WebPageAdaptor

getMenuHelp

public java.lang.String getMenuHelp(RequestProperties reqState,
                                    java.lang.String parentMenuName)
Specified by:
getMenuHelp in interface WebPage
Overrides:
getMenuHelp in class WebPageAdaptor

getNavigationDescription

public java.lang.String getNavigationDescription(RequestProperties reqState)
Specified by:
getNavigationDescription in interface WebPage
Overrides:
getNavigationDescription in class WebPageAdaptor

getNavigationTab

public java.lang.String getNavigationTab(RequestProperties reqState)
Specified by:
getNavigationTab in interface WebPage
Overrides:
getNavigationTab in class WebPageAdaptor

writePage

public void writePage(RequestProperties reqState,
                      java.lang.String pageMsg)
               throws java.io.IOException
Specified by:
writePage in interface WebPage
Specified by:
writePage in class WebPageAdaptor
Throws:
java.io.IOException

getReportItems

protected java.util.List<ReportEntry> getReportItems(RequestProperties reqState,
                                                     java.lang.String rptType)