Report Class
This class contains functionality of details of a ticket in Ticket report(Open & Close)
Constructor
Report
()
Item Index
Methods
createMarkerVanDealer
-
position -
icon -
title
Function to draw markers on position of van / dealer
Parameters:
-
positionStringThe location of source van / dealer
-
iconStringThe icon of marker
-
titleStringThe title of marker
drawRoute
-
startLatLng -
endLatLng -
mapID
This fn calculates and draws the Route for the Ticket selected in the Ticket List using Google Direction API
Parameters:
-
startLatLngStringThe lat lng of origin
-
endLatLngStringThe lat lng of destination
-
mapIDStringThe id of map
getReverseGeoCode
-
latLng -
callback
This function reverses the Lat Lng to Get the Approxmiate Address using the Google GeoCoding. Callback the result
Parameters:
-
latLngStringThe lat lng of origin
-
callbackStringThe callback function
getVanBreakdownLocation
-
vanDealerLocation -
breakdownLocation
Function to draw path between source van and destination breakdown vehicle
Parameters:
-
vanDealerLocationStringThe location of source van / dealer
-
breakdownLocationStringThe location of vehicle's breakdown
initMap
-
id
Load google map on page.
Parameters:
-
idStringHTML element id where map is loaded.
onclickLabelActivity
()
Function call on click of Activity label to show ticket activity
onclickLabelRoute
()
Function call on click of Route label to show map
onExpand
()
Function call on expanding data of kendo panelbar
