Subversion Repositories SmartDukaan

Rev

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

Rev 21958 Rev 21998
Line 115... Line 115...
115
                }
115
                }
116
            },
116
            },
117
          
117
          
118
 
118
 
119
                bEntityDoc:{
119
                bEntityDoc:{
120
    
120
                	   excluded: false,   
121
                   validators: {
121
                   validators: {
122
                              file: {
122
                            
123
              //extension: 'pdf,zip,rtf,jpg,png',
-
 
124
             //type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
125
                 
-
 
126
        },
-
 
127
        notEmpty: {
123
        notEmpty: {
128
                        message: 'Document is required.'
124
                        message: 'Document is required.'
129
                  }
125
                  }
130
        }
126
        }
131
      },
127
      },
132
    
128
    
133
    
129
    
134
      angleDoc1:{
130
      angleDoc1:{
135
    
131
    	   excluded: false,   
136
                   validators: {
132
                   validators: {
137
                              file: {
-
 
138
             // extension: 'pdf,zip,rtf,jpg,png',
-
 
139
             // type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
140
                 
133
                      
141
        },
-
 
142
        notEmpty: {
134
        notEmpty: {
143
                        message: 'Document is required.'
135
                        message: 'Document is required.'
144
                  }
136
                  }
145
        }
137
        }
146
      },
138
      },
147
    
139
    
148
      angleDoc2:{
140
      angleDoc2:{
149
    
141
    	   excluded: false,   
150
                   validators: {
142
                   validators: {
151
                              file: {
143
                          
152
             // extension: 'pdf,zip,rtf,jpg,png',
-
 
153
             // type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
154
           
-
 
155
        },
-
 
156
        notEmpty: {
144
        notEmpty: {
157
                        message: 'Document is required.'
145
                        message: 'Document is required.'
158
                  }
146
                  }
159
        }
147
        }
160
      },
148
      },
161
      angleDoc3:{
149
      angleDoc3:{
162
      
150
    	   excluded: false,   
163
                     validators: {
151
                     validators: {
164
                                file: {
-
 
165
               // extension: 'pdf,zip,rtf,jpg,png',
-
 
166
                //type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
167
                   
152
                          
168
          },
-
 
169
          notEmpty: {
153
          notEmpty: {
170
                    message: 'Document is required.'
154
                    message: 'Document is required.'
171
              }
155
              }
172
            }
156
            }
173
          },
157
          },
174
        angleDoc4:{
158
        angleDoc4:{
175
 
-
 
-
 
159
        	   excluded: false,   
176
               validators: {
160
               validators: {
177
                          file: {
-
 
178
          //extension: 'pdf,zip,rtf,jpg,png',
-
 
179
         // type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
180
             
161
                   
181
          },
-
 
182
          notEmpty: {
162
          notEmpty: {
183
                          message: 'Document is required.'
163
                          message: 'Document is required.'
184
                    }
164
                    }
185
          }
165
          }
186
        },
166
        },
187
                  
167
                  
188
      angleDoc5:{
168
      angleDoc5:{
-
 
169
    	   excluded: false,   
189
        validators: {
170
        validators: {
190
                                file: {
171
                              
191
                //extension: 'pdf,zip,rtf,jpg,png',
-
 
192
                //type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
193
                   
-
 
194
          },
-
 
195
                      notEmpty: {
172
                      notEmpty: {
196
                    message: 'Document is required.'
173
                    message: 'Document is required.'
197
              }
174
              }
198
               }
175
               }
199
              },
176
              },
Line 210... Line 187...
210
 
187
 
211
              }
188
              }
212
            },
189
            },
213
 
190
 
214
            panDoc:{
191
            panDoc:{
215
 
-
 
-
 
192
            	   excluded: false,   
216
               validators: {
193
               validators: {
217
                          file: {
194
                         
218
          //extension: 'pdf,zip,rtf,jpg,png',
-
 
219
          //type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
220
             
-
 
221
    },
-
 
222
    notEmpty: {
195
    notEmpty: {
223
                    message: 'Pan card Document is required.'
196
                    message: 'Pan card Document is required.'
224
              }
197
              }
225
    }
198
    }
226
  },
199
  },
Line 490... Line 463...
490
                }
463
                }
491
            }
464
            }
492
        },
465
        },
493
 
466
 
494
        itrDoc:{
467
        itrDoc:{
495
 
-
 
-
 
468
        	   excluded: false,   
496
               validators: {
469
               validators: {
497
                          file: {
-
 
498
              extension: 'pdf,zip,rtf,jpg,png',
-
 
499
              type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
500
                 
470
                      
501
        },
-
 
502
        notEmpty: {
471
        notEmpty: {
503
                        message: 'ITR Document is required.'
472
                        message: 'ITR Document is required.'
504
                  }
473
                  }
505
        }
474
        }
506
      },
475
      },
507
 
476
 
508
        ownershipDoc:{
477
        ownershipDoc:{
-
 
478
        	
-
 
479
        	   excluded: false,   
509
           validators: {
480
           validators: {
510
                                file: {
-
 
511
                //extension: 'pdf,zip,rtf,jpg,png',
-
 
512
                //type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
513
                   
481
                   
514
          },
-
 
515
          notEmpty: {
482
          notEmpty: {
516
                          message: 'Ownership Document is required.'
483
                          message: 'Ownership Document is required.'
517
                    }
484
                    }
518
          }
485
          }
519
      },
486
      },
520
      
487
      
521
      insuranceDoc:{
488
      insuranceDoc:{
522
           validators: {
489
    	   excluded: false,   
523
                                file: {
-
 
524
              //  extension: 'pdf,zip,rtf,jpg,png',
-
 
525
               // type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
526
                   
490
    	  validators: {
527
          },
491
              
528
          notEmpty: {
492
          notEmpty: {
529
                          message: 'Insurance Document is required.'
493
                          message: 'Insurance Document is required.'
530
                    }
494
                    }
531
          }
495
          }
532
      },
496
      },
533
      loanDoc:{
497
      loanDoc:{
-
 
498
    	   excluded: false,   
-
 
499
   
534
           validators: {
500
           validators: {
535
                                file: {
-
 
536
               // extension: 'pdf,zip,rtf,jpg,png',
-
 
537
                //type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
538
                   
501
               
539
          },
-
 
540
          notEmpty: {
502
           notEmpty: {
541
                          message: 'Document is required.'
503
                          message: 'Document is required.'
542
                    }
504
            }
543
          }
505
           }
544
      },
506
      },
545
      sanctionDoc:{
507
      sanctionDoc:{
-
 
508
    	   excluded: false,   
-
 
509
      
546
           validators: {
510
           validators: {
547
                                file: {
-
 
548
               // extension: 'pdf,zip,rtf,jpg,png',
-
 
549
               // type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
550
                   
-
 
551
          },
511
             
552
          notEmpty: {
512
          notEmpty: {
553
                          message: 'Document is required.'
513
                          message: 'Document is required.'
554
                    }
514
                    }
555
          }
515
          }
556
      },
516
      },
557
      
517
      
558
      chequeCopy:{
518
      chequeCopy:{
-
 
519
    	   excluded: false,   
-
 
520
      
559
           validators: {
521
           validators: {
560
                                file: {
-
 
561
               // extension: 'pdf,zip,rtf,jpg,png',
-
 
562
               // type: 'application/pdf,application/zip,application/jpg,application.png'
-
 
563
                   
522
                 
564
          },
-
 
565
          notEmpty: {
523
          notEmpty: {
566
                          message: 'Document is required.'
524
                          message: 'Document is required.'
567
                    }
525
                    }
568
          }
526
          }
569
      },
527
      },
Line 669... Line 627...
669
           validators:{
627
           validators:{
670
                   notEmpty:{
628
                   notEmpty:{
671
                  message:'Please fill the field'
629
                  message:'Please fill the field'
672
                }
630
                }
673
            }
631
            }
674
        }
632
        } 
675
 
-
 
676
 
-
 
677
 
-
 
678
         
-
 
679
        
633
        
680
            }
634
            }
681
        }).on('success.form.bv', function(e) {
635
        }).on('success.form.bv', function(e) {
682
                $('#form').data('bootstrapValidator').resetForm();
636
                $('#form').data('bootstrapValidator').resetForm();
683
 
637
 
Line 791... Line 745...
791
 
745
 
792
function submitForm(formData){
746
function submitForm(formData){
793
    jQuery.blockUI({ message: "<h5>Please wait while we upload data to our server</h5>" });
747
    jQuery.blockUI({ message: "<h5>Please wait while we upload data to our server</h5>" });
794
    
748
    
795
    jQuery.ajax({
749
    jQuery.ajax({
796
        url: "register",
750
        url: contexPath +"/register",
797
        type: 'POST',
751
        type: 'POST',
798
        data: formData,
752
        data: formData,
799
        success: function (data) {
753
        success: function (data) {
800
            //$('#form')[0].reset();
754
            //$('#form')[0].reset();
801
        	jQuery.unblockUI();
755
        	jQuery.unblockUI();