TicketForDealer Class
This class contains functionality of Ticket administration for Dealer and his vans.
Constructor
TicketForDealer
()
Item Index
Methods
calcRoute
-
startLatLng -
endLatLng
This fn calculates and draws the Route for the Ticket selected in the Ticket List using Google Direction API
Parameters:
-
startLatLngStringPosition of origin
-
endLatLngStringPosition of destination
createMarkerVanDealer
-
position -
icon -
title
Function to create markers on van's / dealer's location for ticket details
Parameters:
-
positionStringPosition of van / dealer
-
iconStringIcon of placed marker
-
titleStringTitle of placed marker
getCloseTicketsHistory
()
Function to get close tickets history
getOpenTicketsHistory
()
Function to get open tickets history
getReverseGeoCode
-
latLng -
callback
This function reverses the Lat Lng to Get the Approxmiate Address using the Google GeoCoding. Callback the result
Parameters:
-
latLngStringlat lng of marker
-
callbackStringfunction callback
getSelectedTab
()
This fn return selected tab id.
getTicketsHistory
-
controller -
assignedToType -
divId
This fn get history of ticket
Parameters:
-
controllerStringController name
-
assignedToTypeStringType to which, Ticket is assigned
-
divIdStringHTML id of div
graphicalTabAction
()
Maintain tab functionality. show particular div based on the tab id.
initMap
()
Load google map on page.
onclickLabelActivity
()
Function call on click of Activity label to show ticket activity
onclickLabelRoute
()
Function call on click of Route label to show map
removeTicketDetailsMarkerArray
()
This fn removes all markers stored in ticketDetailsMarkerArray.
showTicketHistory
()
This fn show ticket history
