Subversion Repositories SmartDukaan

Rev

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

Rev 29586 Rev 29759
Line 136... Line 136...
136
				if (confirm("Are you sure you want to Extend expireDateTime for Scheme!") == true) {
136
				if (confirm("Are you sure you want to Extend expireDateTime for Scheme!") == true) {
137
					extendSchemeById(schemeId)
137
					extendSchemeById(schemeId)
138
				}
138
				}
139
			} else {
139
			} else {
140
				alert("feild can't be blank");
140
				alert("feild can't be blank");
141
			}
141
			}	
142
		});
142
		});
143
	
143
	
144
	
144
	
145
	$(document).on('click', ".monthy-investment",
145
	$(document).on('click', ".monthy-investment",
146
			function() {
146
			function() {
147
		console.log("hello evaluateActualInvestmentPayout");
147
		console.log("hello evaluateActualInvestmentPayout");
148
		window.location.href = context + "/evaluateActualInvestmentPayout";		
148
		window.location.href = context + "/evaluateActualInvestmentPayout";		
149
		
149
		
150
			});
150
			});
151
	
151
	
152
	$(document).on('click', ".process-investment",
152
	$(document).on('click', ".process-investment", function() {
153
			function() {
-
 
154
		console.log("payMonthlyInvestment");
153
		if (confirm("Are you sure you want to Process Investment")) {
155
		window.location.href = context + "/payMonthlyInvestment";		
154
			processInvestment(schemeId);
156
		
155
		}
157
			});
156
	});
158
	
157
 
159
	$(document).on('click', ".processInvestmentDryRun",
158
	$(document).on('click', ".processInvestmentDryRun",
160
			function() {
159
			function() {
161
		console.log("processInvestmentDryRun");
160
		console.log("processInvestmentDryRun");
162
		window.location.href = context + "/processInvestmentDryRun";		
161
		window.location.href = context + "/processInvestmentDryRun";		
163
		
162
		
Line 400... Line 399...
400
				schemes("main-content");
399
				schemes("main-content");
401
			}
400
			}
402
		});
401
		});
403
 
402
 
404
}
403
}
-
 
404
function extendSchemeById(schemeId) {
-
 
405
	doPostAjaxRequestWithJsonHandler(context + "/processInvestment", function(response) {
-
 
406
		alert("InvestmentPayout processed successfully");
-
 
407
	});
-
 
408
}
405
 
409
 
406
function loadScheme(domId) {
410
function loadScheme(domId) {
407
	doGetAjaxRequestHandler(context + "/createScheme", function(response) {
411
	doGetAjaxRequestHandler(context + "/createScheme", function(response) {
408
		$('#' + domId).html(response);
412
		$('#' + domId).html(response);
409
	});
413
	});