API Docs for:
Show:

TicketAdministration Class

This class contains functionality of Ticket administration for CCE.

Constructor

TicketAdministration

()

Methods

addCustomerForExistingVehicle

(
  • vRegNo
)

Function to add new customer for already existing vehicle

Parameters:

  • vRegNo String

    Registration no of vehicle

addNewCustomer

()

Function to add new customer

addNewTicket

()

Function to add new ticket

assignVan

(
  • index
)

This fn removes and add class to show which Van is assigned.

Parameters:

  • index String

    Index of selected row of van / dealer list

bindClickEventToMap

()

This fn binds Click Event to the Map when adding New Vehicle to location Vehicle Location.

btnCancel

()

Function call onclick cancel button

btnCancelAddCustomer

(
  • divId
)

Function call on click of cancel button of add customer window

Parameters:

  • divId String

    The id of div

calcRoute

(
  • startLatLng
  • endLatLng
  • vanDealerType
  • mapID
)

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

  • vanDealerType String

    Type is Van or Dealer

  • mapID String

    map id

calcRouteDistance

(
  • origin
  • destinationArr
)

This fn calculate route distance and show sorted vans and dealers list in table

Parameters:

  • origin String

    Location of origin

  • destinationArr String

    array Locations of destination

calculateDistanceInSetTimeOut

(
  • breakDownLatLng
  • arrVanDealerLatLng
  • arrVanDealerDetails
  • timeOutSeconds
)

SetTimeOut function to calculate distance between van and dealer using google distance matrix api

Parameters:

  • breakDownLatLng String

    LatLng of breakdown vehicle

  • arrVanDealerLatLng Array

    LatLng of vans / dealers

  • arrVanDealerDetails Array

    details of vans/dealers

  • timeOutSeconds String

    time in seconds for setTimeout function

checkIfContactNoIsSame

()

Function to check owner mobile no. on focus

checkIfVRegistrationNoIsSame

()

Function to check owner vehicle registration no. on focus

checkIsOwnerExist

()

Function to check is owner exist already

checkIsVehicleExist

()

Function to check is vehicle exist already

closeWindow

(
  • divId
)

Function to close kendo window

Parameters:

  • divId String

    The id of div

createAjaxRequest

(
  • controller
  • actionName
  • divId
  • VRegNo
)

Function to create ajax request

Parameters:

  • controller String

    Name of controller

  • actionName String

    Name of action on controller

  • divId String

    HTML id of div

  • VRegNo String

    Registration no. of vehicle

createMarker

(
  • position
  • icon
  • vanDealerId
  • content
  • mapId
)

Function to create markers on van's / dealer's locations

Parameters:

  • position String

    Position of van / dealer

  • icon String

    Icon of placed marker

  • vanDealerId String

    Van / Dealer's id

  • content String

    Content of mesage to show in infowindow

  • mapId String

    map id

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

createVanDealerList

()

setTimeOut function to create sorted van dealer list

createVanDealerSortedList

()

This fn create sorted van dealer list

drawHighway

(
  • startLatLng
  • endLatLng
  • vanDealerType
  • mapID
)

This fn calculates and draws the Route for selected national highway using Google Direction API

Parameters:

  • startLatLng String

    Position of origin

  • endLatLng String

    Position of destination

  • vanDealerType String

    Type is Van or Dealer

  • mapID String

    map id

getCloseTicketDetails

()

Function to get close ticket details

getNearestVansDealers

()

Function to get all nearest vans / dealers list

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

getRoutesList

()

Function to bind all routes in drop down

getStateList

()

Function to bind all states in drop down

getTicketDetails

()

Function to get open ticket details

getTicketHistory

()

Function to get ticket history based on vehicle registration no., customer/owner mobile no. or ticket id/complaint no.

getVehicleModelTagging

()

Function to get vehicle model tagging based on vehicle model no

initMap

(
  • id
)

Load google map on page.

Parameters:

  • id String

    HTML element id where map is loaded.

initMap

(
  • id
)

Provided by the Inventory module.

Defined in Inventory\ShowDealerMap.js:36

Load google map on page.

Parameters:

  • id String

    HTML element id where map is loaded.

LoadCityList

(
  • ddlId
  • cityValue
)

Function to add new customer

Parameters:

  • ddlId String

    HTML id of drop down list of city

  • cityValue String

    HTML value of drop down list selected item of city

onBackButtonClick

()

Function call on click of back button

onBeginGetAllVansDealers

()

Function call on begin of get all nearest vans list

onBlurCity

(
  • $this
)

This function call on change of city ame

Parameters:

  • $this String

    id of input text box

onChangeRoute

()

This function call on change of route name

onClickAssignTicketOrCancel

()

Function call onclick of cancel or assign ticket

onclickLabelActivity

()

Function call on click of Activity label to show ticket activity

onclickLabelRoute

()

Function call on click of Route label to show map

onclickLabelRoute

()

Provided by the ReportModule module.

Defined in Report\reportTicketDetails.js:135

Function call on click of Route label to show map

onclickLabelRoute

()

Function call on click of Route label to show map

onSuccessAddCustomer

()

Function call on success of add customer

onSuccessAddCustomerForExistingVehicle

()

Function call on success of add customer for already existing vehicle

placeLocationOnMap

()

Function to search location using search places text box google map api.

removeClickEventToMap

()

This fn removes Click Event Listener from the map

removeTicketDetailsMarkerArray

()

This fn removes all markers stored in ticketDetailsMarkerArray.

setMapCenterToAddress

(
  • address
)

This function set center and zoom of map when state or city change

Parameters:

  • address String

    address to show on map

showFeedback

()

Function call on click of feedback label to show feedback form

showFeedback

()

Provided by the ReportModule module.

Defined in Report\reportTicketDetails.js:162

Function call on click of feedback label to show feedback form

updateInfoWindow

(
  • unitMarker
  • message
  • map
)

Function to update data of info window on markers of van's / dealer's locations

Parameters:

  • unitMarker String

    Position of van / dealer

  • message String

    Data of info window on placed marker

  • map String

    map id

viewCheckHistory

()

Get Check History Form view