Subversion Repositories SmartDukaan

Rev

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