Subversion Repositories SmartDukaan

Rev

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