Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23343 ashik.ali 1
$(function() {
2
	$(".good_inventory").live('click', function() {
24739 tejbeer 3
		loadGoodInventory("main-content", "");
23343 ashik.ali 4
	});
24739 tejbeer 5
 
23343 ashik.ali 6
	$(".catalog").live('click', function() {
27171 tejbeer 7
		// clear pendingOrderId
8
		if (typeof pendingPO != "undefined") {
26826 amit.gupta 9
			delete pendingPO;
10
			delete pendingPOCustomer;
11
		}
24739 tejbeer 12
		loadCatalog("main-content", "");
23343 ashik.ali 13
	});
24739 tejbeer 14
 
24658 tejbeer 15
	$(".review_order").live('click', function() {
16
		loadOrder("main-content");
17
	});
24739 tejbeer 18
 
26039 tejbeer 19
	$(".notify_cancel").live('click', function() {
20
		loadNotifyCancelOrder("main-content");
21
	});
22
 
24739 tejbeer 23
	$(".keep-a-tab").live('click', function() {
24
		loadtabOrder("main-content");
25
	});
25066 tejbeer 26
 
24917 tejbeer 27
	$(".notify_order").live('click', function() {
28
		loadnotifyOrder("main-content");
29
	});
25066 tejbeer 30
 
23343 ashik.ali 31
	$(".item_aging").live('click', function() {
32
		getInventoryItemAgingByInterval("main-content", "");
33
	});
24739 tejbeer 34
 
23343 ashik.ali 35
	$("#item-aging-search-button").live('click', function() {
36
		searchContent = $("#item-aging-search-text").val();
24739 tejbeer 37
		if (typeof (searchContent) == "undefined" || !searchContent) {
23343 ashik.ali 38
			searchContent = "";
39
		}
40
		getInventoryItemAgingByInterval("main-content", searchContent);
24739 tejbeer 41
	});
42
 
23343 ashik.ali 43
	$("#item-aging-search-text").live("keyup", function(e) {
44
		var keyCode = e.keyCode || e.which;
24739 tejbeer 45
		if (keyCode == 13) {
46
			$("#item-aging-search-button").click();
47
		}
23343 ashik.ali 48
	});
24739 tejbeer 49
 
23629 ashik.ali 50
	$("#item-aging-paginated .next").live('click', function() {
24739 tejbeer 51
		var end = $("#item-aging-paginated .end").text();
23629 ashik.ali 52
		getItemAgingNextPreviousItems(end, "");
53
		$("#item-aging-paginated .next").blur();
24739 tejbeer 54
	});
55
 
23343 ashik.ali 56
	$("#item-aging-paginated .previous").live('click', function() {
24739 tejbeer 57
		var start = $("#item-aging-paginated .start").text();
23343 ashik.ali 58
		getItemAgingNextPreviousItems(start - 11, "");
59
		$("#item-aging-paginated .previous").blur();
24739 tejbeer 60
	});
61
 
23343 ashik.ali 62
	$(".download_aging_report").live('click', function() {
63
		downloadAgingReport();
64
	});
24739 tejbeer 65
 
23637 amit.gupta 66
	$(".download_reports").live('click', function() {
67
		downloadReports();
68
	});
24739 tejbeer 69
 
23343 ashik.ali 70
	$(".item-ledger-report-download-page").live('click', function() {
71
		loadItemLedgerReportDownloadPage("main-content");
72
	});
24739 tejbeer 73
 
23343 ashik.ali 74
	$(".bad_inventory").live('click', function() {
24739 tejbeer 75
		loadBadInventory("main-content", "");
23343 ashik.ali 76
	});
24739 tejbeer 77
 
78
	$("#good-inventory-paginated .next").live(
79
			'click',
80
			function() {
81
				var searchText = $("#good-inventory-search-text").val();
82
				if (typeof (searchText) == "undefined" || !searchText) {
83
					searchText = "";
84
 
85
				}
86
				var params = {};
87
				params['searchTerm'] = searchText;
88
				loadPaginatedNextItems('/getPaginatedCurrentInventorySnapshot',
89
						params, 'good-inventory-paginated',
90
						'good-inventory-table', null);
91
				$(this).blur();
92
			});
93
 
94
	$("#good-inventory-paginated .previous").live(
95
			'click',
96
			function() {
97
				var searchText = $("#good-inventory-search-text").val();
98
				if (typeof (searchText) == "undefined" || !searchText) {
99
					searchText = "";
100
				}
101
				var params = {};
102
				params['searchTerm'] = searchText;
103
				loadPaginatedPreviousItems(
104
						'/getPaginatedCurrentInventorySnapshot', params,
105
						'good-inventory-paginated', 'good-inventory-table',
106
						null);
107
				$(this).blur();
108
			});
109
 
23343 ashik.ali 110
	$("#good-inventory-search-button").live('click', function() {
111
		var searchText = $("#good-inventory-search-text").val();
24739 tejbeer 112
		if (typeof (searchText) == "undefined" || !searchText) {
23343 ashik.ali 113
			searchText = "";
114
		}
115
		loadGoodInventorySearchInfo(searchText);
24739 tejbeer 116
	});
117
 
23343 ashik.ali 118
	$("#good-inventory-search-text").live("keyup", function(e) {
119
		var keyCode = e.keyCode || e.which;
24739 tejbeer 120
		if (keyCode == 13) {
121
			$("#good-inventory-search-button").click();
122
		}
23343 ashik.ali 123
	});
24739 tejbeer 124
 
125
	$("#catalog-paginated .next").live(
126
			'click',
127
			function() {
128
				var searchText = $("#catalog-search-text").val();
129
				if (typeof (searchText) == "undefined" || !searchText) {
130
					searchText = "";
131
				}
132
 
133
				var params = {};
134
				params['searchTerm'] = searchText;
135
				loadPaginatedNextItems('/getPaginatedCatalog', params,
136
						'catalog-paginated', 'catalog-table', null);
137
				$(this).blur();
138
			});
139
 
140
	$("#catalog-paginated .previous").live(
141
			'click',
142
			function() {
143
				var searchText = $("#catalog-search-text").val();
144
				if (typeof (searchText) == "undefined" || !searchText) {
145
					searchText = "";
146
				}
147
 
148
				var params = {};
149
				params['searchTerm'] = searchText;
150
				loadPaginatedPreviousItems('/getPaginatedCatalog', params,
151
						'catalog-paginated', 'catalog-table', null);
152
				$(this).blur();
153
			});
154
 
23343 ashik.ali 155
	$("#catalog-search-button").live('click', function() {
156
		var searchText = $("#catalog-search-text").val();
24739 tejbeer 157
		if (typeof (searchText) == "undefined" || !searchText) {
23343 ashik.ali 158
			searchText = "";
159
		}
160
		loadCatalogSearchInfo(searchText);
24739 tejbeer 161
	});
162
 
23343 ashik.ali 163
	$("#catalog-search-text").live("keyup", function(e) {
164
		var keyCode = e.keyCode || e.which;
24739 tejbeer 165
		if (keyCode == 13) {
166
			$("#catalog-search-button").click();
167
		}
23343 ashik.ali 168
	});
24917 tejbeer 169
 
25640 tejbeer 170
	$(".cancellation").live(
171
			"click",
172
			function(e) {
173
				orderid = $(this).data('orderid');
174
				itemId = $(this).data('itemid');
25066 tejbeer 175
 
25640 tejbeer 176
				doGetAjaxRequestHandler(context
177
						+ "/getcancelOrderItems?itemId=" + itemId, function(
178
						response) {
179
					$('.cancel-order-container .modal-content').html(response);
180
					$("#textreason").hide();
181
				});
182
			});
183
 
184
	$(".cancel-order-submit").live("click", function(e) {
24917 tejbeer 185
		requestcancelOrder();
186
	});
24739 tejbeer 187
	$(".keepatab").live("click", function(e) {
188
		orderid = $(this).data('orderid');
189
		cancelOrder(orderid, "KEEP_A_TAB")
24917 tejbeer 190
 
24739 tejbeer 191
	});
23343 ashik.ali 192
 
25066 tejbeer 193
	$(".request-cancel").live('click', function() {
194
 
195
	});
196
 
197
	$(".mk_button").on("click", function() {
198
 
199
	});
200
 
24917 tejbeer 201
	$(".closeOrder")
202
			.live(
203
					"click",
204
					function(e) {
205
						orderid = $(this).data('orderid');
206
						if (confirm("Are you sure you want to close the order") == true) {
24739 tejbeer 207
 
24917 tejbeer 208
							doPostAjaxRequestHandler(context
209
									+ "/closeOrder?orderId=" + orderd,
210
									function(response) {
211
										if (response == 'true') {
212
											alert("successfully close");
213
											loadtabOrder("main-content");
214
										}
215
									});
216
						}
217
 
218
					});
25066 tejbeer 219
	$('#notify-table').find(':checkbox').live('change', function(e) {
220
		var colormessage = [];
221
		$("#notify-table input[type=checkbox]:checked").each(function() {
24917 tejbeer 222
 
25066 tejbeer 223
			var row = $(this).closest("tr")[0];
224
			colormessage.push(row.cells[0].innerText);
225
 
226
			console.log(colormessage)
227
		});
228
 
229
		$("#colorValue").text(colormessage);
230
	});
231
 
25698 tejbeer 232
	$('#cancel-order-table').find(':checkbox').live('change', function(e) {
233
		var orderId = [];
234
 
235
		$("#cancel-order-table input[type=checkbox]:checked").each(function() {
236
			var currentRow = $(this).closest("tr");
237
 
238
			orderId.push(currentRow.find("td:eq(2)").html());
239
 
240
		});
241
 
242
		selectedOrderId = $('#orderIds').val(orderId);
243
		console.log(selectedOrderId);
244
	});
245
 
25066 tejbeer 246
	$('#overridemessage').live('change', function() {
247
		if ($(this).is(':checked')) {
248
			$('#textnotifymessage').show();
249
			$('#textnotifymessage').focus();
250
		} else {
251
			$('#textnotifymessage').hide();
252
		}
253
	});
254
 
26031 tejbeer 255
	$(".notify-cancel-order-submit")
256
			.live(
257
					"click",
258
					function(e) {
259
						var jsonObject = {};
260
						var orderAndItemIdsJson = [];
261
						var orderAndItemIds;
262
						var orderIds;
263
						var message;
264
						message = $('#textNotifyCancellationMessage').val();
265
 
266
						var partnerchecked = $("input[name='partnerCancelOrderCheck']:checked").length;
267
 
268
						if (!partnerchecked) {
269
							alert("You must check at least one partner.");
270
							return false;
271
						}
272
 
273
						if (message === "") {
274
							alert("message is required");
275
							return false;
276
						}
277
 
278
						$('#partner-cancel-order-table')
279
								.find('tr')
280
								.each(
281
										function() {
282
											var row = $(this);
283
 
284
											console.log(row);
285
											if (row
286
													.find(
287
															'input[name="partnerCancelOrderCheck"]')
288
													.is(':checked')) {
289
												var currentRow = $(this)
290
														.closest("tr");
291
 
292
												var col5 = currentRow.find(
293
														"td:eq(1)").html();
294
												var col6 = currentRow.find(
295
														"td:eq(2)").html();
296
 
297
												orderIds = {
298
													"orderId" : col6,
299
													"olditemId" : col5
300
												}
301
												orderAndItemIdsJson
302
														.push(orderIds)
303
 
304
											}
305
 
306
										});
307
 
308
						jsonObject['orderIds'] = orderAndItemIdsJson;
309
						jsonObject['message'] = message
310
						console.log(jsonObject)
311
 
312
						if (confirm("Are you sure you want to notify the order") == true) {
313
 
314
							doPostAjaxRequestWithJsonHandler(context
315
									+ "/notifyCancelOrder", JSON
316
									.stringify(jsonObject), function(response) {
317
								if (response == 'true') {
26043 tejbeer 318
									alert("successfully notify");
26031 tejbeer 319
									$('#notifyCancelOrder').modal('hide');
320
									$('.modal-backdrop').remove();
321
									loadOrder("main-content");
322
								}
323
							});
324
						}
325
 
326
					});
24917 tejbeer 327
	$(".notify-submit")
328
			.live(
329
					"click",
330
					function(e) {
331
 
332
						var jsonObject = {};
333
						var orderIdsJSon = [];
334
						var ItemIdsJson = [];
335
						var itemIds;
336
						var orderIds;
25066 tejbeer 337
						var message;
24917 tejbeer 338
 
25066 tejbeer 339
						if ($('#overridemessage').is(':checked')) {
340
							message = $('#textnotifymessage').val();
341
						} else {
25721 tejbeer 342
							message = $('#notifymsg').text();
25066 tejbeer 343
						}
344
 
345
						console.log(message);
24917 tejbeer 346
						var itemchecked = $("input[name='itemCheck']:checked").length;
347
 
348
						if (!itemchecked) {
349
							alert("You must check at least one item.");
350
							return false;
351
						}
352
						var partnerchecked = $("input[name='partnerCheck']:checked").length;
353
 
354
						if (!partnerchecked) {
355
							alert("You must check at least one partner.");
356
							return false;
357
						}
25640 tejbeer 358
 
359
						if (message === "") {
25066 tejbeer 360
							alert("message is required");
361
							return false;
362
						}
24917 tejbeer 363
 
364
						$('#notify-table')
365
								.find('tr')
366
								.each(
367
										function() {
368
											var row = $(this);
369
 
370
											console.log(row);
371
											if (row.find(
372
													'input[name="itemCheck"]')
373
													.is(':checked')) {
374
												var currentRow = $(this)
375
														.closest("tr");
376
 
377
												var col1 = currentRow
378
														.find(
379
																"td:eq(0) input[type='checkbox']")
380
														.val(); // get current
381
												// row 1st TD
382
												// value
383
												var col2 = currentRow
384
														.find(
385
																"td:eq(1) input[name='responseTime']")
386
														.data('daterangepicker').startDate
387
														.format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);// get
388
												// current
389
												// row 2nd TD
390
												var col3 = currentRow
391
														.find(
392
																"td:eq(2) input[name='procuredDate']")
393
														.data('daterangepicker').startDate
394
														.format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
26031 tejbeer 395
												// get current
24917 tejbeer 396
												// row 3rd TD
397
 
398
												itemIds = {
399
													"itemId" : col1,
400
													"responseTime" : col2,
401
													"procuredTime" : col3
402
 
403
												}
404
												ItemIdsJson.push(itemIds);
405
											}
406
 
407
										});
408
 
409
						$('#notify-order-table').find('tr').each(
410
								function() {
411
									var row = $(this);
412
 
413
									console.log(row);
414
									if (row.find('input[name="partnerCheck"]')
415
											.is(':checked')) {
416
										var currentRow = $(this).closest("tr");
417
 
418
										var col5 = currentRow.find("td:eq(2)")
419
												.html();
420
										var col6 = currentRow.find("td:eq(1)")
421
												.html();
422
 
423
										orderIds = {
424
											"orderId" : col5,
425
											"olditemId" : col6
426
										}
427
										orderIdsJSon.push(orderIds)
428
									}
429
								});
430
 
431
						jsonObject['itemIds'] = ItemIdsJson;
432
						jsonObject['orderIds'] = orderIdsJSon;
25066 tejbeer 433
						jsonObject['message'] = message;
24917 tejbeer 434
 
435
						console.log(jsonObject)
436
 
437
						if (confirm("Are you sure you want to notify the order") == true) {
438
 
439
							doPostAjaxRequestWithJsonHandler(context
440
									+ "/notifyOrder", JSON
441
									.stringify(jsonObject), function(response) {
442
								if (response == 'true') {
26039 tejbeer 443
									alert("successfully notify");
25640 tejbeer 444
									$('#notifyOrder').modal('hide');
445
									$('.modal-backdrop').remove();
24917 tejbeer 446
									loadOrder("main-content");
447
								}
448
							});
449
						}
450
 
451
					});
452
 
26039 tejbeer 453
	$(".change-notify-request")
454
			.live(
455
					"click",
456
					function(e) {
457
 
458
						var jsonObject = {};
459
						var orderIdsJSon = [];
460
						var orderIds;
461
 
462
						$('#notify-cancel-order-list-table').find('tr').each(
463
								function() {
464
									var row = $(this);
465
 
466
									console.log(row);
467
									if (row.find(
468
											'input[name="cancelOrderCheck"]')
469
											.is(':checked')) {
470
										var currentRow = $(this).closest("tr");
471
										var col5 = currentRow.find("td:eq(1)")
472
												.html();
473
										var col6 = currentRow.find("td:eq(2)")
474
												.html();
475
 
476
										orderIds = {
477
											"orderId" : col6,
478
											"olditemId" : col5
479
										}
480
										orderIdsJSon.push(orderIds)
481
									}
482
								});
483
						console.log(orderIdsJSon)
484
						jsonObject['orderIds'] = orderIdsJSon;
485
						console.log(jsonObject)
486
						if (confirm("Are you sure you want to update notify order") == true) {
487
 
488
							doPostAjaxRequestWithJsonHandler(context
489
									+ "/changeNotifyCancelRequest", JSON
490
									.stringify(jsonObject), function(response) {
491
								if (response == 'true') {
492
									alert("successfully Update");
493
									$('#notifyCancelOrderList').modal('hide');
494
									$('.modal-backdrop').remove();
495
									loadNotifyCancelOrder("main-content");
496
								}
497
							});
498
						}
499
					});
500
 
24739 tejbeer 501
});
502
 
24917 tejbeer 503
function getItemColor(catalogId, itemId) {
504
	console.log(catalogId);
505
 
506
	doGetAjaxRequestHandler(context + "/getNotifyItemColor?catalogItemId="
507
			+ catalogId + "&itemId=" + itemId, function(response) {
508
		$('.notify-container .modal-content').html(response);
25066 tejbeer 509
		$('#textnotifymessage').hide();
24917 tejbeer 510
	});
511
}
512
 
26031 tejbeer 513
function getItems(catalogItemId) {
514
	doGetAjaxRequestHandler(context + "/getItems?catalogItemId="
515
			+ catalogItemId, function(response) {
516
		$('.notify-cancel-order-container .modal-content').html(response);
517
 
518
	});
519
}
520
 
24739 tejbeer 521
function loadGoodInventory(domId, search_text) {
522
	doGetAjaxRequestHandler(context
523
			+ "/getCurrentInventorySnapshot?searchTerm=" + search_text,
524
			function(response) {
525
				$('#' + domId).html(response);
526
			});
23343 ashik.ali 527
}
528
 
24739 tejbeer 529
function loadCatalog(domId, search_text) {
530
	doGetAjaxRequestHandler(context + "/getCatalog?searchTerm=" + search_text,
531
			function(response) {
532
				$('#' + domId).html(response);
533
			});
534
 
23343 ashik.ali 535
}
536
 
24739 tejbeer 537
function loadOrder(domId) {
538
	doGetAjaxRequestHandler(context + "/getInProcessOrder", function(response) {
24658 tejbeer 539
		$('#' + domId).html(response);
540
	});
24739 tejbeer 541
 
24658 tejbeer 542
}
543
 
24917 tejbeer 544
function loadtabOrder(domId) {
24739 tejbeer 545
	doGetAjaxRequestHandler(context + "/getKeepInTabOrder", function(response) {
23343 ashik.ali 546
		$('#' + domId).html(response);
547
	});
24739 tejbeer 548
 
23343 ashik.ali 549
}
550
 
25066 tejbeer 551
function loadnotifyOrder(domId) {
24917 tejbeer 552
	doGetAjaxRequestHandler(context + "/getAllNotifyOrder", function(response) {
553
		$('#' + domId).html(response);
554
	});
23343 ashik.ali 555
 
24917 tejbeer 556
}
557
 
24739 tejbeer 558
function getInventoryItemAgingByInterval(domId, searchContent) {
559
	doPostAjaxRequestWithJsonHandler(
560
			context + "/getInventoryItemAgingByInterval?searchContent="
561
					+ searchContent, JSON.stringify([ 5, 15, 30, 45 ]),
562
			function(response) {
563
				$('#' + domId).html(response);
564
			});
23343 ashik.ali 565
}
566
 
24739 tejbeer 567
function downloadAgingReport() {
568
	data = JSON.stringify([ 5, 15, 30, 45 ]), doAjaxPostDownload(context
569
			+ "/downloadInventoryItemAgingByInterval", data,
570
			"InventoryItemAging.xlsx");
571
 
572
}
573
 
574
function downloadReports() {
575
	doGetAjaxRequestHandler(context + "/reports", function(response) {
23637 amit.gupta 576
		$('#main-content').html(response);
577
	});
578
}
579
 
24739 tejbeer 580
function downloadItemLedgerReport() {
23343 ashik.ali 581
	console.log("downloadItemLedgerReport Button clicked")
24221 amit.gupta 582
	var dateWise = $("#dateWise").get(0).checked;
24739 tejbeer 583
	doAjaxGetDownload(context + "/itemLedger/complete/download?startDateTime="
584
			+ startDate + "&endDateTime=" + endDate + "&dateWise=" + dateWise,
23343 ashik.ali 585
			"ItemCompleteLedegerReport.xlsx");
586
}
587
 
24739 tejbeer 588
function getItemAgingNextPreviousItems(offset, searchContent) {
23343 ashik.ali 589
	console.log("getItemAgingNextPreviousItems() called");
24739 tejbeer 590
	doPostAjaxRequestWithJsonHandler(context
591
			+ "/getInventoryItemAgingByInterval?offset=" + offset
592
			+ "&searchContent=" + searchContent, JSON
593
			.stringify([ 5, 15, 30, 45 ]), function(response) {
23343 ashik.ali 594
		$('#main-content').html(response);
595
	});
24739 tejbeer 596
 
23343 ashik.ali 597
}
598
 
24739 tejbeer 599
function loadBadInventory(domId, search_text) {
600
	doGetAjaxRequestHandler(context + "/getBadInventorySnapshot?searchTerm="
601
			+ search_text, function(response) {
23343 ashik.ali 602
		$('#' + domId).html(response);
603
	});
604
}
605
 
24739 tejbeer 606
function loadGoodInventorySearchInfo(search_text) {
607
	loadGoodInventory("main-content", search_text);
23343 ashik.ali 608
}
609
 
24739 tejbeer 610
function loadCatalogSearchInfo(search_text) {
611
	loadCatalog("main-content", search_text);
23343 ashik.ali 612
}
613
 
24739 tejbeer 614
function loadItemLedgerReportDownloadPage(domId) {
615
	doGetAjaxRequestHandler(context + "/itemLedger/downloadPage", function(
616
			response) {
23343 ashik.ali 617
		$('#' + domId).html(response);
618
	});
24739 tejbeer 619
}
24917 tejbeer 620
function myFunction() {
25066 tejbeer 621
	var val = $("#selectreason").val();
622
	console.log(val);
623
	if (val == "other") {
624
		$("#textreason").show();
625
	} else {
626
		$("#textreason").hide();
627
	}
628
 
24917 tejbeer 629
}
25066 tejbeer 630
function requestcancelOrder() {
25640 tejbeer 631
	var jsonObject = {};
632
	var orderIdsJson = [];
25698 tejbeer 633
 
25066 tejbeer 634
	val = $('#selectreason').val();
635
	if (val == "other") {
636
		reason = $('#textreason').val();
637
	} else {
25146 tejbeer 638
		reason = val;
25066 tejbeer 639
	}
640
	console.log(reason);
25640 tejbeer 641
 
25066 tejbeer 642
	if (reason == "" || reason == null || reason == undefined) {
643
		alert("reason field can't be empty");
644
		return false;
645
	}
24739 tejbeer 646
 
25640 tejbeer 647
	var partnerOrderCheck = $("input[name='partnerOrderCheck']:checked").length;
24739 tejbeer 648
 
25640 tejbeer 649
	if (!partnerOrderCheck) {
650
		alert("You must check at least one order.");
651
		return false;
652
	}
653
 
25698 tejbeer 654
	var orderIds = $('#orderIds').val()
655
	selectedOrder = orderIds.split(',');
656
	console.log(selectedOrder);
657
	jsonObject['orderIds'] = selectedOrder;
25640 tejbeer 658
	jsonObject['reason'] = reason;
659
 
660
	console.log(jsonObject)
25698 tejbeer 661
 
25640 tejbeer 662
	if (confirm("Are you sure you want to cancel the order") == true) {
663
 
664
		doPostAjaxRequestWithJsonHandler(context + "/cancelOrder", JSON
665
				.stringify(jsonObject), function(response) {
666
			if (response == 'true') {
667
				alert("successfully cancel");
668
				$('#cancelOrder').modal('hide');
669
				$('.modal-backdrop').remove();
670
				loadOrder("main-content");
671
			}
672
		});
673
	}
25698 tejbeer 674
 
24917 tejbeer 675
}
26039 tejbeer 676
 
677
function loadNotifyCancelOrder(domId) {
678
	doGetAjaxRequestHandler(context + "/getNotifiedCancelOrder", function(
679
			response) {
680
		$('#' + domId).html(response);
681
	});
682
}
683
 
684
function getNotifyCancelItems(itemId, OrderId) {
685
	doGetAjaxRequestHandler(context + "/getNotifyItems?itemId=" + itemId,
686
			function(response) {
687
				$('.notify-cancel-order-Items-container .modal-content').html(
688
						response);
689
 
690
			});
691
}