Subversion Repositories SmartDukaan

Rev

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

Rev 28977 Rev 29007
Line 84... Line 84...
84
 
84
 
85
									});
85
									});
86
						}
86
						}
87
 
87
 
88
					});
88
					});
-
 
89
	
-
 
90
	
-
 
91
	$(document).on(	'click',".partner-verifi-update-checkbox",function() {
-
 
92
		var row = $(this).closest("tr");
-
 
93
		console.log(row);
-
 
94
		var onboardingId =	$(row).find("td:eq(0)").text();
-
 
95
		
-
 
96
		doAjaxRequestHandler(context + "/partnerVerifiUpdateCheckbox?onboardingId=" + onboardingId, "GET", function(
-
 
97
				response) {
-
 
98
		$('.myVerificationCheckboxUpdate').html(response);
-
 
99
			
-
 
100
		});
-
 
101
		
-
 
102
		
-
 
103
	});
-
 
104
	
-
 
105
	
-
 
106
	$(document).on(	'click',".verification-checkbox-submit",function() {
-
 
107
		
-
 
108
		
-
 
109
	console.log("Hello");
-
 
110
	var row = $(this).closest("tr");
-
 
111
	console.log(row);
-
 
112
	var onboardingId = $(this).data('id');
-
 
113
	
-
 
114
	  var  trainingVerifi =  $('input[name="trainingVerifi"]').is(":checked") ? 1 : 0;
-
 
115
	  var  recceVerifi =  $('input[name="recceVerifi"]').is(":checked") ? 1 : 0;
-
 
116
	  var  advStockPayment = $('input[name="advStockPayment"]').is(":checked") ? 1 : 0;
-
 
117
	  var  brandingVerifi = $('input[name="brandingVerifi"]').is(":checked") ? 1 : 0;
-
 
118
	  var  stockPay = $('input[name="stockPay"]').is(":checked") ? 1 : 0;
-
 
119
	  var  billingVerifi = $('input[name="billingVerifi"]').is(":checked") ? 1 : 0;
-
 
120
	  var  inaugrationVerifi =$('input[name="inaugrationVerifi"]').is(":checked") ? 1 : 0;
-
 
121
	  var  financialServices =$('input[name="financialServices"]').is(":checked") ? 1 : 0;
-
 
122
	  var  promotorVerifi = $('input[name="promotorVerifi"]').is(":checked") ? 1 : 0;
-
 
123
	  var verifiComments = $('input[name="verifiCommentCheckbox"]').val();
-
 
124
	  
-
 
125
	 
-
 
126
	  var partnerVerficationCheckBoxObject = {};
-
 
127
	  partnerVerficationCheckBoxObject['onboardingId'] = onboardingId
-
 
128
	  partnerVerficationCheckBoxObject['trainingVerifi'] = trainingVerifi
-
 
129
	  partnerVerficationCheckBoxObject['recceVerifi'] = recceVerifi
-
 
130
	  partnerVerficationCheckBoxObject['advStockPayment'] = advStockPayment
-
 
131
	  partnerVerficationCheckBoxObject['brandingVerifi'] = brandingVerifi
-
 
132
		
-
 
133
	  partnerVerficationCheckBoxObject['stockPay'] =	stockPay
-
 
134
 
-
 
135
	  partnerVerficationCheckBoxObject['billingVerifi'] = billingVerifi
-
 
136
	  partnerVerficationCheckBoxObject['inaugrationVerifi'] = inaugrationVerifi
-
 
137
	  partnerVerficationCheckBoxObject['financialServices'] = financialServices
-
 
138
		
-
 
139
	  partnerVerficationCheckBoxObject['promotorVerifi'] =	promotorVerifi
-
 
140
	  
-
 
141
	  partnerVerficationCheckBoxObject['verifiCheckboxComment'] =	verifiComments
-
 
142
 
-
 
143
 
-
 
144
		var jsonObject = JSON
-
 
145
				.stringify(partnerVerficationCheckBoxObject);
-
 
146
 
-
 
147
		
-
 
148
	  console.log(jsonObject);
-
 
149
	  
-
 
150
	  
-
 
151
	  if (confirm("Are you sure you want to submit the request") == true) {
-
 
152
			doAjaxRequestWithJsonHandler(context
-
 
153
					+ "/partnerVerificationCheckBoxSubmit", "POST",
-
 
154
					jsonObject, function(response) {
-
 
155
				
-
 
156
				
-
 
157
					alert("successfully Submitted");
-
 
158
					$('.myVerificationCheckboxUpdate').html(response);
-
 
159
 
-
 
160
					});
-
 
161
		}
-
 
162
			  
-
 
163
	
-
 
164
	
-
 
165
	});
-
 
166
	
-
 
167
	
-
 
168
	
-
 
169
	
-
 
170
	
-
 
171
	
89
 
172
 
90
	$(document)
173
	$(document)
91
			.on(
174
			.on(
92
					'click',
175
					'click',
93
					".partner-verification-submit",
176
					".partner-verification-submit",
Line 102... Line 185...
102
						
185
						
103
						var nocDocument=$(row).find(".nocDoc input[type=hidden]").val();
186
						var nocDocument=$(row).find(".nocDoc input[type=hidden]").val();
104
						console.log("nocDocument"+nocDocument);
187
						console.log("nocDocument"+nocDocument);
105
						
188
						
106
						var nocGt = $(row).find("td:eq(7) option:selected").val();
189
						var nocGt = $(row).find("td:eq(7) option:selected").val();
-
 
190
						
107
						var rbmReason = $(row).find("td:eq(8) option:selected")
191
						var rbmReason = $(row).find("td:eq(8) option:selected")
108
								.val();
192
								.val();
109
						var approval = $(row).find("td:eq(10) option:selected")
193
						var approval = $(row).find("td:eq(11) option:selected")
110
								.val();
194
								.val();
111
 
195
 
112
						console.log("onboardingId" + onboardingId);
196
						console.log("onboardingId" + onboardingId);
113
 
197
 
114
						console.log("approval" + approval);
198
						console.log("approval" + approval);
115
						console.log("nocGt" + nocGt);
199
						console.log("nocGt" + nocGt);
116
						console.log("comment" + comment);
200
						console.log("comment" + comment);
-
 
201
						
-
 
202
						
-
 
203
						if(nocGt== "NO" && approval== "YES")
-
 
204
						{
-
 
205
							alert("You Can Not Approved Approval Status Without Received NOC From GT")
-
 
206
						return
-
 
207
						}
-
 
208
						
117
 
209
 
118
						var partnerVerficationObject = {};
210
						var partnerVerficationObject = {};
119
						partnerVerficationObject['onboardingId'] = onboardingId
211
						partnerVerficationObject['onboardingId'] = onboardingId
120
						partnerVerficationObject['comment'] = comment
212
						partnerVerficationObject['comment'] = comment
121
						partnerVerficationObject['nocGt'] = nocGt
213
						partnerVerficationObject['nocGt'] = nocGt
Line 237... Line 329...
237
		$(this).find(":input").attr('disabled', false).show();
329
		$(this).find(":input").attr('disabled', false).show();
238
 
330
 
239
	});
331
	});
240
 
332
 
241
});
333
});
-
 
334
 
242
function partnerDealerMapping(domId) {
335
function partnerDealerMapping(domId) {
243
	doAjaxRequestHandler(context + "/partnerDealerMapping", "GET", function(
336
	doAjaxRequestHandler(context + "/partnerDealerMapping", "GET", function(
244
			response) {
337
			response) {
245
		$('#' + domId).html(response);
338
		$('#' + domId).html(response);
246
	});
339
	});