Subversion Repositories SmartDukaan

Rev

Rev 9780 | Rev 11015 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9780 Rev 9923
Line 13... Line 13...
13
p { clear: both; }
13
p { clear: both; }
14
.submit { margin-left: 12em; }
14
.submit { margin-left: 12em; }
15
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
15
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
16
ul { padding-left: 13px;}
16
ul { padding-left: 13px;}
17
td{background-color:gainsboro};
17
td{background-color:gainsboro};
-
 
18
.diffColor {
-
 
19
    background: grey;
-
 
20
}
18
</style>
21
</style>
19
<style type="text/css">
22
<style type="text/css">
20
.loading-image {
23
.loading-image {
21
position: fixed;
24
position: fixed;
22
top: 50%;
25
top: 50%;
Line 64... Line 67...
64
    });
67
    });
65
	$("#search_item").live('click', function() {
68
	$("#search_item").live('click', function() {
66
		var searchText = $('#search_text').val();
69
		var searchText = $('#search_text').val();
67
		loadSearchInfo(searchText);
70
		loadSearchInfo(searchText);
68
    });
71
    });
-
 
72
	$("#search_text").keyup(function(event){
-
 
73
    	if(event.keyCode == 13){
-
 
74
        	$("#search_item").click();
-
 
75
    	}
-
 
76
	});
69
	$(".editItem").live('click', function() {
77
	$(".editItem").live('click', function() {
-
 
78
        $("tr").removeClass("diffColor");
-
 
79
		$("td").css("background-color","")
-
 
80
        $(this).parents("tr").addClass("diffColor");
-
 
81
		$('tr.diffColor').children('td').css('backgroundColor', '#7F98FA');
70
		var itemId = $(this).attr("it");
82
		var itemId = $(this).attr("it");
71
		loadItemDetails("/Support/snapdeal-list/"+ itemId +"/edit");
83
		loadItemDetails("/Support/snapdeal-list/"+ itemId +"/edit");
72
    });
84
    });
73
});
85
});
74
</script>
86
</script>
Line 140... Line 152...
140
        complete: function(){
152
        complete: function(){
141
        $('#ajax-spinner').hide();
153
        $('#ajax-spinner').hide();
142
        },
154
        },
143
        success : function(response) {
155
        success : function(response) {
144
            $('#' + 'snapdeal-table').html(response);
156
            $('#' + 'snapdeal-table').html(response);
-
 
157
			$('#' + 'snapdealitem-details').html("");
145
			$('.valueEnd').text(10);
158
			$('.valueEnd').text(10);
146
			$('.valueStart').text(1);
159
			$('.valueStart').text(1);
147
			$(".previous").css("display", "none");
160
			$(".previous").css("display", "none");
148
			$(".next").css("display", "");
161
			$(".next").css("display", "");
149
			var temp = $('.totalValue').text();
162
			var temp = $('.totalValue').text();
Line 197... Line 210...
197
	var minPossibleSp=$('#minPosSp').val();
210
	var minPossibleSp=$('#minPosSp').val();
198
	var sellingPrice=$('#sellingPrice').val();
211
	var sellingPrice=$('#sellingPrice').val();
199
	var otherCost=$('#otherCost').val();
212
	var otherCost=$('#otherCost').val();
200
	var supc_code=$('#supc').val();
213
	var supc_code=$('#supc').val();
201
	var sdItem=$('#sdItemCode').val();
214
	var sdItem=$('#sdItemCode').val();
-
 
215
	var maxSellingPrice=$('#maxSp').val();
-
 
216
	var websiteMrp=$('#webisteMrp').val();
202
	
217
	
203
	if (supc_code=="" || supc_code==null){
218
	if (supc_code=="" || supc_code==null){
204
		jAlert('Illegal Entry In SUPC', 'ERROR');
219
		jAlert('Illegal Entry In SUPC', 'ERROR');
205
		return false;
220
		return false;
206
	}
221
	}
Line 223... Line 238...
223
	if (sellingPrice==0 || sellingPrice=="" || isNaN(sellingPrice)){
238
	if (sellingPrice==0 || sellingPrice=="" || isNaN(sellingPrice)){
224
		jAlert('Illegal Entry In Selling Price', 'ERROR');
239
		jAlert('Illegal Entry In Selling Price', 'ERROR');
225
		return false;
240
		return false;
226
	}
241
	}
227
	
242
	
-
 
243
	if (maxSellingPrice=="" || isNaN(maxSellingPrice)){
-
 
244
		jAlert('Illegal Entry In Maximum Selling Price ', 'ERROR');
-
 
245
		return false;
-
 
246
	}
-
 
247
	
-
 
248
	if (parseFloat(maxSellingPrice) > parseFloat(websiteMrp)){
-
 
249
		jAlert('Maximum Selling Price can\'t be greater than MRP ', 'ERROR');
-
 
250
		return false;
-
 
251
	}
-
 
252
	
228
	if (otherCost=="" || isNaN(otherCost)){
253
	if (otherCost=="" || isNaN(otherCost)){
229
		jAlert('Illegal Entry In Other Cost ', 'ERROR');
254
		jAlert('Illegal Entry In Other Cost ', 'ERROR');
230
		return false;
255
		return false;
231
	}
256
	}
232
	
257
	
Line 292... Line 317...
292
	var itemId=$('#itemId').val();
317
	var itemId=$('#itemId').val();
293
	var maxNlc=$('#maxNlc').val();
318
	var maxNlc=$('#maxNlc').val();
294
	var otherCost=$('#otherCost').val();
319
	var otherCost=$('#otherCost').val();
295
	var minPossibleSp=$('#minPosSp').val();
320
	var minPossibleSp=$('#minPosSp').val();
296
	var sellingPrice=$('#sellingPrice').val();
321
	var sellingPrice=$('#sellingPrice').val();
-
 
322
	var maxSellingPrice=$('#maxSp').val();
-
 
323
	var websiteMrp=$('#webisteMrp').val();
297
	var supc=$('#supc').val();
324
	var supc=$('#supc').val();
298
	var sdItem=$('#sdItemCode').val();
325
	var sdItem=$('#sdItemCode').val();
299
	
326
	
300
	if (supc=="" || supc==null){
327
	if (supc=="" || supc==null){
301
		jAlert('Illegal Entry In SUPC', 'ERROR');
328
		jAlert('Illegal Entry In SUPC', 'ERROR');
Line 325... Line 352...
325
	if (transferPrice==0 || transferPrice=="" || isNaN(transferPrice)){
352
	if (transferPrice==0 || transferPrice=="" || isNaN(transferPrice)){
326
		jAlert('Illegal Entry In Transfer Price ', 'ERROR');
353
		jAlert('Illegal Entry In Transfer Price ', 'ERROR');
327
		return false;
354
		return false;
328
	}
355
	}
329
	
356
	
-
 
357
	if (maxSellingPrice=="" || isNaN(maxSellingPrice)){
-
 
358
		jAlert('Illegal Entry In Maximum Selling Price ', 'ERROR');
-
 
359
		return false;
-
 
360
	}
-
 
361
	
-
 
362
	if (parseFloat(maxSellingPrice) > parseFloat(websiteMrp)){
-
 
363
		jAlert('Maximum Selling Price can\'t be greater than MRP ', 'ERROR');
-
 
364
		return false;
-
 
365
	}
-
 
366
	
330
	if (otherCost=="" || isNaN(otherCost)){
367
	if (otherCost=="" || isNaN(otherCost)){
331
		jAlert('Illegal Entry In Other Cost ', 'ERROR');
368
		jAlert('Illegal Entry In Other Cost ', 'ERROR');
332
		return false;
369
		return false;
333
	}
370
	}
334
	
371
	
Line 433... Line 470...
433
</script>
470
</script>
434
<title>SnapDeal Listed Items</title>
471
<title>SnapDeal Listed Items</title>
435
</head>
472
</head>
436
<body>
473
<body>
437
	<div style="padding: 20px 0px;">
474
	<div style="padding: 20px 0px;">
-
 
475
	   <a style="padding-left: 10px;" href="/Support/snapdeal-list/snapdeal-options">Back</a>
438
       <a style="padding-left: 10px;" href="/Support/logout">Logout</a>
476
	   <a style="padding-left: 10px;" href="/Support/logout">Logout</a>
439
	   <input type="button" style="padding-left: 5px; margin-left: 10px;width: 15%;float:right;" id="addNewItem" name="addNewItem" value="Add New Item">
477
	   <input type="button" style="padding-left: 5px; margin-left: 10px;width: 15%;float:right;" id="addNewItem" name="addNewItem" value="Add New Item">
440
	   <input type="submit" id="search_item" value="Search" style="float: right;width:8%;">
478
	   <input type="submit" id="search_item" value="Search" style="float: right;width:8%;">
441
	   <input id="search_text" style="float: right;width:10%;">
479
	   <input id="search_text" style="float: right;width:10%;">
442
	   
480
	   
443
</div>
481
</div>