ManageOwner Class
To perform CRUD On Manage Owner.
Constructor
ManageOwner
()
Item Index
Methods
- AddCustDetl
- AddCustomer
- AddInList
- addKendoWindowToDiv
- AddVechileDetl
- AllValid
- btnAddOwnerDetail
- btnCancelAddUser
- btnSaveCustDetail
- btnSaveVechileCust
- btnUndoVanDealerDetail
- btnUndoVechDetail
- CheckChasisNoInGrid
- CheckDUP
- CheckRegNoInGrid
- CheckVechileValidation
- closeWindow
- DeleteCust
- DeleteVechile
- editCust
- editVechile
- getOwnerList
- GetProductVar
- HideValidMsg
- HideVechileValidationMsg
- initSearch
- isNumber
- LoadCityList
- loadStateChoices
- onRowBoundCust
- onRowBoundVechile
- RowSelected
- SaveRecord
- SetDupValueFalse
- SetKendoWindowTitle
- validateEmail
Events
Methods
AddCustDetl
()
This function create a popup for Add Driver Detail.
AddCustomer
-
e
Function to Show the Detail in pop up on Add Csutomer Button Click in Kendo grid.
Parameters:
-
eObjectContains Complete Row Detail Of Kendo grid.
AddInList
()
This Function is used to save or update the record of Vechile and Driver.
addKendoWindowToDiv
-
divId -
titleText -
width -
left -
top
Function to Add Kendo Window.
Parameters:
-
divIdStringId of Kendo Window
-
titleTextStringTitle Of Kendo Window
-
widthStringwidth Of Kendo Window
-
leftStringleft Of Kendo Window
-
topStringtop Of Kendo Window
AddVechileDetl
()
This function create a popup for Add Vechile Detail.
AllValid
()
This Function is used to Check the validation for Add or Updating Owner Detail
btnAddOwnerDetail
()
This function is used to Add the New Owner.
btnCancelAddUser
()
This function is used to Cancel the Operation.
btnSaveCustDetail
()
Function used to save or update (in case of newly added Driver) the Driver in grid.
btnSaveVechileCust
()
Function used to save or update (in case of newly added Vechile) the Vechile Including its Driver in grid.
btnUndoVanDealerDetail
()
This Function is used to Reset the Driver Detail
btnUndoVechDetail
()
This Function is used to Reset the Driver Detail
CheckChasisNoInGrid
-
ChasisNo
This Function is used to check whether Chasis no is exist in grid or not
Parameters:
-
ChasisNoStringVechile ChasisNo No.
CheckDUP
-
type
This Function is used to check whether Vechile Registration No., Vechile Chasis No. or Owner Mobile No is already Added or available in DB.
Parameters:
-
typeString= 1(For Vechile Registration No.),type = 2(For Vechile Chasis No.),type = 3 (for Owner Mobile No.)
CheckRegNoInGrid
-
vVechileRegdNo
This Function is used to check whether Reg. No. is exist in grid or not.
Parameters:
-
vVechileRegdNoStringVechile Registration No.
CheckVechileValidation
()
This Function is used to Check the validation for Add or Updating Vechile and Driver Detail
closeWindow
-
divId
Function to Close the kendo Window.
Parameters:
-
divIdStringId of Kendo Window
DeleteCust
-
e
Function To Delete the selected Row in Driver grid
Parameters:
-
eObjectContains Information about selected Row of Kendo Grid
DeleteVechile
-
e
Function To Delete the selected Row in vechile grid
Parameters:
-
eObjectContains Information about selected Row of Kendo Grid
editCust
-
e
Function To Edit Driver Detail
Parameters:
-
eObjectContains Information about selected Row of Kendo Grid
editVechile
-
e
Function To Edit Vechile Detail
Parameters:
-
eObjectContains Information about selected Row of Kendo Grid
getOwnerList
()
Function to get Owner list.
GetProductVar
()
This Function is used to get the product Varient based on Model No.
HideValidMsg
()
This Function is used to hide the validation Message of owner Detail
HideVechileValidationMsg
()
This Function is used to Hide the validation message for Add or Updating Vechile and Driver Detail
initSearch
()
This function is used to Search the data In Owner List
isNumber
-
e -
t
This function is Used to Check Whether the keypress No is Entered or Not.
Parameters:
-
eObjectGet Event Detail
-
tObjectGet Textbox Detail
LoadCityList
-
stateId
Function to load city list state wise.
Parameters:
-
stateIdStringselected state id
loadStateChoices
()
This Function is used to Get The Load State
onRowBoundCust
-
e
Function of Binding Of Grid And set Delete Button In Driver Grid.
Parameters:
-
eObjectContains Complete kendo grid property
onRowBoundVechile
-
e
Function of Binding Of Grid And set Delete Button In Vechile Grid.
Parameters:
-
eObjectContains Complete kendo grid property
RowSelected
()
Function to Get The Call When the Kendo Grid Row is Selected.
SaveRecord
()
This Function is used to save the record of owner.
SetDupValueFalse
()
This Function is used to intialize the vRegNoDup and vChasisNoDup so that it should be check on blur or on save in button click in Vechile and Driver
SetKendoWindowTitle
-
divId -
titleText
Function to Set Kendo Window Title.
Parameters:
-
divIdStringId of Kendo Window
-
titleTextStringTitle Of Kendo Window
validateEmail
-
email
This Function is used to Validate the Email Id
Parameters:
-
emailStringtext of Email
Events
keyup
Bind textbox keyup event for searching.
