other family details forms chanages : kdk

This commit is contained in:
dineshkumarkannan 2018-12-24 15:31:15 +05:30
parent d84b1e7ea9
commit 9a50080e3c
2 changed files with 6 additions and 16 deletions

View File

@ -16,12 +16,7 @@
<div fxLayout="row wrap"> <div fxLayout="row wrap">
<div fxFlex="100"> <div fxFlex="100">
<mat-card> <mat-card>
<!-- <mat-card-title>Address Details</mat-card-title> -->
<mat-card-content> <mat-card-content>
<!--<mat-form-field>
<input matInput placeholder="Number Of Family Members" formControlName="members" required>
</mat-form-field>-->
<div> <div>
<mat-form-field> <mat-form-field>
<mat-select placeholder="Select a person" formControlName="selected_person" required> <mat-select placeholder="Select a person" formControlName="selected_person" required>
@ -81,9 +76,6 @@
<mat-form-field> <mat-form-field>
<input matInput placeholder="Name" formControlName="family_member_name" required> <input matInput placeholder="Name" formControlName="family_member_name" required>
</mat-form-field> </mat-form-field>
<!--<mat-form-field>
<input matInput placeholder="Relationship" formControlName="family_member_relationship" required>
</mat-form-field>-->
<mat-form-field> <mat-form-field>
<mat-select placeholder="Relationship" formControlName="family_member_relationship" required> <mat-select placeholder="Relationship" formControlName="family_member_relationship" required>
<mat-option value="{{relation.relationship_id}}" *ngFor="let relation of relationData"> <mat-option value="{{relation.relationship_id}}" *ngFor="let relation of relationData">
@ -105,8 +97,7 @@
</mat-form-field> </mat-form-field>
</div> </div>
<div *ngIf="item.get('family_member_earning_status').value == 1"> <div *ngIf="item.get('family_member_earning_status').value == 1">
<!--<pre>{{ customerSegData | json}}</pre>--> <mat-form-field>
<mat-form-field>
<mat-select placeholder="Segment" formControlName="earning_segment" required> <mat-select placeholder="Segment" formControlName="earning_segment" required>
<mat-option value="{{segment.customer_segment_id}}" *ngFor="let segment of customerSegData"> <mat-option value="{{segment.customer_segment_id}}" *ngFor="let segment of customerSegData">
{{segment.name}} {{segment.name}}
@ -259,7 +250,6 @@
</mat-form-field> </mat-form-field>
</div> </div>
<div fxFlex="40" align="end"> <div fxFlex="40" align="end">
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="submit" matTooltip="Save" matTooltipPosition="above"><mat-icon>save</mat-icon></button> -->
<button type="submit" mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="submitFamily()"><mat-icon>save</mat-icon></button> <button type="submit" mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="submitFamily()"><mat-icon>save</mat-icon></button>
</div> </div>
</mat-dialog-actions> </mat-dialog-actions>

View File

@ -577,11 +577,11 @@ export class FamilyDetailsComponent implements OnInit {
// records.formid = '6'; // records.formid = '6';
// // records.fk_createdby = '251'; // // records.fk_createdby = '251';
// console.log(JSON.stringify(records)); // console.log(JSON.stringify(records));
// this._pd.saveForm(records).subscribe(data => { // // this._pd.saveForm(records).subscribe(data => {
// this.notifier.notify('success', 'Saved Successfully.'); // // this.notifier.notify('success', 'Saved Successfully.');
// }, error => { // // }, error => {
// this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); // // this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
// }); // // });
// } // }
// // validateAllFormFields(formGroup: FormGroup) { // // validateAllFormFields(formGroup: FormGroup) {
// // Object.keys(formGroup.controls).forEach(field => { // // Object.keys(formGroup.controls).forEach(field => {