This commit is contained in:
venbatechnologies@gmail.com 2018-11-01 17:43:52 +05:30
commit ea810331d9
6 changed files with 22 additions and 1 deletions

View File

@ -124,6 +124,9 @@
<mat-form-field style="width: 100%;"> <mat-form-field style="width: 100%;">
<input matInput placeholder="Pincode" formControlName="pincode"> <input matInput placeholder="Pincode" formControlName="pincode">
<!-- <mat-error *ngIf="pdMain.pincode.hasError('required')">Pincode Required.</mat-error> --> <!-- <mat-error *ngIf="pdMain.pincode.hasError('required')">Pincode Required.</mat-error> -->
</mat-form-field>
<mat-form-field style="width: 100%;">
<textarea matInput placeholder="Remarks" formControlName="remarks"></textarea>
</mat-form-field> </mat-form-field>
<!-- <div class="ml-xs mr-xs" style="width: 100%;" fxLayout="row" > <!-- <div class="ml-xs mr-xs" style="width: 100%;" fxLayout="row" >
<h4 mat-dialog-title style="width: 14%;margin-top: 0%;">Allocation</h4> <h4 mat-dialog-title style="width: 14%;margin-top: 0%;">Allocation</h4>

View File

@ -85,6 +85,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
fk_city: [null], fk_city: [null],
fk_state: [null], fk_state: [null],
  pincode : [null],   pincode : [null],
remarks:[null],
  // allocation_type: [null],   // allocation_type: [null],
  // sub_allocation_type: [null],   // sub_allocation_type: [null],
items: this._fb.array([]), items: this._fb.array([]),
@ -304,6 +305,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
"fk_city":formValue.fk_city, "fk_city":formValue.fk_city,
"fk_state":formValue.fk_state, "fk_state":formValue.fk_state,
"pincode":formValue.pincode , "pincode":formValue.pincode ,
"remarks":formValue.remarks,
"pd_status": status, "pd_status": status,
//"fk_pd_allocation_type":this.allocationTypeModel , //"fk_pd_allocation_type":this.allocationTypeModel ,
"fk_createdby" : this._aws.getlocale(), "fk_createdby" : this._aws.getlocale(),

View File

@ -97,6 +97,7 @@ export class EditPdApplicantComponent implements OnInit {
} }
} }
get pdMainApplicant() { return this._EditApplicantForm.controls; } get pdMainApplicant() { return this._EditApplicantForm.controls; }
get pdCoApplicant() { return this._EditApplicantForm.get('coApplicantItems') as FormArray; } get pdCoApplicant() { return this._EditApplicantForm.get('coApplicantItems') as FormArray; }
updatePdApplicant(formValue: any) { updatePdApplicant(formValue: any) {

View File

@ -117,6 +117,9 @@
<input matInput placeholder="Pincode" formControlName="pincode"> <input matInput placeholder="Pincode" formControlName="pincode">
<!-- <mat-error *ngIf="pdMain.pincode.hasError('required')">Pincode Required.</mat-error> --> <!-- <mat-error *ngIf="pdMain.pincode.hasError('required')">Pincode Required.</mat-error> -->
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 100%;">
<textarea matInput placeholder="Remarks" formControlName="remarks"></textarea>
</mat-form-field>
</div> </div>
@ -134,3 +137,14 @@
</form> </form>
</mat-card> </mat-card>
</div> </div>

View File

@ -133,6 +133,7 @@ export class EditPdMasterComponent implements OnInit {
fk_city: [this.data.records.fk_city], fk_city: [this.data.records.fk_city],
fk_state: [this.data.records.fk_state], fk_state: [this.data.records.fk_state],
  pincode : [this.data.records.pincode],   pincode : [this.data.records.pincode],
remarks: [this.data.records.remarks],
}); });
if(this.data.records.fk_lender_id && this.data.records.fk_product_id && this.data.records.fk_subproduct_id && this.data.records.fk_pd_type && this.data.records.fk_customer_segment && this.data.records.loan_amount && this.data.records.addressline1 && this.data.records.fk_city && this.data.records.fk_state && this.data.records.pincode){ if(this.data.records.fk_lender_id && this.data.records.fk_product_id && this.data.records.fk_subproduct_id && this.data.records.fk_pd_type && this.data.records.fk_customer_segment && this.data.records.loan_amount && this.data.records.addressline1 && this.data.records.fk_city && this.data.records.fk_state && this.data.records.pincode){
this.enablePDButton=true; this.enablePDButton=true;

View File

@ -98,7 +98,7 @@ export class SmartPdAllocationComponent implements OnInit {
let updateData = { let updateData = {
"pd_id":this.data.pd_id, "pd_id":this.data.pd_id,
"fk_pd_allocated_to":pdOfficer.fk_user_id, "fk_pd_allocated_to":pdOfficer.fk_user_id,
"excutive_id":excutiveOfficer.fk_user_id, "executive_id":excutiveOfficer.fk_user_id,
} }
this._pd.updatePdOfficer(updateData).subscribe( this._pd.updatePdOfficer(updateData).subscribe(
result => { result => {