Titlecase applicant : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-04-29 20:16:06 +05:30
parent 3c76ebeea2
commit ff347496b1
19 changed files with 93 additions and 69 deletions

View File

@ -326,14 +326,14 @@
[compareWith]="compareObjects" (selectionChange)="setOtherOwner($event.value,i)"> [compareWith]="compareObjects" (selectionChange)="setOtherOwner($event.value,i)">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName"> <mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let val of group.groupValues" [value]="val"> <mat-option *ngFor="let val of group.groupValues" [value]="val">
{{val.name}} {{val.group_id != 2 ? val.name : val.name | titlecase}}
</mat-option> </mat-option>
</mat-optgroup> </mat-optgroup>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field *ngIf="isOtherOwner[i]" style="width:45%"> <mat-form-field *ngIf="isOtherOwner[i]" style="width:45%">
<input matInput placeholder="Specify Owner Name" formControlName="other_owner" <input matInput placeholder="Specify Owner Name" formControlName="other_owner" [value]="sup.get('other_owner').value | titlecase"
autocomplete="off"> autocomplete="off">
<mat-error *ngIf="sup.controls['other_owner'].hasError('required')">Owner Name Required</mat-error> <mat-error *ngIf="sup.controls['other_owner'].hasError('required')">Owner Name Required</mat-error>
</mat-form-field> </mat-form-field>

View File

@ -102,7 +102,7 @@
[compareWith]="compareObjects"> [compareWith]="compareObjects">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName"> <mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let val of group.groupValues" [value]="val"> <mat-option *ngFor="let val of group.groupValues" [value]="val">
{{val.name}} {{val.group_id != 2 ? val.name : val.name | titlecase}}
</mat-option> </mat-option>
</mat-optgroup> </mat-optgroup>
</mat-select> </mat-select>
@ -110,7 +110,7 @@
<mat-form-field *ngIf="checkOthers(itemrow.get('applicant_name').value)===true" <mat-form-field *ngIf="checkOthers(itemrow.get('applicant_name').value)===true"
style="width:45%"> style="width:45%">
<input matInput placeholder="Specify Applicant Name" formControlName="other_applicant" <input matInput placeholder="Specify Applicant Name" formControlName="other_applicant"
autocomplete="off"> autocomplete="off" [value]="itemrow.get('other_applicant').value | titlecase">
<mat-error *ngIf="itemrow.controls['other_applicant'].hasError('required')">Applicant Name Required</mat-error> <mat-error *ngIf="itemrow.controls['other_applicant'].hasError('required')">Applicant Name Required</mat-error>
</mat-form-field> </mat-form-field>

View File

@ -114,7 +114,7 @@
[compareWith]="compareObjects" (selectionChange)="setOtherOwnerOfAddress($event.value,i)"> [compareWith]="compareObjects" (selectionChange)="setOtherOwnerOfAddress($event.value,i)">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName"> <mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let val of group.groupValues" [value]="val"> <mat-option *ngFor="let val of group.groupValues" [value]="val">
{{val.name}} {{val.group_id != 2 ? val.name : val.name | titlecase}}
</mat-option> </mat-option>
</mat-optgroup> </mat-optgroup>
</mat-select> </mat-select>
@ -122,8 +122,8 @@
</mat-form-field> </mat-form-field>
<mat-form-field style="width:45%" *ngIf="isOtherOwnerForAddress[i]"> <mat-form-field style="width:45%" *ngIf="isOtherOwnerForAddress[i]">
<input matInput placeholder="Specify Asset Owned Name" formControlName="business_name_of_the_other_owner" <input matInput placeholder="Specify Asset Owned Name" formControlName="business_name_of_the_other_owner" [value]="itemrow.get('business_name_of_the_other_owner').value | titlecase"
autocomplete="off"> autocomplete="off" >
<mat-error *ngIf="itemrow.controls['business_name_of_the_other_owner'].hasError('required')">Asset Owned by Required</mat-error> <mat-error *ngIf="itemrow.controls['business_name_of_the_other_owner'].hasError('required')">Asset Owned by Required</mat-error>
</mat-form-field> </mat-form-field>
@ -315,7 +315,7 @@
[compareWith]="compareObjects" (selectionChange)="setOtherOwnerOfAsset($event.value,i)"> [compareWith]="compareObjects" (selectionChange)="setOtherOwnerOfAsset($event.value,i)">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName"> <mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let val of group.groupValues" [value]="val"> <mat-option *ngFor="let val of group.groupValues" [value]="val">
{{val.name}} {{val.group_id != 2 ? val.name : val.name | titlecase}}
</mat-option> </mat-option>
</mat-optgroup> </mat-optgroup>
</mat-select> </mat-select>
@ -324,7 +324,7 @@
<mat-form-field *ngIf="isOtherOwner[i]" style="width:45%"> <mat-form-field *ngIf="isOtherOwner[i]" style="width:45%">
<input matInput placeholder="Specify Asset Owned Name" formControlName="business_name_of_the_other_owner" <input matInput placeholder="Specify Asset Owned Name" formControlName="business_name_of_the_other_owner"
autocomplete="off"> autocomplete="off" [value]="sup.get('business_name_of_the_other_owner').value | titlecase">
<mat-error *ngIf="sup.controls['business_name_of_the_other_owner'].hasError('required')">Asset Owned by is Required</mat-error> <mat-error *ngIf="sup.controls['business_name_of_the_other_owner'].hasError('required')">Asset Owned by is Required</mat-error>
</mat-form-field> </mat-form-field>

View File

@ -35,7 +35,7 @@
[compareWith]="compareObjects"> [compareWith]="compareObjects">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName"> <mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let val of group.groupValues" [value]="val"> <mat-option *ngFor="let val of group.groupValues" [value]="val">
{{val.name}} {{val.group_id != 2 ? val.name : val.name | titlecase}}
</mat-option> </mat-option>
</mat-optgroup> </mat-optgroup>
</mat-select> </mat-select>
@ -43,7 +43,7 @@
<mat-form-field *ngIf="checkOthers(itemrow.get('applicant_name').value)===true" <mat-form-field *ngIf="checkOthers(itemrow.get('applicant_name').value)===true"
style="width:45%"> style="width:45%">
<input matInput placeholder="Specify Applicant Name" formControlName="other_applicant" <input matInput placeholder="Specify Applicant Name" formControlName="other_applicant"
autocomplete="off"> autocomplete="off" [value]="itemrow.get('other_applicant').value | titlecase">
<mat-error *ngIf="itemrow.controls['other_applicant'].hasError('required')">Applicant Name Required</mat-error> <mat-error *ngIf="itemrow.controls['other_applicant'].hasError('required')">Applicant Name Required</mat-error>
</mat-form-field> </mat-form-field>

View File

@ -50,7 +50,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 40%;" *ngIf="members.value.partner_name=='Others'"> <mat-form-field style="width: 40%;" *ngIf="members.value.partner_name=='Others'">
<input matInput placeholder="Specify Others" formControlName="partner_other_name" <input matInput placeholder="Specify Others" formControlName="partner_other_name"
required> required [value]="members.get('partner_other_name').value | titlecase">
<mat-error *ngIf="members.controls['partner_other_name'].hasError('required')">Name Required</mat-error> <mat-error *ngIf="members.controls['partner_other_name'].hasError('required')">Name Required</mat-error>
</mat-form-field> </mat-form-field>
<button type="button" class="mr-1 mb-1 hover-icon" mat-raised-button <button type="button" class="mr-1 mb-1 hover-icon" mat-raised-button

View File

@ -53,7 +53,8 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<input matInput placeholder="Client Contact Person Name" formControlName="manufacturing_contact_person_name"> <input matInput placeholder="Client Contact Person Name" formControlName="manufacturing_contact_person_name"
[value]="items.get('manufacturing_contact_person_name').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<mat-select placeholder="Contact Person Designation" formControlName="person_designation" <mat-select placeholder="Contact Person Designation" formControlName="person_designation"
@ -186,7 +187,8 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<input matInput placeholder="Client Contact Person Name" formControlName="trade_product_contact_person_name"> <input matInput placeholder="Client Contact Person Name" formControlName="trade_product_contact_person_name"
[value]="items.get('trade_product_contact_person_name').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<mat-select placeholder="Contact Person Designation" formControlName="person_designation" <mat-select placeholder="Contact Person Designation" formControlName="person_designation"
@ -322,7 +324,8 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<input matInput placeholder="Client Contact Person Name" formControlName="service_provider_product_contact_person_name"> <input matInput placeholder="Client Contact Person Name" formControlName="service_provider_product_contact_person_name"
[value]="items.get('service_provider_product_contact_person_name').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<mat-select placeholder="Contact Person Designation" formControlName="person_designation" <mat-select placeholder="Contact Person Designation" formControlName="person_designation"

View File

@ -90,7 +90,7 @@
[label]="group.groupName"> [label]="group.groupName">
<mat-option *ngFor="let val of group.groupValues" <mat-option *ngFor="let val of group.groupValues"
[value]="val"> [value]="val">
{{val.name}} {{val.group_id != 2 ? val.name : val.name | titlecase}}
</mat-option> </mat-option>
</mat-optgroup> </mat-optgroup>
</mat-select> </mat-select>
@ -99,7 +99,7 @@
<!-- <mat-form-field *ngIf="details.get('loan_taken_by').value == 0"> --> <!-- <mat-form-field *ngIf="details.get('loan_taken_by').value == 0"> -->
<mat-form-field *ngIf="isOtherLoanTakenBy[i]"> <mat-form-field *ngIf="isOtherLoanTakenBy[i]">
<input matInput autocomplete="off" placeholder="Specify Borrower" <input matInput autocomplete="off" placeholder="Specify Borrower"
formControlName="others_loan_taken"> formControlName="others_loan_taken" [value]="details.get('others_loan_taken').value | titlecase">
<mat-error *ngIf="details.controls['others_loan_taken'].hasError('required')">Borrower Required</mat-error> <mat-error *ngIf="details.controls['others_loan_taken'].hasError('required')">Borrower Required</mat-error>
</mat-form-field> </mat-form-field>

View File

@ -12,7 +12,7 @@
<mat-card *ngFor="let family of _OtherForm.controls.family_list['controls']; let f = index;" [formGroupName]="f"> <mat-card *ngFor="let family of _OtherForm.controls.family_list['controls']; let f = index;" [formGroupName]="f">
<mat-card-content> <mat-card-content>
<mat-form-field style="width: 40%"> <mat-form-field style="width: 40%">
<input matInput placeholder="Name" formControlName="name" type="text" required> <input matInput placeholder="Name" formControlName="name" type="text" required [value]="family.get('name').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 40%"> <mat-form-field style="width: 40%">
<mat-select placeholder="Relationship" <mat-select placeholder="Relationship"

View File

@ -24,7 +24,7 @@
<mat-error *ngIf="applicant.controls['applicant_title_name'].invalid">Title Required</mat-error> <mat-error *ngIf="applicant.controls['applicant_title_name'].invalid">Title Required</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 60%"> <mat-form-field style="width: 60%">
<input matInput placeholder="Name" formControlName="applicant_name" type="text" required> <input matInput placeholder="Name" formControlName="applicant_name" [value]="applicant.get('applicant_name').value | titlecase" type="text" required>
<mat-error *ngIf="applicant.controls['applicant_name'].invalid">Name Required</mat-error> <mat-error *ngIf="applicant.controls['applicant_name'].invalid">Name Required</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 30%"> <mat-form-field style="width: 30%">

View File

@ -28,7 +28,7 @@
(selectionChange)="selectedPerson($event.value,ix)" required> (selectionChange)="selectedPerson($event.value,ix)" required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
<mat-option value="{{person.pd_co_applicant_id}}" *ngFor="let person of selectPerson"> <mat-option value="{{person.pd_co_applicant_id}}" *ngFor="let person of selectPerson">
{{person.applicant_name}} {{person.applicant_name | titlecase }}
</mat-option> </mat-option>
</mat-select> </mat-select>
<!-- <input matInput placeholder="person" formControlName="selected_person" required> --> <!-- <input matInput placeholder="person" formControlName="selected_person" required> -->
@ -68,7 +68,7 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field *ngIf="sup.get('residence_pin').value == 1" style="width:45%;"> <mat-form-field *ngIf="sup.get('residence_pin').value == 1" style="width:45%;">
<input matInput placeholder="Specify PinCode" formControlName="residence_other_pincode"> <input matInput placeholder="Specify PinCode" formControlName="residence_other_pincode" OnlyNumber type="text">
</mat-form-field> </mat-form-field>
<!-- <mat-form-field> <!-- <mat-form-field>
@ -132,7 +132,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<input matInput placeholder="Name" formControlName="family_member_name" <input matInput placeholder="Name" formControlName="family_member_name"
required> required [value]="item.get('family_member_name').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<mat-select placeholder="Relationship" formControlName="family_member_relationship" <mat-select placeholder="Relationship" formControlName="family_member_relationship"
@ -145,7 +145,7 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<input matInput placeholder="Age" formControlName="family_member_age"> <input matInput placeholder="Age" formControlName="family_member_age" OnlyNumber type="text">
</mat-form-field> </mat-form-field>
</div> </div>
<div> <div>
@ -188,7 +188,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field style="width:45%;"> <mat-form-field style="width:45%;">
<input matInput placeholder="No. of years in Employment/Business" <input matInput placeholder="No. of years in Employment/Business"
formControlName="earning_number_of_years_in_employment_or_business" formControlName="earning_number_of_years_in_employment_or_business" OnlyNumber type="text"
required> required>
</mat-form-field> </mat-form-field>
</div> </div>

View File

@ -129,9 +129,9 @@
<mat-select placeholder="Mode of Transport Used to Visit the PD address" formControlName="mode_of_transport_during_visit" <mat-select placeholder="Mode of Transport Used to Visit the PD address" formControlName="mode_of_transport_during_visit"
required> required>
<mat-option>Select</mat-option> <mat-option>Select</mat-option>
<mat-option value="two-wheeler"> Two Wheeler</mat-option> <mat-option value="two_wheeler"> Two Wheeler</mat-option>
<mat-option value="four-wheeler"> Four Wheeler</mat-option> <mat-option value="four_wheeler"> Four Wheeler</mat-option>
<mat-option value="public-transport"> Public Transport</mat-option> <mat-option value="public_transport"> Public Transport</mat-option>
<mat-option value="others"> Others</mat-option> <mat-option value="others"> Others</mat-option>
</mat-select> </mat-select>
<mat-error *ngIf="_finalRemarkForm.controls['mode_of_transport_during_visit'].hasError('required')">Mode of Transport Used to Visit the PD address Required</mat-error> <mat-error *ngIf="_finalRemarkForm.controls['mode_of_transport_during_visit'].hasError('required')">Mode of Transport Used to Visit the PD address Required</mat-error>

View File

@ -28,7 +28,7 @@
<ng-container matColumnDef="applicant_name"> <ng-container matColumnDef="applicant_name">
<mat-header-cell *matHeaderCellDef> Name </mat-header-cell> <mat-header-cell *matHeaderCellDef> Name </mat-header-cell>
<mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i"> <mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i">
<input class="capitalize" matInput placeholder="ApplicantName" formControlName="applicant_name" <input matInput placeholder="ApplicantName" formControlName="applicant_name" [value]="details.get('applicant_name').value | titlecase"
autocomplete="off" (change)="ApplicantName($event,details.value.pd_co_applicant_id)"> autocomplete="off" (change)="ApplicantName($event,details.value.pd_co_applicant_id)">
<!-- {{details.value.applicant_name | titlecase}} --> <!-- {{details.value.applicant_name | titlecase}} -->
</mat-cell> </mat-cell>

View File

@ -31,7 +31,7 @@
<mat-card-content> <mat-card-content>
<mat-form-field style="width: 42%"> <mat-form-field style="width: 42%">
<input matInput autocomplete="off" placeholder="Neighbour Name" formControlName="neighbourhood_name" <input matInput autocomplete="off" placeholder="Neighbour Name" formControlName="neighbourhood_name"
type="text"> [value]="neighbourhood.get('neighbourhood_name').value | titlecase" type="text">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 40%"> <mat-form-field style="width: 40%">
@ -75,7 +75,7 @@
(selectionChange)="getOtherOrganisationOwner($event.value,n)"> (selectionChange)="getOtherOrganisationOwner($event.value,n)">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName"> <mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let val of group.groupValues" [value]="val"> <mat-option *ngFor="let val of group.groupValues" [value]="val">
{{val.name}} {{val.name | titlecase}}
</mat-option> </mat-option>
</mat-optgroup> </mat-optgroup>
</mat-select> </mat-select>
@ -85,9 +85,9 @@
</ng-template> </ng-template>
</div> </div>
<div fxFlex="20"> <div fxFlex="20">
<mat-form-field style="width: 95%" *ngIf="isOrganisationOwner[n]"> <mat-form-field style="width: 95%" *ngIf="isOrganisationOwner[n] && !isDisplay2[n]">
<input matInput autocomplete="off" placeholder="Specify Owner name" formControlName="other_organisation_owner" <input matInput autocomplete="off" placeholder="Specify Owner name" formControlName="other_organisation_owner"
type="text"> type="text" [value]="neighbourhood.controls.other_organisation_owner.value | titlecase">
</mat-form-field> </mat-form-field>
</div> </div>
<div fxFlex="10" style="text-align: center;"> <div fxFlex="10" style="text-align: center;">
@ -122,7 +122,8 @@
[formGroupName]="r"> [formGroupName]="r">
<mat-card-content> <mat-card-content>
<mat-form-field style="width: 25%"> <mat-form-field style="width: 25%">
<input matInput autocomplete="off" placeholder="Name" formControlName="reference_name" type="text"> <input matInput autocomplete="off" placeholder="Name" formControlName="reference_name" type="text"
[value]="reference.get('reference_name').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 24%"> <mat-form-field style="width: 24%">
<input matInput autocomplete="off" placeholder="Mobile Number" formControlName="mobile" <input matInput autocomplete="off" placeholder="Mobile Number" formControlName="mobile"

View File

@ -290,13 +290,13 @@ pdf(fileURL){
// const referencecheckControl = <FormGroup>this._neighbourhoodForm.controls['referencecheck_list']; // const referencecheckControl = <FormGroup>this._neighbourhoodForm.controls['referencecheck_list'];
// const referencecheckControl = this._neighbourhoodForm.get('referencecheck_list') as FormControl; // const referencecheckControl = this._neighbourhoodForm.get('referencecheck_list') as FormControl;
// let RefCtrlLength : any = referencecheckControl.controls.length; // let RefCtrlLength : any = referencecheckControl.controls.length;
// const neighbourhoodControl : FormGroup = this._neighbourhoodForm.controls['neighbourhood_list'] as FormGroup; const neighbourhoodControl : FormGroup = this._neighbourhoodForm.controls['neighbourhood_list'] as FormGroup;
// let NbhdCtrlLength: any = neighbourhoodControl.controls.length; let NbhdCtrlLength: any = neighbourhoodControl.controls.length;
// if (NbhdCtrlLength > 0) { if (NbhdCtrlLength > 0) {
// let Ncnt = 0; let Ncnt = 0;
// while(Ncnt < NbhdCtrlLength){ while(Ncnt < NbhdCtrlLength){
// let nbhdChildCtrl : any = neighbourhoodControl.controls[Ncnt]; let nbhdChildCtrl : any = neighbourhoodControl.controls[Ncnt];
// nbhdChildCtrl.controls['neighbourhood_name'].setValidators([Validators.required]); // nbhdChildCtrl.controls['neighbourhood_name'].setValidators([Validators.required]);
// nbhdChildCtrl.controls['neighbourhood_name'].updateValueAndValidity(); // nbhdChildCtrl.controls['neighbourhood_name'].updateValueAndValidity();
@ -311,28 +311,32 @@ pdf(fileURL){
// nbhdChildCtrl.controls['how_long_do_know_in_year'].setValidators([Validators.required]); // nbhdChildCtrl.controls['how_long_do_know_in_year'].setValidators([Validators.required]);
// nbhdChildCtrl.controls['how_long_do_know_in_year'].updateValueAndValidity(); // nbhdChildCtrl.controls['how_long_do_know_in_year'].updateValueAndValidity();
// } // }
// else if(nbhdChildCtrl.controls.did_not_know_the_business_operation.value == true){ // else
if(nbhdChildCtrl.controls.did_not_know_the_business_operation.value == true){
// nbhdChildCtrl.controls['how_long_do_know_in_month'].setValue(''); nbhdChildCtrl.controls['how_long_do_know_in_month'].setValue('');
// // nbhdChildCtrl.controls['how_long_do_know_in_month'].clearValidators(); // nbhdChildCtrl.controls['how_long_do_know_in_month'].clearValidators();
// nbhdChildCtrl.controls['how_long_do_know_in_month'].updateValueAndValidity(); nbhdChildCtrl.controls['how_long_do_know_in_month'].updateValueAndValidity();
// nbhdChildCtrl.controls['how_long_do_know_in_year'].setValue(''); nbhdChildCtrl.controls['how_long_do_know_in_year'].setValue('');
// nbhdChildCtrl.controls['how_long_do_know_in_year'].clearValidators(); // nbhdChildCtrl.controls['how_long_do_know_in_year'].clearValidators();
// nbhdChildCtrl.controls['how_long_do_know_in_year'].updateValueAndValidity(); nbhdChildCtrl.controls['how_long_do_know_in_year'].updateValueAndValidity();
// } }
// if(nbhdChildCtrl.controls.did_not_know_the_owner.value == '' || nbhdChildCtrl.controls.did_not_know_the_owner.value == false){ // if(nbhdChildCtrl.controls.did_not_know_the_owner.value == '' || nbhdChildCtrl.controls.did_not_know_the_owner.value == false){
// nbhdChildCtrl.controls['organisation_owner'].setValidators([Validators.required]); // nbhdChildCtrl.controls['organisation_owner'].setValidators([Validators.required]);
// nbhdChildCtrl.controls['organisation_owner'].updateValueAndValidity(); // nbhdChildCtrl.controls['organisation_owner'].updateValueAndValidity();
// } // }
// else if(nbhdChildCtrl.controls.did_not_know_the_owner.value == true){ // else
// nbhdChildCtrl.controls['organisation_owner'].setValue(''); if(nbhdChildCtrl.controls.did_not_know_the_owner.value == true){
// nbhdChildCtrl.controls['organisation_owner'].clearValidators(); nbhdChildCtrl.controls['organisation_owner'].setValue('');
// nbhdChildCtrl.controls['organisation_owner'].updateValueAndValidity(); // nbhdChildCtrl.controls['organisation_owner'].clearValidators();
// } nbhdChildCtrl.controls['organisation_owner'].updateValueAndValidity();
// Ncnt++; nbhdChildCtrl.controls['other_organisation_owner'].setValue('');
// } nbhdChildCtrl.controls['other_organisation_owner'].updateValueAndValidity();
// } }
Ncnt++;
}
}
this._neighbourhoodForm.controls.neighbourhood_status.setValidators([Validators.required]); this._neighbourhoodForm.controls.neighbourhood_status.setValidators([Validators.required]);
this._neighbourhoodForm.controls.neighbourhood_status.updateValueAndValidity(); this._neighbourhoodForm.controls.neighbourhood_status.updateValueAndValidity();
@ -476,6 +480,7 @@ toggleVisibility(e,index,flag){
} }
else if(flag==2){ else if(flag==2){
this.isDisplay2[index] = e; this.isDisplay2[index] = e;
// console.log(this.isOrganisationOwner[index]);
} }
} }

View File

@ -85,20 +85,20 @@
[compareWith]="compareObjects" (selectionChange)="getOtherIncomeEarnedBy($event.value,i)"> [compareWith]="compareObjects" (selectionChange)="getOtherIncomeEarnedBy($event.value,i)">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName"> <mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let val of group.groupValues" [value]="val"> <mat-option *ngFor="let val of group.groupValues" [value]="val">
{{val.name}} {{val.name | titlecase}}
</mat-option> </mat-option>
</mat-optgroup> </mat-optgroup>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field style="width:45%" *ngIf="isIncomeEarnedBy[i]"> <mat-form-field style="width:45%" *ngIf="isIncomeEarnedBy[i]">
<input matInput autocomplete="off" placeholder="Specify Income earned by" <input matInput autocomplete="off" placeholder="Specify Income earned by" [value]="details.get('others_income_earned_by').value | titlecase"
formControlName="others_income_earned_by"> formControlName="others_income_earned_by">
<mat-error *ngIf="details.controls['others_income_earned_by'].hasError('required')">Income earned by is Required</mat-error> <mat-error *ngIf="details.controls['others_income_earned_by'].hasError('required')">Income earned by is Required</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field style="width:45%"> <mat-form-field style="width:45%">
<input matInput autocomplete="off" placeholder="Amount" formControlName="amount" <input matInput autocomplete="off" placeholder="Amount" formControlName="amount"
OnlyNumber type="text" (keyup)="inWords($event,i)"> OnlyNumber type="text">
<mat-hint align="start" style="font-size:90%" *ngIf="details.get('amount').value != ''">{{"&#8377;"}} {{ details.get('amount').value | numberToWords}} Only</mat-hint> <mat-hint align="start" style="font-size:90%" *ngIf="details.get('amount').value != ''">{{"&#8377;"}} {{ details.get('amount').value | numberToWords}} Only</mat-hint>
</mat-form-field> </mat-form-field>

View File

@ -112,7 +112,8 @@
<mat-card-content> <mat-card-content>
<mat-form-field style="width: 20%"> <mat-form-field style="width: 20%">
<!-- <mat-label>{{coDetails.controls.pd_question.value}}</mat-label> --> <!-- <mat-label>{{coDetails.controls.pd_question.value}}</mat-label> -->
<input matInput placeholder="Name" formControlName="name_ans" type="text" required> <input matInput placeholder="Name" formControlName="name_ans" type="text" required
[value]="coDetails.get('name_ans').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 20%"> <mat-form-field style="width: 20%">

View File

@ -44,7 +44,8 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<input matInput placeholder="Contact Person Name" formControlName="manufacturing_contact_person_name"> <input matInput placeholder="Contact Person Name" formControlName="manufacturing_contact_person_name"
[value]="items.get('manufacturing_contact_person_name').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<mat-select placeholder="Contact Person Designation" formControlName="person_designation" <mat-select placeholder="Contact Person Designation" formControlName="person_designation"
@ -181,7 +182,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<input matInput placeholder="Contact Person Name" formControlName="trade_product_contact_person_name" <input matInput placeholder="Contact Person Name" formControlName="trade_product_contact_person_name"
maxlength="10"> maxlength="10" [value]="items.get('trade_product_contact_person_name').value | titlecase">
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 35%"> <mat-form-field style="width: 35%">
<mat-select placeholder="Contact Person Designation" formControlName="person_designation" <mat-select placeholder="Contact Person Designation" formControlName="person_designation"

View File

@ -25,5 +25,5 @@ export const environment = {
s3_endpoint: '', s3_endpoint: '',
accessToken:'', accessToken:'',
//apiUrl:'http://localhost/sparqapi/api/' //apiUrl:'http://localhost/sparqapi/api/'
apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/' apiEndpoint: 'https://ssa.sineedge.com/sparqapi/api/'
}; };