Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
19248 kshitij.so 1
<html>
2
<head>
3
<script src="/Support/js/jquery-1.5.1.min.js"></script>
4
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
5
<script type="text/javascript">
6
  $(function(){	
7
	$(".add-update-vendor-pricing").live('click', function() {
8
		loadVendorPricing("content");
9
    });
10
 
11
	$(".add-update-catalog").live('click', function() {
12
		loadCatalogDiv("content");
13
    });
14
 
15
	$(".add-update-virtual").live('click', function() {
16
		loadVirtualDiv("content");
17
    });
18
 
19
	$(".add-items-dtr").live('click', function() {
20
		loadDtrDiv("content");
21
    });
22
 
23
	$("#uploadVendorPricing").live('submit', function(){
24
    var formData = new FormData($(this)[0]);
25
 
26
    jQuery.ajax({
27
        url: "/Support/bulk-add!addVendorItemPricing",
28
        type: 'POST',
29
        data: formData,
30
        async: false,
31
        success: function (data) {
32
			alert(data);
19251 kshitij.so 33
			$('#uploadVendorPricing')[0].reset();
19248 kshitij.so 34
        },
35
		 error : function() {
36
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
37
		 },
38
        cache: false,
39
        contentType: false,
40
        processData: false
41
    });
42
    return false;
43
	});
44
 
45
	$("#uploadItemPricing").live('submit', function(){
46
    var formData = new FormData($(this)[0]);
47
 
48
    jQuery.ajax({
49
        url: "/Support/bulk-add!updateItemPricing",
50
        type: 'POST',
51
        data: formData,
52
        async: false,
53
        success: function (data) {
54
			alert(data);
19251 kshitij.so 55
			$('#uploadItemPricing')[0].reset();
19248 kshitij.so 56
        },
57
		 error : function() {
58
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
59
		 },
60
        cache: false,
61
        contentType: false,
62
        processData: false
63
    });
64
    return false;
65
	});
66
 
67
 
68
	$("#uploadVirtualInventory").live('submit', function(){
69
    var formData = new FormData($(this)[0]);
70
 
71
    jQuery.ajax({
72
        url: "/Support/bulk-add!updateVirtualInventory",
73
        type: 'POST',
74
        data: formData,
75
        async: false,
76
        success: function (data) {
19251 kshitij.so 77
			$('#uploadVirtualInventory')[0].reset();
19248 kshitij.so 78
			alert(data);
79
        },
80
		 error : function() {
81
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
82
		 },
83
        cache: false,
84
        contentType: false,
85
        processData: false
86
    });
87
    return false;
88
	});
89
 
90
	$("#uploadProfitmandi").live('submit', function(){
91
    var formData = new FormData($(this)[0]);
92
 
93
    jQuery.ajax({
94
        url: "/Support/bulk-add!uploadItemsDtr",
95
        type: 'POST',
96
        data: formData,
97
        async: false,
98
        success: function (data) {
19251 kshitij.so 99
			$('#uploadProfitmandi')[0].reset();
19248 kshitij.so 100
			alert(data);
101
        },
102
		 error : function() {
103
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
104
		 },
105
        cache: false,
106
        contentType: false,
107
        processData: false
108
    });
109
    return false;
110
	});
111
 
112
});  
113
</script>
114
<script type="text/javascript">
115
function loadVendorPricing(domId){
116
jQuery.ajax({
117
        type : "GET",
118
        url : "/Support/bulk-add!loadVendorDiv",
119
        success : function(response) {
120
            $('#' + domId).html(response);
121
        }
122
    });  
123
}
124
function loadCatalogDiv(domId){
125
jQuery.ajax({
126
        type : "GET",
127
        url : "/Support/bulk-add!loadCatalogDiv",
128
        success : function(response) {
129
            $('#' + domId).html(response);
130
        }
131
    });  
132
}
133
function loadVirtualDiv(domId){
134
jQuery.ajax({
135
        type : "GET",
136
        url : "/Support/bulk-add!loadVirtualDiv",
137
        success : function(response) {
138
            $('#' + domId).html(response);
139
        }
140
    });  
141
}
142
function loadDtrDiv(domId){
143
jQuery.ajax({
144
        type : "GET",
145
        url : "/Support/bulk-add!loadDtrDiv",
146
        success : function(response) {
147
            $('#' + domId).html(response);
148
        }
149
    });  
150
}
151
</script>
152
<style>
153
	#content{
154
	margin-top:20px;
155
	}
156
</style>
157
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
158
</head>
159
<body>
160
<span><a href="/Support/reports">Back</a></span>	
161
<div style="margin: 5px;">&nbsp;</div>
162
<h4>Inventory /Catalog /Dtr Bulk Add</h4>
163
<div class="options">
164
<hr>
165
<a target="_blank" href="http://173.255.253.139/vendor-item-pricing.xls">Download Vendor Item Pricing Template</a>
166
<br>
167
<br>
168
<a href="/Support/bulk-add!downloadVendors">Download Vendors</a>
169
<br>
170
<br>
171
<a href="#" class="add-update-vendor-pricing">Add or Update Vendor Item Pricing</a>
172
<hr>
173
<br>
174
<a target="_blank" href="http://173.255.253.139/item-pricing.xls">Download Item Pricing Template</a>
175
<br>
176
<br>
177
<a href="#" class="add-update-catalog">Update Item / Private Deals</a>
178
<br>
179
<br>
180
<hr>
181
<br>
182
<a target="_blank" href="http://173.255.253.139/virtual-inventory.xls">Download Virtual Inventory Template</a>
183
<br>
184
<br>
185
<a href="/Support/bulk-add!downloadWarehouses">Download Warehouses</a>
186
<br>
187
<br>
188
<a href="#" class="add-update-virtual">Update Virtual Inventory</a>
189
<br>
190
<br>
191
<hr>
192
<a target="_blank" href="http://173.255.253.139/profitmandi-template.xls">Download Profitmandi Template</a>
193
<br>
194
<br>
195
<a href="#" class="add-items-dtr">Add items to profitmandi</a>
196
<hr>
197
</div>
198
<div id="content">
199
</div>
200
</body>
201
</html>