Subversion Repositories SmartDukaan

Rev

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