Subversion Repositories SmartDukaan

Rev

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

Rev 27767 Rev 27771
Line 111... Line 111...
111
						<td><input type="text"  placeholder="BDM (SM)" disabled name="bdm1" value="$pob.getBDM()" style="background:pink;" ></td>
111
						<td><input type="text"  placeholder="BDM (SM)" disabled name="bdm1" value="$pob.getBDM()" style="background:pink;" ></td>
112
				     	#else
112
				     	#else
113
								<td><input type="text"  placeholder="BDM (SM)" disabled name="bdm1"></td>
113
								<td><input type="text"  placeholder="BDM (SM)" disabled name="bdm1"></td>
114
		         #end
114
		         #end
115
						#if($pob.getStorePics() && $pob.getStorePics() != 0)
115
						#if($pob.getStorePics() && $pob.getStorePics() != 0)
116
						<td><input type="file" id="storepics" placeholder="Store Pics(SM)" disabled name="storepics1" value="$pob.getStorePics()" style="background:pink;"> <button type="button" class="btn btn-primary download-store-file" data-docid="$pob.getStorePics()" data-id="$pob.getId()">download</button></td>
116
						<td><input type="file" id="storepics" placeholder="Store Pics(SM)" disabled name="storepics1" value="$pob.getStorePics()" style="background:pink;"> <button type="button" class="btn btn-primary download-store-file" data-docid="$pob.getPendingPics()" data-id="$pob.getId()">download</button></td>
117
						#else
117
						#else
118
							<td><input type="file" id="storepics" placeholder="Store Pics(SM)" disabled name="storepics1" ></td>
118
							<td><input type="file" id="storepics" placeholder="Store Pics(SM)" disabled name="storepics1" ></td>
119
			     #end
119
			     #end
120
			          #if($pob.getAgreedBrandFees() != 0)
120
			          #if($pob.getAgreedBrandFees() != 0)
121
						<td><input type="text"  placeholder="Agreed Brand fees(SM)" disabled name="abrand1" value="$pob.getAgreedBrandFees()" style="background:pink;"></td>
121
						<td><input type="text"  placeholder="Agreed Brand fees(SM)" disabled name="abrand1" value="$pob.getAgreedBrandFees()" style="background:pink;"></td>
Line 127... Line 127...
127
						<td><input type="text"  placeholder="Received Brand fees" disabled name="recbrand1" value="$pob.getReceivedBrandFees()"  style="background:pink;"</td>
127
						<td><input type="text"  placeholder="Received Brand fees" disabled name="recbrand1" value="$pob.getReceivedBrandFees()"  style="background:pink;"</td>
128
					    #else
128
					    #else
129
						<td><input type="text"  placeholder="Received Brand fees" disabled name="recbrand1"></td>
129
						<td><input type="text"  placeholder="Received Brand fees" disabled name="recbrand1"></td>
130
	                #end
130
	                #end
131
	                    #if($pob.getPendingPics()  && $pob.getPendingPics() != 0)
131
	                    #if($pob.getPendingPics()  && $pob.getPendingPics() != 0)
132
						<td><input type="file" id="pendpics" placeholder="pending Pics(SM)" disabled name="pendpics1" value="$pob.getPendingPics()" style="background:pink;"></td>
132
						<td><input type="file" id="pendpics" placeholder="pending Pics(SM)" disabled name="pendpics1" value="$pob.getPendingPics()" style="background:pink;"> <button type="button" class="btn btn-primary download-pending-file" data-docid="$pob.get()" data-id="$pob.getId()">download</button>
-
 
133
						</td>
133
						#else
134
						#else
134
							<td><input type="file" id="pendpics" placeholder="pending Pics(SM)" disabled name="pendpics1"></td>
135
							<td><input type="file" id="pendpics" placeholder="pending Pics(SM)" disabled name="pendpics1"></td>
135
		             #end
136
		             #end
136
						#if($pob.getAgreedWallet()!= 0)
137
						#if($pob.getAgreedWallet()!= 0)
137
						<td><input type="text"  placeholder="Agreed Wallet(SM)" disabled name="awallet" value="$pob.getAgreedWallet()" style="background:pink;"></td>
138
						<td><input type="text"  placeholder="Agreed Wallet(SM)" disabled name="awallet" value="$pob.getAgreedWallet()" style="background:pink;"></td>
Line 649... Line 650...
649
		console.log("documentName : " + name);
650
		console.log("documentName : " + name);
650
		doAjaxGetDownload(context + "/shopDocument/download?id="
651
		doAjaxGetDownload(context + "/shopDocument/download?id="
651
				+ id, name);
652
				+ id, name);
652
	});
653
	});
653
});
654
});
-
 
655
$('.download-pending-file').on('click',function(){
-
 
656
  var  documentId =   $(this).data('docid');
-
 
657
  var id=   $(this).data('id');
-
 
658
  console.log(id);
-
 
659
	doAjaxRequestHandler(context + "/partnerPendingDocument?documentId="
-
 
660
			+ documentId + "&id=" + id, "GET", function(
-
 
661
			response) {
-
 
662
		var name = response.response.name;
-
 
663
		console.log("documentName : " + name);
-
 
664
		doAjaxGetDownload(context + "/shopPendingDocument/download?id="
-
 
665
				+ id, name);
-
 
666
	});
-
 
667
});
654
 
668
 
655
function partnerOnBoardingListingJson() {
669
function partnerOnBoardingListingJson() {
656
	var prebookingListingObject = {};
670
	var prebookingListingObject = {};
657
	prebookingListingObject['outletName'] =$('#outLateName1').val();
671
	prebookingListingObject['outletName'] =$('#outLateName1').val();
658
	prebookingListingObject['phoneNumber'] =$('#number1').val();
672
	prebookingListingObject['phoneNumber'] =$('#number1').val();