Fairoj : Neighbourhood validation change

This commit is contained in:
saravanakumarkandasami 2019-07-17 20:41:42 +05:30
parent 3755bb5ae8
commit 6c8a4a1bae
4 changed files with 10 additions and 4 deletions

View File

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"production": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod ",
"staging": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod --configuration=staging",
"staging": "node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng build --prod --configuration=staging",
"ng": "ng",
"start": "ng serve",
"build": "ng build",

View File

@ -266,7 +266,7 @@
<mat-option [value]="member.relationship_id"
*ngFor="let member of relationShipList">{{member.name
+ ' of' | titlecase}}</mat-option>
<mat-option value="0"> Not Applicable </mat-option>
<mat-option value="0"> Not Related </mat-option>
</mat-select>
</mat-cell>
@ -284,7 +284,7 @@
*ngFor="let appc of individualsList | searchRelation : { currentApplicantID:_generalForm.controls.persons_with_relationships.value[i].pd_co_applicant_id, existRelationList:_generalForm.controls.persons_with_relationships.value}"
[value]="appc.pd_co_applicant_id">{{appc.applicant_name | titlecase}}
</mat-option>
<mat-option value="0"> Not Applicable </mat-option>
<mat-option value="0"> Not Related </mat-option>
</mat-select>
</mat-cell>

View File

@ -325,8 +325,14 @@ pdf(fileURL){
this._neighbourhoodForm.controls.neighbourhood_status.setValidators([Validators.required]);
this._neighbourhoodForm.controls.neighbourhood_status.updateValueAndValidity();
if(this._neighbourhoodForm.controls.neighbourhood_status.value != 'Positive'){
this._neighbourhoodForm.controls.neighbour_reference_remark.setValidators([Validators.required]);
this._neighbourhoodForm.controls.neighbour_reference_remark.updateValueAndValidity();
}
else{
this._neighbourhoodForm.controls.neighbour_reference_remark.clearValidators();
this._neighbourhoodForm.controls.neighbour_reference_remark.updateValueAndValidity();
}
// }
// if(formData.check_type==1){

View File

@ -8,7 +8,7 @@ export const environment = {
environmentName: 'Development Environment',//Localhost Environment.
// apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/',
//apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/',
apiEndpoint: 'https://demo.pdgenie.com/sparqtest/api/',
authorization: 'sparqvenba2018',