Subversion Repositories SmartDukaan

Rev

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