EOS/Scripts/Shared/MESSAGE.js
Nidhi Bhargava f0c1ab20e1 code push
2025-09-04 16:25:07 +05:30

136 lines
6.5 KiB
JavaScript

// Initialising Messages and making them available globally in JSON object.
var MESSAGES =
{
noRecord: 'No reports..!!',
pressGo: 'No reports..!!',
cannotUpdate: 'Fill all required fields...',
imeiAlert: 'Only 15 numbers are allowed in IMEI...',
releaseAlert: 'Are you sure to release this device..?',
alreadyReleaseAlert: 'This device is already released..!!',
noDataAvailable: 'No Data Available..!!'
};
// Positioning-Tool Error/Warning/Suceess Message-Store.
var POSITIONING_MSG =
{
coverage_update_success: 'SUCCESS: VAN COVERAGE AREA for current selection of filters is updated successfully.',
coverage_update_error: 'ERROR: VAN COVERAGE AREA for current selection of filters is not updated.',
drag_van_error: 'ERROR: No response from Google. Please try putting Van again.',
sla_exceed_error: 'SLA time (In Minutes) to this location is more than ',
bs_put_van_error: 'ERROR: No response from Google. Please try putting Van again.',
bs_no_waypoints: 'WARNING: No waypoints present on the map.',
bs_calculate_blind_spot_error: 'ERROR: No response from Google. Please try again.',
bs_calculate_blind_spot_success: 'SUCCESS: You can put the Van anywhere on this route.',
bs_calculate_blind_spot_warning: 'WARNING: Please put waypoints more precisely.',
bs_reset_tools: 'WARNING: Please press RESET to generate new Blind-Spots.',
bs_waypoints_limit: 'WARNING: Maximum waypoints limit is 25.'
}
// Manage EOS-Team Van Coverage Design's Error/Warning/Suceess Message-Store.
var EOS_VAN_COVERAGE_DESIGN_MSG =
{
before_coverage_design_warning: 'ERROR: Please design the Van Coverage first.',
all_sla_coverage_design_warning: 'ERROR: Please design the Van Coverage for all the SLAs.',
van_coverage_design_success: 'SUCCESS: VAN COVERAGE AREA for current selection of filters is updated successfully.',
van_coverage_design_error: 'ERROR: VAN COVERAGE AREA for current selection of filters is not updated.',
van_coverage_not_exists: 'ERROR: VAN COVERAGE AREA for current selection of filters is not available.',
no_response_google_error: 'ERROR: No response from Google. Please try putting Van again.'
}
// Initialising Messages for User Inventory and making them available globally in JSON object.
var USER_INVENTORY_MESSAGES =
{
addUserSuccess: 'User added successfully...!!',
addUserFailed: 'Add User failed...!! ',
editUserSuccess: 'User details are updated successfully...!!',
editUserFailed: 'Update User failed...!! '
};
// Initialising Messages for Manage Escalation and making them available globally in JSON object.
var MANAGE_ESCALATION_MESSAGES =
{
escalationDeleteSuccess: 'Escalation deleted successfully..!!',
escalationDeleteFailed: 'Deletion is unsuccessful..!!',
escalationAlreadyExist: 'This escalation already exist..!!',
errorInEditEscalation: 'Some error has found in update Escalation..!!',
exceptionInEditEscalation: 'Error in update Escalation..!!',
confirmDeleteEscalation: 'Are you sure that you want to delete escalation for Manager'
};
// Initialising Messages for Add New Ticket and making them available globally in JSON object.
var CREATE_TICKET_MESSAGES =
{
requiredBreakdownLocation: 'Please select breakdown location and then click on Get All Vans..!!',
vanDealerUnavailable: 'No Van/Dealer is available..!!',
updateTicketSuccess: 'Ticket updated successfully..!!'
};
// Initialising Messages for add and edit feedback and making them available globally in JSON object.
var FEEDBACK_MESSAGES =
{
requiredCallStatus: 'Please select Call Status atleast..!!',
requiredFieldFill: 'Please fill required data to submit feedback..!!',
savedFeedbackSuccess: 'Feedback details saved successfully..!!',
requiredReason: 'Please select reason..!!',
requiredFieldsSubmitReason: 'Please fill required data to submit reason..!!',
reasonSavedSuccessfully: 'Reason saved successfully..!!'
};
// Initialising Messages for Manage Fleet and making them available globally in JSON object.
var MANAGE_FLEET_MESSAGES =
{
chkDealerVanStateCity: 'The dealer state and van state should be same. please check van :',
setDealerLocation: 'Please set Dealer Location',
confirmDeleteDealer: 'Are you sure that you want to delete the Dealer',
confirmDeleteVan: 'Do you want to delete the Van Name',
confirmDeleteVehicle: 'Do you want to delete the Vehcile Of Reg. No.',
confirmDeleteCustomer: 'Do you want to delete the Fleet Owner',
confirmDeleteReason: 'Are you sure that you want to delete the Reason for Reason Type',
confirmDeleteVModel: 'Are you sure that you want to delete the Vehicle model',
addVanRequired: 'Please first add Van',
mobileNoValidation: 'Mobile No. should be of 10 characters.',
confirmReleaseDevice: 'Do you want to release the Van Name'
};
// Initialising Messages for Manage Owner and making them available globally in JSON object.
var MANAGE_OWNER_MESSAGES =
{
vehicleRequiredForCustomer: 'Every Customer must have atleast one Vehicle',
driverRequiredForVehicle: 'Every Vehicle must have atleast one Driver',
enterVehicleDetail: 'Please enter Vehicle detail',
enterValidEmail: 'Please enter valid email',
confirmDeleteDriver: 'Are you sure that you want to delete the Driver',
};
// Initialising Messages for Manage Fleet and making them available globally in JSON object.
var MANAGE_REASON_MESSAGES =
{
deleteReasonSuccess: 'Reason deleted successfully!!',
deleteReasonFail: 'Deletion is unsuccessful!!',
registrationNoExist: "This Registration No. is already added by you for Van Name : "
};
// Initialising Messages for Manage Vehicle Model and making them available globally in JSON object.
var MANAGE_VEHICLE_MESSAGES =
{
deleteVModelSuccess: 'Vehicle Model deleted successfully!!',
deleteVModelFail: 'Deletion is unsuccessful!!',
changeVehicleNameorType:"No change in Vehicle Name or Vehicle Type"
};
// Initialising Messages for Geo Analysis and making them available globally in JSON object.
var MANAGE_GEOANALYSIS_MESSAGES =
{
atleastOnecheckbox: 'Atleast one checkbox must be checked',
oppurtunityLostValidation: "Opportunity Lost record not found.",
SLAMetValidation: "SLA Met record not found",
SLANotMetValidation: "SLA Not Met record not found",
};
// Initialising Messages for Positioning Tool and making them available globally in JSON object.
var MANAGE_POSTIONINGTOOL_MESSAGES =
{
atleastOnecheckbox: 'Atleast one switch button must be ON.'
};