Subversion Repositories SmartDukaan

Rev

Rev 30501 | Rev 31762 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30122 amit.gupta 1
$(function () {
2
	$(document).on('click', ".create-scheme", function () {
23343 ashik.ali 3
		loadScheme("main-content");
4
	});
30122 amit.gupta 5
	$(document).on('click', ".scheme-details", function () {
23343 ashik.ali 6
		var schemeId = $(this).attr('data');
23752 govind 7
		console.log("schemeId = " + schemeId);
23343 ashik.ali 8
		loadSchemeDetails(schemeId, "scheme-details-container");
9
	});
30122 amit.gupta 10
	$(document).on('click', ".active-scheme", function () {
23343 ashik.ali 11
		var schemeId = $(this).attr('data');
23752 govind 12
		console.log("active-scheme id : " + schemeId);
13
		var start = $("#schemes-paginated .start").text();
14
		// var end = $( "#schemes-paginated .end" ).text();
23343 ashik.ali 15
		var offset = start - 1;
30122 amit.gupta 16
		if (confirm("Are you sure you want to Active Scheme!")) {
23343 ashik.ali 17
			activeScheme(schemeId, offset, "schemes-table");
18
		}
19
	});
23752 govind 20
 
30122 amit.gupta 21
	$(document).on('click', ".expire-scheme", function () {
23343 ashik.ali 22
		var schemeId = $(this).attr('data');
30599 amit.gupta 23
		var expireDate = getDatesFromPicker('input[name="expireSchemeById"]').endDate;
30122 amit.gupta 24
		if (confirm("Are you sure you want to Expire Scheme!")) {
30599 amit.gupta 25
			expireScheme(schemeId, expireDate, "schemes-table");
23343 ashik.ali 26
		}
27
	});
27755 amit.gupta 28
	$(document).on('click', "#extendDatetime-button",
30122 amit.gupta 29
		function () {
28134 tejbeer 30
			console.log("extendAll button click");
30599 amit.gupta 31
			var extendDatetime = getDatesFromPicker('input[name="extendDatetime"]')
32
				.endDate;
28134 tejbeer 33
			console.log("extendDatetime : " + extendDatetime);
34
			if (extendDatetime) {
30122 amit.gupta 35
				if (confirm("Are you sure you want to Extend expireDateTime for All Scheme!")) {
30599 amit.gupta 36
					extendAllScheme(extendDatetime);
28134 tejbeer 37
				}
38
			} else {
39
				alert("feild can't be blank");
40
			}
41
		});
27755 amit.gupta 42
	$(document).on('click', "#extendScheme-button",
30122 amit.gupta 43
		function () {
28134 tejbeer 44
			console.log("extend button click");
30599 amit.gupta 45
			var extendDatetime = getDatesFromPicker('input[name="extendSchemeById"]').endDate;
28134 tejbeer 46
			var schemeId = $('#schemeId').val()
47
			console.log("extendDatetime : " + extendDatetime);
48
			console.log(schemeId);
49
			if (extendDatetime) {
50
				if (confirm("Are you sure you want to Extend expireDateTime for Scheme!") == true) {
30599 amit.gupta 51
					extendSchemeById(extendDatetime, schemeId);
28134 tejbeer 52
				}
53
			} else {
30054 manish 54
				alert("field can't be blank");
30122 amit.gupta 55
			}
28134 tejbeer 56
		});
30122 amit.gupta 57
 
58
 
29586 manish 59
	$(document).on('click', ".monthy-investment",
30122 amit.gupta 60
		function () {
61
			console.log("hello evaluateActualInvestmentPayout");
62
			window.location.href = context + "/evaluateActualInvestmentPayout";
63
 
64
		});
65
 
66
	$(document).on('click', ".process-investment", function () {
29759 amit.gupta 67
		if (confirm("Are you sure you want to Process Investment")) {
29761 amit.gupta 68
			processInvestment();
29759 amit.gupta 69
		}
70
	});
71
 
30122 amit.gupta 72
 
29586 manish 73
	$(document).on('click', ".processInvestmentDryRun",
30122 amit.gupta 74
		function () {
75
			console.log("processInvestmentDryRun");
76
			window.location.href = context + "/processInvestmentDryRun";
77
 
78
		});
79
 
30054 manish 80
	$(document).on('click', ".brand-wise-income",
30122 amit.gupta 81
		function () {
82
			var brand = $(this).data('brand');
83
 
84
			var status = $(this).data('status');
85
			var month = $(this).data('month');
86
 
87
			brandWiseIncome(brand, month, status);
88
 
89
		});
90
 
30054 manish 91
	$(document).on('click', ".imei_wise_income",
30122 amit.gupta 92
		function () {
23752 govind 93
 
30122 amit.gupta 94
 
95
			var catalogItemId = $(this).data('catalogitemid');
96
			var month = $(this).data('month');
97
 
98
			console.log(catalogItemId);
99
			imeiWiseIncome(catalogItemId, month);
100
 
101
		});
102
 
103
	$(document).on('change', "#month-wise-income", function () {
104
		var month = $(this).val();
105
 
106
		monthWiseIncome(month, "main-content");
107
	});
108
 
109
 
110
	$(document).on('click', ".schemes", function () {
111
		schemes("main-content");
23347 ashik.ali 112
		console.log("Active Schemes Button Clicked...")
28134 tejbeer 113
 
30122 amit.gupta 114
		/*bootbox.confirm({
28134 tejbeer 115
			message: "<div class = 'disclosurehindata'> <img src='resources/images/disclosure.png' style='width:100%'> </div>"
116
			,
117
			buttons: {
118
				confirm: {
119
					label: 'I agree',
120
					className: 'btn-success'
121
				},
122
				cancel: {
123
					label: 'I disagree',
124
					className: 'btn-danger'
125
				}
126
			},
30122 amit.gupta 127
			callback: function (result) {
28134 tejbeer 128
				if (result == true) {
129
				}
130
			}
30122 amit.gupta 131
		});*/
28134 tejbeer 132
 
23347 ashik.ali 133
	});
23752 govind 134
 
30122 amit.gupta 135
	$(document).on('click', ".margin-calculator", function () {
27648 tejbeer 136
		console.log("Active Schemes Button Clicked...")
28134 tejbeer 137
		marginCalculator("main-content");
27648 tejbeer 138
	});
139
 
30122 amit.gupta 140
	$(document).on('click', ".schemes-download-page", function () {
23347 ashik.ali 141
		console.log("Schemes Download Clicked...")
142
		loadSchemesDownloadPage("main-content");
22860 ashik.ali 143
	});
23752 govind 144
 
30122 amit.gupta 145
	$(document).on('click', ".schemes-update", function () {
23556 amit.gupta 146
		loadSchemeUpdatePage("main-content");
147
	});
23557 amit.gupta 148
 
30122 amit.gupta 149
	$(document).on('click', ".add-item", function () {
23928 govind 150
 
151
		schemeIds = $("#schemeids").val();
30122 amit.gupta 152
		itemIds = $("#catalogids").val();
153
		if (confirm("Are you sure you want to Add Model to Scheme!") == true) {
154
			if (catalogIds.trim().length === 0 || schemeIds.trim().length === 0) {
26763 tejbeer 155
				alert("fields shouldn't be blank");
156
				return;
157
			}
30122 amit.gupta 158
			updateSingleScheme(schemeIds, catalogIds);
23928 govind 159
		}
160
	});
30122 amit.gupta 161
	$(document).on('click', ".add-schemes", function () {
23752 govind 162
 
30122 amit.gupta 163
		let schemeIds = $("#schemeids").val();
164
		let catalogIds = $("#catalogids").val();
165
 
23914 govind 166
		if (confirm("Are you sure you want to Add Item to Scheme!") == true) {
30122 amit.gupta 167
			if (catalogIds.trim().length === 0 || schemeIds.trim().length === 0) {
26763 tejbeer 168
				alert("fields shouldn't be blank");
169
				return;
170
			}
30122 amit.gupta 171
			updateSchemes(schemeIds, catalogIds);
23557 amit.gupta 172
		}
173
	});
30122 amit.gupta 174
	$(document).on('click', ".delete-schemes", function () {
175
		if (confirm("Delete model from Scheme?") == true) {
23914 govind 176
			schemeId = $(this).data('schemeid');
30122 amit.gupta 177
			catalogId = $(this).data('catalogid');
178
			deleteScheme(schemeId, catalogId);
23715 govind 179
		}
23752 govind 180
	});
181
 
27755 amit.gupta 182
	$(document).on('click', "#scheme-search-button",
30122 amit.gupta 183
		function () {
28134 tejbeer 184
			var searchText = $("#scheme-search-text").val();
185
			if (typeof (searchText) == "undefined" || !searchText) {
186
				searchText = "";
187
			}
30122 amit.gupta 188
			doGetAjaxRequestHandler(context + "/getSchemes?searchScheme="
189
				+ searchText, function (response) {
190
				$('#' + "main-content").html(response);
191
			});
28134 tejbeer 192
		});
26802 tejbeer 193
 
30122 amit.gupta 194
	$(document).on("keyup", "#scheme-search-text", function (e) {
23752 govind 195
		var keyCode = e.keyCode || e.which;
196
		if (keyCode == 13) {
197
			$("#scheme-search-button").click();
198
		}
199
	});
30122 amit.gupta 200
	$(document).on('click', "#scheme-item-search-button", function () {
23752 govind 201
		var searchText = $("#scheme-item-search-text").val();
27875 amit.gupta 202
		var date = $(".schemes-date").val();
23752 govind 203
		if (typeof (searchText) == "undefined" || !searchText) {
204
			searchText = "";
26497 amit.gupta 205
			alert("please select item");
206
			return;
23752 govind 207
		}
27094 tejbeer 208
		if (typeof currentItem != "undefined") {
209
			console.log(currentItem);
27875 amit.gupta 210
			loadSchemeItemSearchInfo(currentItem, date);
27094 tejbeer 211
		} else {
212
			console.log("reeffff")
213
			alert("Data No Found")
214
		}
23752 govind 215
	});
216
 
28795 tejbeer 217
 
30122 amit.gupta 218
	$(document).on('click', "#scheme-imei-search-button", function () {
28795 tejbeer 219
		var searchText = $("#scheme-imei-search-text").val();
220
		var date = $(".schemes-date").val();
221
		if (typeof (searchText) == "undefined" || !searchText) {
222
			searchText = "";
223
			alert("please select imei");
224
			return;
225
		}
226
		if (typeof imei != "undefined") {
227
			console.log(imei);
228
			loadSchemeImeiSearchInfo(imei, date);
229
		} else {
230
			console.log("reeffff")
231
			alert("Data No Found")
232
		}
233
	});
27755 amit.gupta 234
	$(document).on('click', ".categoryWiseSchemeHistory",
30122 amit.gupta 235
		function () {
28134 tejbeer 236
			var category = $('#partner-category').val();
237
			console.log(category);
26763 tejbeer 238
 
28134 tejbeer 239
			doGetAjaxRequestHandler(context + "/getSchemes?partnerType="
30122 amit.gupta 240
				+ category, function (response) {
241
				$('#' + "main-content").html(response);
242
				$('#partner-category').val(category);
243
				window.dispatchEvent(new Event('resize'));
244
			});
26763 tejbeer 245
 
28134 tejbeer 246
		});
26763 tejbeer 247
 
30122 amit.gupta 248
	$(document).on("keyup", "#scheme-item-search-text", function (e) {
23752 govind 249
		var keyCode = e.keyCode || e.which;
250
		if (keyCode == 13) {
251
			$("#scheme-item-search-button").click();
252
		}
253
	});
22860 ashik.ali 254
});
255
 
23752 govind 256
function configureTagListingItemsDescriptionDropDown() {
30148 amit.gupta 257
	$('.catalogItemsDescription').multiselect({
28134 tejbeer 258
		includeSelectAllOption: true,
259
		maxHeight: 200,
260
		buttonWidth: '180px',
261
		numberDisplayed: 1,
30148 amit.gupta 262
		nonSelectedText: 'Models',
263
		nSelectedText: ' - Models Selected',
264
		allSelectedText: 'All Models Selected',
28134 tejbeer 265
		enableFiltering: true,
266
		enableCaseInsensitiveFiltering: true
23752 govind 267
	});
23343 ashik.ali 268
}
269
 
23752 govind 270
function schemesDownload() {
30599 amit.gupta 271
	let pickerData = getDatesFromPicker('input[name="startEndDateTime"]')
272
	doAjaxGetDownload(context + "/schemes/download?" +
273
		"startDateTime=" + pickerData.startDate
274
		+ "&endDateTime=" + pickerData.endDate,
28134 tejbeer 275
		"SchemesReport.xlsx");
23343 ashik.ali 276
}
30122 amit.gupta 277
 
30501 amit.gupta 278
function selectedbrand(categoryId) {
23914 govind 279
	var brands = $('#tag-listing-brands').val();
280
	if (brands) {
30148 amit.gupta 281
		loadCatalogDescriptionByBrands(
30501 amit.gupta 282
			"tag-listing-items-description-container", categoryId, brands);
23914 govind 283
	}
284
}
30122 amit.gupta 285
 
30492 amit.gupta 286
function categoryChanged() {
287
	let categoryId = $('#category-list').val();
288
	if (categoryId) {
289
		loadBrandsByCategory(
290
			"brand-list", categoryId);
291
	}
292
}
293
 
23752 govind 294
function loadSchemeDetails(schemeId, domId) {
295
	doGetAjaxRequestHandler(context + "/getSchemeById?schemeId=" + schemeId,
30122 amit.gupta 296
		function (response) {
28134 tejbeer 297
			$('#' + domId).html(response);
298
			window.dispatchEvent(new Event('resize'));
299
		});
23343 ashik.ali 300
}
301
 
23752 govind 302
function activeScheme(schemeId, offset, domId) {
303
	doPutAjaxRequestHandler(context + "/activeSchemeById?schemeId=" + schemeId
30122 amit.gupta 304
		+ "&offset=" + offset, function (response) {
305
		$('#' + domId).html(response);
306
		$('#scheme-details-container').html('');
307
	});
23752 govind 308
 
23343 ashik.ali 309
}
310
 
30599 amit.gupta 311
function expireScheme(schemeId, expireDate, domId) {
23752 govind 312
	doPutAjaxRequestHandler(context + "/expireSchemeById?schemeId=" + schemeId
30599 amit.gupta 313
		+ "&expireTimestamp=" + expireDate, function (
30122 amit.gupta 314
		response) {
26763 tejbeer 315
		alert("Scheme - " + schemeId + " marked for expiry successfully!");
23343 ashik.ali 316
		$('#' + domId).html(response);
317
		$('#scheme-details-container').html('');
318
	});
319
}
30122 amit.gupta 320
 
30599 amit.gupta 321
function extendAllScheme(extendDate) {
26763 tejbeer 322
	doPostAjaxRequestWithJsonHandler(context + "/extendAllSchemes", JSON
30599 amit.gupta 323
		.stringify(extendDate), function (response) {
30122 amit.gupta 324
		if (response == 'true') {
325
			alert("Scheme All Extended successfully");
326
			schemes("main-content");
327
		} else {
328
			alert("No scheme Activated Currently");
329
			schemes("main-content");
330
		}
331
	});
23343 ashik.ali 332
 
23914 govind 333
}
30122 amit.gupta 334
 
30599 amit.gupta 335
function extendSchemeById(extendDate, schemeId) {
26763 tejbeer 336
	doPostAjaxRequestWithJsonHandler(context + "/extendSchemeById?schemeId="
30599 amit.gupta 337
		+ schemeId, JSON.stringify(extendDate), function (response) {
30122 amit.gupta 338
		if (response == 'true') {
339
			alert("Scheme extended successfully");
340
			schemes("main-content");
341
		} else {
342
			alert("Scheme already Expired");
343
			schemes("main-content");
344
		}
345
	});
23914 govind 346
}
30122 amit.gupta 347
 
29761 amit.gupta 348
function processInvestment() {
30122 amit.gupta 349
	doPostAjaxRequestWithJsonHandler(context + "/payMonthlyInvestment", function (response) {
29759 amit.gupta 350
		alert("InvestmentPayout processed successfully");
351
	});
352
}
23914 govind 353
 
23752 govind 354
function loadScheme(domId) {
30122 amit.gupta 355
	doGetAjaxRequestHandler(context + "/createScheme", function (response) {
23343 ashik.ali 356
		$('#' + domId).html(response);
30492 amit.gupta 357
		createSchemeOnReady();
358
		categoryChanged();
30599 amit.gupta 359
		$('input[name="dateRange"]').daterangepicker(getRangedDatePicker());
23343 ashik.ali 360
	});
23752 govind 361
 
23343 ashik.ali 362
}
363
 
30501 amit.gupta 364
function loadCatalogDescriptionByBrands(domId, categoryId, brands) {
365
	let brandsString = brands.join(",")
366
	doGetAjaxRequestHandler(`${context}/getCatalogDescriptionByBrands?categoryId=${categoryId}&brands=${brandsString}`,
367
		function (response) {
28134 tejbeer 368
			$('#' + domId).html(response);
369
			configureTagListingItemsDescriptionDropDown();
370
		});
23752 govind 371
 
23343 ashik.ali 372
}
373
 
30492 amit.gupta 374
function loadBrandsByCategory(domId, categoryId) {
375
	doGetAjaxRequestHandler(`${context}/getBrandsByCategory?categoryId=${categoryId}`,
376
		function (response) {
377
			$('#' + domId).html(response);
378
			configureBrandsDropDown();
379
		});
380
}
381
 
23752 govind 382
function schemes(domId) {
30122 amit.gupta 383
	doGetAjaxRequestHandler(context + "/getSchemes", function (response) {
23343 ashik.ali 384
		$('#' + domId).html(response);
385
	});
386
}
30122 amit.gupta 387
 
27648 tejbeer 388
function marginCalculator(domId) {
30122 amit.gupta 389
	doGetAjaxRequestHandler(context + "/getMarginCalculator", function (response) {
27648 tejbeer 390
		$('#' + domId).html(response);
391
	});
392
}
23343 ashik.ali 393
 
23752 govind 394
function loadSchemesDownloadPage(domId) {
30122 amit.gupta 395
	doGetAjaxRequestHandler(context + "/schemes/downloadPage", function (
28134 tejbeer 396
		response) {
23343 ashik.ali 397
		$('#' + domId).html(response);
398
	});
23556 amit.gupta 399
}
400
 
23752 govind 401
function loadSchemeUpdatePage(domId) {
30122 amit.gupta 402
	doGetAjaxRequestHandler(context + "/schemes/update-schemes-page", function (
28134 tejbeer 403
		response) {
23556 amit.gupta 404
		$('#' + domId).html(response);
405
	});
23557 amit.gupta 406
}
407
 
30122 amit.gupta 408
function brandWiseIncome(brand, month, status) {
30054 manish 409
	console.log(brand);
410
	console.log(month);
30122 amit.gupta 411
 
412
	doGetAjaxRequestHandler(context + "/brandWiseIncome?brand=" + brand + "&month=" + month + "&status=" + status, function (
30054 manish 413
		response) {
414
		$('.imei-wise-income-container').html('');
30122 amit.gupta 415
		$('.brand-wise-income-container').html(response);
30054 manish 416
	});
417
}
418
 
30122 amit.gupta 419
function monthWiseIncome(month, domId) {
30054 manish 420
	console.log(month);
30122 amit.gupta 421
	doGetAjaxRequestHandler(context + "/monthWisePartnerIncome/" + month, function (response) {
422
		console.log(response);
423
		$('#' + domId).html(response);
424
	})
30054 manish 425
}
30122 amit.gupta 426
 
427
function imeiWiseIncome(catalogItemId, month) {
30054 manish 428
	console.log(catalogItemId);
429
	console.log(month);
30122 amit.gupta 430
 
431
	doGetAjaxRequestHandler(context + "/getLastMonthImeiWiseIncome?catalogItemId=" + catalogItemId + "&month=" + month, function (
30054 manish 432
		response) {
30122 amit.gupta 433
		$('.imei-wise-income-container').html(response);
30054 manish 434
	});
435
}
436
 
30122 amit.gupta 437
function updateSingleScheme(shcemeIds, catalogIds) {
23928 govind 438
	doPostAjaxRequestWithJsonHandler(context + '/addItemToScheme', JSON
28134 tejbeer 439
		.stringify({
30122 amit.gupta 440
			"catalogIds": catalogIds.split(",").map(Number),
28134 tejbeer 441
			"schemeIds": schemeIds.split(",").map(Number)
30122 amit.gupta 442
		}), function (response) {
443
		if (response == 'true') {
444
			alert("Item Added to scheme successfully");
445
			// $('#newItemToSchemeModal').modal('hide');
446
			loadSchemeDetails(shcemeIds, "scheme-details-container");
447
		} else {
448
			alert("Item already present");
449
			loadSchemeDetails(shcemeIds, "scheme-details-container");
450
		}
451
	});
23715 govind 452
}
30122 amit.gupta 453
 
454
function updateSchemes(schemeIds, catalogIds) {
23928 govind 455
	doPostAjaxRequestWithJsonHandler(context + '/schemes/update', JSON
28134 tejbeer 456
		.stringify({
30122 amit.gupta 457
			"catalogIds": catalogIds.split(",").map(Number),
28134 tejbeer 458
			"schemeIds": schemeIds.split(",").map(Number)
30122 amit.gupta 459
		}), function (response) {
460
		if (response == 'true') {
461
			alert("Item Added to scheme successfully");
462
			// $('#newItemToSchemeModal').modal('hide');
463
			loadSchemeUpdatePage("main-content");
464
		}
465
	});
23928 govind 466
}
30122 amit.gupta 467
 
468
function deleteScheme(schemeId, catalogId) {
469
	doDeleteAjaxRequestHandler(context + "/schemes/delete?schemeId=" + schemeId
470
		+ "&catalogId=" + catalogId, function (response) {
471
		if (response == 'true') {
472
			alert("Model Deleted successfully from Scheme");
473
			loadSchemeDetails(schemeId, "scheme-details-container");
474
		}
475
	});
23752 govind 476
}
30122 amit.gupta 477
 
478
 
479
function loadSearchItemScheme(domId, selectedModel, date) {
26802 tejbeer 480
	var searchText = $("#scheme-item-search-text").val();
481
	var category = $('#partner-category').val();
26912 tejbeer 482
 
26802 tejbeer 483
	if (typeof (searchText) == "undefined" || !searchText) {
484
		searchText = "";
485
	}
486
	if (typeof (category) == "undefined" || !category) {
487
		category = "";
488
	}
30122 amit.gupta 489
	if (searchText && category) {
490
		doGetAjaxRequestHandler(`${context}/getSchemes?searchModel=${selectedModel}&partnerType=${category}&date=${date}`, function (response) {
26802 tejbeer 491
			$('#' + domId).html(response);
492
			$('#partner-category').val(category);
493
		});
30122 amit.gupta 494
	} else if (searchText) {
30253 amit.gupta 495
		doGetAjaxRequestHandler(`${context}/getSchemes?searchModel=${selectedModel}&date=${date}`, function (response) {
26802 tejbeer 496
			$('#' + domId).html(response);
30253 amit.gupta 497
			$('#partner-category').val(category);
26802 tejbeer 498
		});
26912 tejbeer 499
 
500
	}
501
 
23752 govind 502
}
28795 tejbeer 503
 
504
function loadSearchImeiScheme(domId, selected_imei, date) {
505
	var category = $('#partner-category').val();
506
	var searchText = $("#scheme-imei-search-text").val();
507
 
508
	var category = $('#partner-category').val();
509
 
510
	console.log(category)
511
 
512
	if (typeof (searchText) == "undefined" || !searchText) {
513
		searchText = "";
514
	}
515
	if (typeof (category) == "undefined" || !category) {
516
		category = "";
517
	}
518
	if ((searchText) && (category)) {
519
		doGetAjaxRequestHandler(context + "/getSchemes?searchImei="
30122 amit.gupta 520
			+ selected_imei + "&partnerType=" + category, function (
521
			response) {
28795 tejbeer 522
			$('#' + domId).html(response);
523
 
524
			$('#partner-category').val(category);
525
			$('#scheme-imei-search-text').val(selected_imei);
526
		});
527
	} else if ((searchText)) {
30122 amit.gupta 528
		doGetAjaxRequestHandler(`${context}/getSchemes?searchImei=${selected_imei}&date=${date}`, function (response) {
28795 tejbeer 529
			$('#' + domId).html(response);
530
			$('#scheme-imei-search-text').val(selected_imei);
531
 
532
		});
533
	}
534
 
535
}
30122 amit.gupta 536
 
537
function loadSchemeItemSearchInfo(selectedModel, date) {
538
	loadSearchItemScheme("main-content", selectedModel, date);
23752 govind 539
}
28795 tejbeer 540
 
541
function loadSchemeImeiSearchInfo(selectedImei, date) {
542
 
543
	loadSearchImeiScheme("main-content", selectedImei, date);
544
}
545