Subversion Repositories SmartDukaan

Rev

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

Rev 21952 Rev 21996
Line 12... Line 12...
12
<script src="js/bootstrapValidator.js"></script>
12
<script src="js/bootstrapValidator.js"></script>
13
<script src="js/reg.js"></script>
13
<script src="js/reg.js"></script>
14
<script src="js/reqformvalidator.js"></script>
14
<script src="js/reqformvalidator.js"></script>
15
<script src="js/jquery.blockUI.js"></script>
15
<script src="js/jquery.blockUI.js"></script>
16
<script type="text/javascript">
16
<script type="text/javascript">
17
 
-
 
-
 
17
 var contexPath = "$action.getContextPath()";
18
 $(document).ready(function(){
18
 $(document).ready(function(){
19
 
19
 
20
    $("input[name$='bEntity']").click(function() {
20
    $("input[name$='bEntity']").click(function() {
21
        var test1 = $(this).val();
21
        var test1 = $(this).val();
22
       $(".box").hide();
22
       $(".box").hide();
Line 93... Line 93...
93
        var test1 = $(this).val();
93
        var test1 = $(this).val();
94
       $(".document").hide();
94
       $(".document").hide();
95
        $("#document" + test1).show();
95
        $("#document" + test1).show();
96
        $("#showHide").show();
96
        $("#showHide").show();
97
    });
97
    });
-
 
98
    
-
 
99
  docsArray = ['doc_bEntityDoc','doc_gstDoc','doc_panDoc','doc_itrDoc','doc_angleDoc1','doc_angleDoc2','doc_angleDoc3','doc_angleDoc4','doc_angleDoc5','doc_ownershipDoc','doc_insuranceDoc','doc_loanDoc','doc_sanctionDoc','doc_chequeCopy'];
-
 
100
  docsArray.forEach(function(inputName){
-
 
101
  
-
 
102
	   $('input[name="' + inputName + '"]').change(function(e){
-
 
103
	    var formData = new FormData();
-
 
104
	    that = this;
-
 
105
		formData.append("file", $(this)[0].files[0]);
-
 
106
		jQuery.ajax({
-
 
107
	          url: "upload",
-
 
108
	          type: 'POST',
-
 
109
	          data: formData,
-
 
110
	            processData: false,
-
 
111
	           success: function (data) {
-
 
112
	           	hiddenInput = inputName.split("_")[1];
-
 
113
	               $('input[name="' + hiddenInput + '"]').val(data);
-
 
114
	               console.log(data);
-
 
115
	           }
-
 
116
	    });
-
 
117
	});
-
 
118
  
-
 
119
  });
98
});
120
});
99
 
121
 
100
function queryStringToJSON(queryString) {
122
function queryStringToJSON(queryString) {
101
 
123
 
102
 
124
 
Line 301... Line 323...
301
                        <input type="text" class="form-control" name="dinNumber" disabled placeholder="DIN Number">
323
                        <input type="text" class="form-control" name="dinNumber" disabled placeholder="DIN Number">
302
                    </div>Upload <strong>Registration certificate & partnership Deed</strong>
324
                    </div>Upload <strong>Registration certificate & partnership Deed</strong>
303
                     </div>
325
                     </div>
304
      
326
      
305
                    <div class = "form-group file upload"> 
327
                    <div class = "form-group file upload"> 
306
                   <input type="file" accept="application/pdf,image/*" name = "bEntityDoc">
328
                   <input type="file" accept="application/pdf,image/*" id="doc" name ="doc_bEntityDoc">
-
 
329
              
-
 
330
                   <input type="text" name="bEntityDoc"/>
307
                    </div>
331
                    </div>
308
               
-
 
309
                
332
                   
310
                     <h4 class="page-header">4. Goods And Services Tax Number(GST)</h4>
333
                     <h4 class="page-header">4. Goods And Services Tax Number(GST)</h4>
311
                    <div class="Pmpform">
334
                    <div class="Pmpform">
312
                     
335
                     
313
                        <input type="text" name="gst" class="bform" placeholder="Goods And Services Tax Number"/>
336
                        <input type="text" name="gst" class="bform" placeholder="Goods And Services Tax Number"/>
314
                    </div>
337
                    </div>
315
                     <p>Provide Copy of GST document</p>
338
                     <p>Provide Copy of GST document</p>
316
                    <div class = "file upload"> 
339
                    <div class = "file upload"> 
317
                   <input type="file"  accept="application/pdf,image/*" name ="gstDoc">
340
                   <input type="file"  accept="application/pdf,image/*" name ="doc_gstDoc">
-
 
341
                     <input type="hidden" name="gstDoc"/>
318
                    </div>
342
                    </div>
319
              
343
              
320
                   
344
                   
321
                     <h4 class="page-header">5. Permanent Account Number(PAN)</h4>
345
                     <h4 class="page-header">5. Permanent Account Number(PAN)</h4>
322
                    <div class="form-group ">
346
                    <div class="form-group ">
Line 325... Line 349...
325
                     <input type="text" name="pan" maxlength="10" class="bform" placeholder="Permanent Account Number"/></div>
349
                     <input type="text" name="pan" maxlength="10" class="bform" placeholder="Permanent Account Number"/></div>
326
                     <p>Provide Copy of PAN </p>
350
                     <p>Provide Copy of PAN </p>
327
 
351
 
328
                    <div class = "form-group file upload"> 
352
                    <div class = "form-group file upload"> 
329
                        
353
                        
330
                   <input type="file" accept="application/pdf,image/*" name="panDoc">
354
                   <input type="file" accept="application/pdf,image/*" name="doc_panDoc">
-
 
355
                     <input type="hidden" name="panDoc"/>
331
                    </div>
356
                    </div>
332
          
357
          
333
 
358
 
334
             <h4 class="page-header">6. Full Details Of Business Entity</h4>
359
             <h4 class="page-header">6. Full Details Of Business Entity</h4>
335
              
360
              
Line 616... Line 641...
616
                <div class="bcontacts">
641
                <div class="bcontacts">
617
                      <textarea rows="4" name="descriptionofExistingBusiness"cols="50" placeholder="Describe yourself here..."></textarea>
642
                      <textarea rows="4" name="descriptionofExistingBusiness"cols="50" placeholder="Describe yourself here..."></textarea>
618
                </div>
643
                </div>
619
                <p>Please Provide ITR of last Two years</p>
644
                <p>Please Provide ITR of last Two years</p>
620
                <div class = "form-group file upload"> 
645
                <div class = "form-group file upload"> 
621
                   <input type="file" accept="application/pdf,image/*" name ="itrDoc">
646
                   <input type="file" accept="application/pdf,image/*" name ="doc_itrDoc">
-
 
647
                      <input type="hidden" name="itrDoc"/>
622
                    </div>
648
                    </div>
623
 
649
 
624
 
650
 
625
            <h4 class="page-header">11.Business Model</h4>
651
            <h4 class="page-header">11.Business Model</h4>
626
            
652
            
Line 764... Line 790...
764
                </label>
790
                </label>
765
                </div>
791
                </div>
766
          
792
          
767
                <div class="form-group bdetail">
793
                <div class="form-group bdetail">
768
                   <p>Provide pictures of the shop from 3 different angles, ceiling and flooring</p>
794
                   <p>Provide pictures of the shop from 3 different angles, ceiling and flooring</p>
769
                      <input type="file" name="angleDoc1" accept="application/pdf,image/*" >
795
                      <input type="file" name="doc_angleDoc1" accept="application/pdf,image/*" >
-
 
796
                      <input type="hidden" name="angleDoc1"/>
770
                      <input type="file" name="angleDoc2" accept="application/pdf,image/*" >
797
                      <input type="file" name="doc_angleDoc2" accept="application/pdf,image/*" >
-
 
798
                      <input type="hidden" name="angleDoc2"/>
771
                     <input type="file" name="angleDoc3"  accept="application/pdf,image/*" >
799
                      <input type="file" name="doc_angleDoc3"  accept="application/pdf,image/*" >
-
 
800
                      <input type="hidden" name="angleDoc3"/>
772
                            <input type="file" name="angleDoc4"  accept="application/pdf,image/*" >
801
                      <input type="file" name="doc_angleDoc4"  accept="application/pdf,image/*" >
-
 
802
                      <input type="hidden" name="angleDoc4"/>
773
                                   <input type="file" name="angleDoc5" accept="application/pdf,image/*">
803
                      <input type="file" name="doc_angleDoc5" accept="application/pdf,image/*">
-
 
804
                      <input type="hidden" name="angleDoc5"/>
774
                  </div>
805
                  </div>
775
 
806
 
776
         <h4 class="page-header">16. Location of Shop</h4>
807
         <h4 class="page-header">16. Location of Shop</h4>
777
                        <div class="btn-group">
808
                        <div class="btn-group">
778
                    <label class="btn btn-default">
809
                    <label class="btn btn-default">
Line 843... Line 874...
843
                
874
                
844
                </div>
875
                </div>
845
 
876
 
846
                 <div class="form-group bdetail">
877
                 <div class="form-group bdetail">
847
                   <p>Provide relevant documents (Electricity bill/Rent Agreement/Lease Deed)to prove the status of ownership</p>
878
                   <p>Provide relevant documents (Electricity bill/Rent Agreement/Lease Deed)to prove the status of ownership</p>
848
                     <input type="file" accept="application/pdf,image/*" name="ownershipDoc">
879
                     <input type="file" accept="application/pdf,image/*" name="doc_ownershipDoc">
-
 
880
                     <input type="hidden" name="ownershipDoc"/>
849
                   </div>
881
                   </div>
850
         
882
         
851
 
883
 
852
           <h4 class="page-header">19. Insurance of Shop (if yes, please provide the copy of the same)</h4>
884
           <h4 class="page-header">19. Insurance of Shop (if yes, please provide the copy of the same)</h4>
853
              
885
              
Line 863... Line 895...
863
                </label>
895
                </label>
864
              </div>
896
              </div>
865
 
897
 
866
                 <div class="form-group insurance doc"  id= "docyes">
898
                 <div class="form-group insurance doc"  id= "docyes">
867
                  <p>Please provide copy of insurance document</p>
899
                  <p>Please provide copy of insurance document</p>
868
                     <input type="file" accept="application/pdf,image/*" name="insuranceDoc">
900
                     <input type="file" accept="application/pdf,image/*" name="doc_insuranceDoc">
-
 
901
                      <input type="hidden" name="insuranceDoc"/>
869
                   </div>
902
                   </div>
870
          
903
          
871
 
904
 
872
         <h4 class="page-header">20. Loan on Shop (LAP/BL/CC/others)</h4>
905
         <h4 class="page-header">20. Loan on Shop (LAP/BL/CC/others)</h4>
873
            
906
            
Line 882... Line 915...
882
                </label>
915
                </label>
883
              </div>
916
              </div>
884
 
917
 
885
                 <div class="form-group loan document" id ="documentyes">
918
                 <div class="form-group loan document" id ="documentyes">
886
                  <p>Please provide current statement Letter</p>
919
                  <p>Please provide current statement Letter</p>
887
                     <input type="file" accept="application/pdf,image/*" name="loanDoc">
920
                     <input type="file" accept="application/pdf,image/*" name="doc_loanDoc">
888
                     
921
                     <input type="hidden" name="loanDoc"/>
889
                      <p>Please provide current sanction Letter</p>
922
                      <p>Please provide current sanction Letter</p>
890
                     <input type="file" accept="application/pdf,image/*" name="sanctionDoc">
923
                     <input type="file" accept="application/pdf,image/*" name="doc_sanctionDoc">
-
 
924
                     <input type="hidden" name="sanctionDoc"/>
891
                   </div>
925
                   </div>
892
    
926
    
893
 
927
 
894
            <h4 class="page-header">21. Bank Name & Address</h4>
928
            <h4 class="page-header">21. Bank Name & Address</h4>
895
               
929
               
Line 910... Line 944...
910
                        <input type="text" name="branchName" class="form-control" placeholder="Branch Name">
944
                        <input type="text" name="branchName" class="form-control" placeholder="Branch Name">
911
                    </div>
945
                    </div>
912
                     <div >
946
                     <div >
913
                  <p>Please attach the copy of cancelled cheque</p>
947
                  <p>Please attach the copy of cancelled cheque</p>
914
                      <div class="form-group">
948
                      <div class="form-group">
915
                     <input type="file" name="chequeCopy" accept="application/pdf,image/*">
949
                     <input type="file" name="doc_chequeCopy" accept="application/pdf,image/*">
-
 
950
                     <input type="hidden" name="chequeCopy"/>
916
                   </div>
951
                   </div>
917
                    
952
                    
918
 
953
 
919
                  <h4 class="page-header">22. HSPS Bank Account Detail</h4> 
954
                  <h4 class="page-header">22. HSPS Bank Account Detail</h4> 
920
 
955