Subversion Repositories SmartDukaan

Rev

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

Rev 29293 Rev 29373
Line 10... Line 10...
10
 
10
 
11
	$(document).on('click', ".provider-tat", function() {
11
	$(document).on('click', ".provider-tat", function() {
12
		loadproviderTat("main-content");
12
		loadproviderTat("main-content");
13
	});
13
	});
14
 
14
 
-
 
15
	$(document).on('click', ".delay-billing", function() {
-
 
16
 
-
 
17
		loadDelayBilling("main-content")
-
 
18
 
-
 
19
	});
-
 
20
 
15
 
21
 
16
	$(document).on('click', ".public-provider-holiday", function() {
22
	$(document).on('click', ".public-provider-holiday", function() {
17
		loadpublicHoliday("main-content");
23
		loadpublicHoliday("main-content");
18
	});
24
	});
19
 
25
 
Line 171... Line 177...
171
 
177
 
172
	});
178
	});
173
 
179
 
174
 
180
 
175
 
181
 
-
 
182
	$(document).on('click', "#delayBillingTemplate", function() {
-
 
183
 
-
 
184
		window.location.href = context + "/delayBillingTemplate";
-
 
185
	});
-
 
186
 
-
 
187
 
-
 
188
 
-
 
189
 
-
 
190
	$(document).on('click', ".uploadDelayBillingFile", function() {
-
 
191
 
-
 
192
		console.log("hello");
-
 
193
		if (confirm('Confirm upload ?')) {
-
 
194
			var fileSelector = $(this)[0];
-
 
195
			if (fileSelector != undefined) {
-
 
196
				var url = `${context}/getDelayBillingFileUploader`;
-
 
197
				console.log(url);
-
 
198
				var file = $("#delayBillingFile")[0].files[0];
-
 
199
				let fileInput = $(this);
-
 
200
				console.log("file" + file);
-
 
201
				console.log("fileInput" + fileInput);
-
 
202
				doAjaxUploadRequestHandler(
-
 
203
					url,
-
 
204
					'POST',
-
 
205
					file, function(response) {
-
 
206
						if (response == true) {
-
 
207
							alert("successfully uploaded");
-
 
208
 
-
 
209
							console.log("response" + response);
-
 
210
						}
-
 
211
					});
-
 
212
 
-
 
213
			}
-
 
214
		}
-
 
215
 
-
 
216
	});
176
 
217
 
177
	$(document).on('click', ".providertatupload", function() {
218
	$(document).on('click', ".providertatupload", function() {
178
 
219
 
179
		console.log("hello");
220
		console.log("hello");
180
		if (confirm('Confirm upload ?')) {
221
		if (confirm('Confirm upload ?')) {
Line 305... Line 346...
305
		function(response) {
346
		function(response) {
306
			$('#' + domId).html(response);
347
			$('#' + domId).html(response);
307
		});
348
		});
308
}
349
}
309
 
350
 
-
 
351
function loadDelayBilling(domId) {
-
 
352
 
-
 
353
	doGetAjaxRequestHandler(context + "/delayBilling",
-
 
354
		function(response) {
-
 
355
			$('#' + domId).html(response);
-
 
356
		});
-
 
357
}
-
 
358
 
310
function loadprovider(domId) {
359
function loadprovider(domId) {
311
 
360
 
312
	doGetAjaxRequestHandler(context + "/provider",
361
	doGetAjaxRequestHandler(context + "/provider",
313
		function(response) {
362
		function(response) {
314
			$('#' + domId).html(response);
363
			$('#' + domId).html(response);