API Docs for:
Show:

TicketForDealer Class

This class contains functionality of Ticket administration for Dealer and his vans.

Constructor

Methods

calcRoute

(
  • startLatLng
  • endLatLng
)

This fn calculates and draws the Route for the Ticket selected in the Ticket List using Google Direction API

Parameters:

  • startLatLng String

    Position of origin

  • endLatLng String

    Position of destination

createMarkerVanDealer

(
  • position
  • icon
  • title
)

Function to create markers on van's / dealer's location for ticket details

Parameters:

  • position String

    Position of van / dealer

  • icon String

    Icon of placed marker

  • title String

    Title 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:

  • latLng String

    lat lng of marker

  • callback String

    function callback

getSelectedTab

()

This fn return selected tab id.

getTicketsHistory

(
  • controller
  • assignedToType
  • divId
)

This fn get history of ticket

Parameters:

  • controller String

    Controller name

  • assignedToType String

    Type to which, Ticket is assigned

  • divId String

    HTML 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