Subversion Repositories SmartDukaan

Rev

Rev 23313 | Rev 23319 | 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
}
23313 amit.gupta 164
function loadTaxRateDiv(domId){
23318 amit.gupta 165
let response = '<p style="font-size: 14px;">Upload Tax Rate:</p>\
23313 amit.gupta 166
		<form id="uploadTaxSheet" name="fileUpload" action="" enctype="multipart/form-data" method="post">\
167
			<label for="filePath" style="font-size: 14px;">Path : </label>\
168
			<input type="file" name="file" id="file">\
169
			<input type="submit" value="Upload" name="upload">\
23318 amit.gupta 170
        </form>\
23313 amit.gupta 171
<hr/>'
172
$('#' + domId).html(response);
173
}
19248 kshitij.so 174
</script>
175
<style>
176
	#content{
177
	margin-top:20px;
178
	}
179
</style>
180
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
181
</head>
182
<body>
183
<span><a href="/Support/reports">Back</a></span>	
184
<div style="margin: 5px;">&nbsp;</div>
185
<h4>Inventory /Catalog /Dtr Bulk Add</h4>
186
<div class="options">
187
<hr>
188
<a target="_blank" href="http://173.255.253.139/vendor-item-pricing.xls">Download Vendor Item Pricing Template</a>
189
<br>
190
<br>
191
<a href="/Support/bulk-add!downloadVendors">Download Vendors</a>
192
<br>
193
<br>
194
<a href="#" class="add-update-vendor-pricing">Add or Update Vendor Item Pricing</a>
195
<hr>
196
<br>
197
<a target="_blank" href="http://173.255.253.139/item-pricing.xls">Download Item Pricing Template</a>
198
<br>
199
<br>
200
<a href="#" class="add-update-catalog">Update Item / Private Deals</a>
201
<br>
202
<br>
203
<hr>
204
<br>
205
<a target="_blank" href="http://173.255.253.139/virtual-inventory.xls">Download Virtual Inventory Template</a>
206
<br>
207
<br>
208
<a href="/Support/bulk-add!downloadWarehouses">Download Warehouses</a>
209
<br>
210
<br>
211
<a href="#" class="add-update-virtual">Update Virtual Inventory</a>
212
<br>
213
<br>
19988 kshitij.so 214
<a href="#" class="download-virtual">Download Virtual Inventory</a>
215
<br>
216
<br>
19248 kshitij.so 217
<hr>
218
<a target="_blank" href="http://173.255.253.139/profitmandi-template.xls">Download Profitmandi Template</a>
219
<br>
220
<br>
221
<a href="#" class="add-items-dtr">Add items to profitmandi</a>
222
<hr>
23313 amit.gupta 223
<a target="_blank" href="http://173.255.253.139/bulk-tax-add-template.xls">Download Tax Rate Template</a>
224
<br>
225
<br>
226
<a href="#" class="upload-tax-rate">Upload Tax Rate</a>
227
<hr>
19248 kshitij.so 228
</div>
229
<div id="content">
230
</div>
231
</body>
232
</html>