Merge branch 'master' of https://bitbucket.org/sriramv18/sparqsineedge
This commit is contained in:
commit
b4aaa5433c
@ -280,7 +280,7 @@
|
|||||||
(click)="onReset()"><mat-icon>settings_backup_restore</mat-icon></button>
|
(click)="onReset()"><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
|
|
||||||
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Click To Draft" matTooltipPosition="above" type="button" (click)="addCoApplicant()"><mat-icon>drafts</mat-icon></button> -->
|
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Click To Draft" matTooltipPosition="above" type="button" (click)="addCoApplicant()"><mat-icon>drafts</mat-icon></button> -->
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" (click)="submitPdDetails(_PDtriggerForm.value,draftStatus)" matTooltip="PD Draft" matTooltipPosition="above"><mat-icon>description</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" (click)="submitPdDetails(_PDtriggerForm.value,draftStatus)" matTooltip="PD Draft" matTooltipPosition="above" type="button"><mat-icon>description</mat-icon></button>
|
||||||
|
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="submit" matTooltip="PD Process" matTooltipPosition="above" [disabled]="!enablePDButton || !_PDtriggerForm.valid "><mat-icon>save</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="submit" matTooltip="PD Process" matTooltipPosition="above" [disabled]="!enablePDButton || !_PDtriggerForm.valid "><mat-icon>save</mat-icon></button>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
|
|||||||
@ -309,7 +309,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
"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(),
|
||||||
"createdon": new Date().toJSON().slice(0,19).replace('T',' ')
|
// "createdon": new Date().toJSON().slice(0,19).replace('T',' ')
|
||||||
};
|
};
|
||||||
let pd_applicant_details : any=[{
|
let pd_applicant_details : any=[{
|
||||||
"applicant_name":formValue.applicant_name,
|
"applicant_name":formValue.applicant_name,
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mat-form-field>
|
<mat-form-field *ngIf="pd_cus_segment!='SAL-CHQ'">
|
||||||
<mat-select placeholder="Was the employer met?"
|
<mat-select placeholder="Was the employer met?"
|
||||||
formControlName="was_met">
|
formControlName="was_met">
|
||||||
<mat-option value="yes">Yes</mat-option>
|
<mat-option value="yes">Yes</mat-option>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
<input matInput placeholder="Designation of person met" formControlName="designation_person_met">
|
<input matInput placeholder="Designation of person met" formControlName="designation_person_met">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<mat-form-field>
|
<mat-form-field *ngIf="pd_cus_segment!='SAL-CHQ'">
|
||||||
<mat-select placeholder="Salary amount confirmed ?"
|
<mat-select placeholder="Salary amount confirmed ?"
|
||||||
formControlName="confirm_salary">
|
formControlName="confirm_salary">
|
||||||
<mat-option value="yes">Yes</mat-option>
|
<mat-option value="yes">Yes</mat-option>
|
||||||
@ -41,14 +41,14 @@
|
|||||||
<mat-form-field *ngIf="employmentForm.controls['confirm_salary'].value == 'yes'">
|
<mat-form-field *ngIf="employmentForm.controls['confirm_salary'].value == 'yes'">
|
||||||
<input matInput placeholder="What is the salary amount confirmed?" formControlName="confirm_salary_amount">
|
<input matInput placeholder="What is the salary amount confirmed?" formControlName="confirm_salary_amount">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field>
|
<mat-form-field *ngIf="pd_cus_segment!='SAL-CHQ'">
|
||||||
<mat-select placeholder="Attendance register seen ?"
|
<mat-select placeholder="Attendance register seen ?"
|
||||||
formControlName="attendance_seen">
|
formControlName="attendance_seen">
|
||||||
<mat-option value="yes">Yes</mat-option>
|
<mat-option value="yes">Yes</mat-option>
|
||||||
<mat-option value="no">No</mat-option>
|
<mat-option value="no">No</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field>
|
<mat-form-field *ngIf="pd_cus_segment!='SAL-CHQ'">
|
||||||
<mat-select placeholder="Salary register seen ?"
|
<mat-select placeholder="Salary register seen ?"
|
||||||
formControlName="sal_reg_seen">
|
formControlName="sal_reg_seen">
|
||||||
<mat-option value="yes">Yes</mat-option>
|
<mat-option value="yes">Yes</mat-option>
|
||||||
@ -67,8 +67,8 @@
|
|||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput placeholder="Net Monthly Salary"
|
<input matInput placeholder="Net Monthly Salary"
|
||||||
formControlName="net_monthly_salary">
|
formControlName="net_monthly_salary">
|
||||||
<input matInput placeholder="Net Take Home"
|
<!-- <input matInput placeholder="Net Take Home"
|
||||||
formControlName="net_take_home">
|
formControlName="net_take_home"> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput placeholder="Bonus or Incentive"
|
<input matInput placeholder="Bonus or Incentive"
|
||||||
|
|||||||
@ -31,21 +31,24 @@ import {ActivatedRoute, Router} from '@angular/router';
|
|||||||
export class EmploymentInfoComponent implements OnInit {
|
export class EmploymentInfoComponent implements OnInit {
|
||||||
@Input() pdid: number;
|
@Input() pdid: number;
|
||||||
@Input() form_id: number;
|
@Input() form_id: number;
|
||||||
|
@Input() pd_all_details:any;
|
||||||
|
|
||||||
public employmentForm: FormGroup;
|
public employmentForm: FormGroup;
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
|
public pd_cus_segment:string;
|
||||||
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
|
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private _pd: PdTrigerService) {
|
private _pd: PdTrigerService) {
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
|
||||||
}
|
}
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.pd_cus_segment=this.pd_all_details.pdmaster_details.customer_segment_abbr.toUpperCase();
|
||||||
this.initemploymentForm();
|
this.initemploymentForm();
|
||||||
let params: any = {};
|
let params: any = {};
|
||||||
params.pd_id = this.pdid;
|
params.pd_id = this.pdid;
|
||||||
params.pd_form_id = this.form_id;
|
params.pd_form_id = this.form_id;
|
||||||
this._pd.retriveForm(params).subscribe(value => {
|
this._pd.retriveForm(params).subscribe(value => {
|
||||||
console.log('value', value);
|
|
||||||
if (value.status == 200) {
|
if (value.status == 200) {
|
||||||
this.employmentForm.controls['employer_name'].setValue(value.records.employer_name);
|
this.employmentForm.controls['employer_name'].setValue(value.records.employer_name);
|
||||||
this.employmentForm.controls['how_long_year'].setValue(value.records.how_long_year);
|
this.employmentForm.controls['how_long_year'].setValue(value.records.how_long_year);
|
||||||
@ -76,13 +79,13 @@ export class EmploymentInfoComponent implements OnInit {
|
|||||||
employer_name: ['', Validators.compose([Validators.required])],
|
employer_name: ['', Validators.compose([Validators.required])],
|
||||||
how_long_year: ['', Validators.compose([Validators.required])],
|
how_long_year: ['', Validators.compose([Validators.required])],
|
||||||
how_long_month: ['', Validators.compose([Validators.required])],
|
how_long_month: ['', Validators.compose([Validators.required])],
|
||||||
was_met: ['', Validators.compose([Validators.required])],
|
was_met: [this.pd_cus_segment=='SAL-CHQ' ? 'No' : '', Validators.compose([Validators.required])],
|
||||||
name_person_met: [''],
|
name_person_met: [''],
|
||||||
designation_person_met: [''],
|
designation_person_met: [''],
|
||||||
confirm_salary: ['', Validators.compose([Validators.required])],
|
confirm_salary: [this.pd_cus_segment=='SAL-CHQ' ? 'No' : '', Validators.compose([Validators.required])],
|
||||||
confirm_salary_amount: [''],
|
confirm_salary_amount: [''],
|
||||||
attendance_seen: ['', Validators.compose([Validators.required])],
|
attendance_seen: [this.pd_cus_segment=='SAL-CHQ' ? 'No' : '', Validators.compose([Validators.required])],
|
||||||
sal_reg_seen: ['', Validators.compose([Validators.required])],
|
sal_reg_seen: [this.pd_cus_segment=='SAL-CHQ' ? 'No' : '', Validators.compose([Validators.required])],
|
||||||
gross_monthly_salary: ['', Validators.compose([Validators.required])],
|
gross_monthly_salary: ['', Validators.compose([Validators.required])],
|
||||||
net_monthly_salary: ['', Validators.compose([Validators.required])],
|
net_monthly_salary: ['', Validators.compose([Validators.required])],
|
||||||
bonus_incentive: ['', Validators.compose([Validators.required])],
|
bonus_incentive: ['', Validators.compose([Validators.required])],
|
||||||
|
|||||||
@ -135,6 +135,7 @@ loadFormWithIDData(data) {
|
|||||||
});
|
});
|
||||||
//console.log(this._personalForm);
|
//console.log(this._personalForm);
|
||||||
this.loadDataStatus = true;
|
this.loadDataStatus = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadFormData(){
|
loadFormData(){
|
||||||
@ -190,6 +191,7 @@ loadFormWithIDData(data) {
|
|||||||
});
|
});
|
||||||
//console.log(this._personalForm);
|
//console.log(this._personalForm);
|
||||||
this.loadDataStatus = true;
|
this.loadDataStatus = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//get pd main applicant array values
|
//get pd main applicant array values
|
||||||
|
|||||||
@ -422,7 +422,7 @@
|
|||||||
<app-stock [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-stock>
|
<app-stock [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-stock>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngSwitchCase="12">
|
<ng-container *ngSwitchCase="12">
|
||||||
<app-employment-info [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-employment-info>
|
<app-employment-info [pdid]="startPD" [form_id]="selectedFormsCategory.form_id" [pd_all_details]="pdFullDetails"></app-employment-info>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngSwitchCase="13">
|
<ng-container *ngSwitchCase="13">
|
||||||
<app-business-info [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-business-info>
|
<app-business-info [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-business-info>
|
||||||
|
|||||||
@ -165,7 +165,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
|
|||||||
OwlNativeDateTimeModule,
|
OwlNativeDateTimeModule,
|
||||||
],
|
],
|
||||||
// declarations: [ListPdComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, AssetsInfoComponent],
|
// declarations: [ListPdComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, AssetsInfoComponent],
|
||||||
exports: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent],
|
exports: [PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent],
|
||||||
providers: [PdTrigerService, GetGeometricLocationService],
|
providers: [PdTrigerService, GetGeometricLocationService],
|
||||||
entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, TelePdAllocationComponent]
|
entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, TelePdAllocationComponent]
|
||||||
})
|
})
|
||||||
|
|||||||
@ -150,7 +150,7 @@ export class PdTrigerService {
|
|||||||
editPdMasterDetails(editData: any, status: string): Observable<any> {
|
editPdMasterDetails(editData: any, status: string): Observable<any> {
|
||||||
editData.pd_status = status;
|
editData.pd_status = status;
|
||||||
editData.fk_updatedby = this._aws.getlocale();
|
editData.fk_updatedby = this._aws.getlocale();
|
||||||
editData.updatedon = currentdate;
|
// editData.updatedon = currentdate;
|
||||||
return this._http.post<any>(this.apiUrl + "updatePDMaster", {records: editData})
|
return this._http.post<any>(this.apiUrl + "updatePDMaster", {records: editData})
|
||||||
|
|
||||||
.pipe(
|
.pipe(
|
||||||
@ -180,7 +180,7 @@ export class PdTrigerService {
|
|||||||
// update pd officer
|
// update pd officer
|
||||||
updatePdOfficer(updateData: any): Observable<any> {
|
updatePdOfficer(updateData: any): Observable<any> {
|
||||||
updateData.fk_updatedby = this._aws.getlocale();
|
updateData.fk_updatedby = this._aws.getlocale();
|
||||||
updateData.updatedon = currentdate;
|
// updateData.updatedon = currentdate;
|
||||||
return this._http.post<any>(this.apiUrl + "allocatePD", {"records": updateData})
|
return this._http.post<any>(this.apiUrl + "allocatePD", {"records": updateData})
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('operation', []))
|
catchError(this.handleError('operation', []))
|
||||||
@ -190,7 +190,7 @@ export class PdTrigerService {
|
|||||||
// update pd schedule
|
// update pd schedule
|
||||||
updateSchedule(updateData: any): Observable<any> {
|
updateSchedule(updateData: any): Observable<any> {
|
||||||
updateData.fk_scheduled_by = this._aws.getlocale();
|
updateData.fk_scheduled_by = this._aws.getlocale();
|
||||||
updateData.createdon = currentdate;
|
// updateData.createdon = currentdate;
|
||||||
return this._http.post<any>(this.apiUrl + "schdulePD", {"records": updateData})
|
return this._http.post<any>(this.apiUrl + "schdulePD", {"records": updateData})
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('operation', []))
|
catchError(this.handleError('operation', []))
|
||||||
@ -262,7 +262,7 @@ getPDFormDetailsWithID(pdID, formID ):Observable<any> {
|
|||||||
// save pd answers
|
// save pd answers
|
||||||
savePDQuestions(saveData: any): Observable<any> {
|
savePDQuestions(saveData: any): Observable<any> {
|
||||||
saveData.createdby = this._aws.getlocale();
|
saveData.createdby = this._aws.getlocale();
|
||||||
saveData.fk_createdon = currentdate;
|
//saveData.fk_createdon = currentdate;
|
||||||
// saveData[0].fk_updatedby = this._aws.getlocale();
|
// saveData[0].fk_updatedby = this._aws.getlocale();
|
||||||
// saveData[0].updatedon = currentdate;
|
// saveData[0].updatedon = currentdate;
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,13 @@
|
|||||||
|
|
||||||
</mat-list>
|
</mat-list>
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
|
<mat-list *ngFor="let formButton of categoryFormButtons">
|
||||||
|
<mat-list-item class="custm-list-item" (click)="OnSelectDirectForms(formButton)" style="background-color:#e0e0e0">
|
||||||
|
<span class="mt-0">{{ (formButton.form_name.length>17)? (formButton.form_name | slice:0:17)+'..':(formButton.form_name) }}</span>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
|
||||||
|
</mat-list>
|
||||||
|
|
||||||
</mat-sidenav>
|
</mat-sidenav>
|
||||||
<mat-toolbar color="primary" fxHide="false" fxHide.gt-sm>
|
<mat-toolbar color="primary" fxHide="false" fxHide.gt-sm>
|
||||||
@ -37,7 +44,7 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
|
|
||||||
<div fxLayout="row" >
|
<div fxLayout="row" >
|
||||||
<!---- <button mat-raised-button mat-icon-button class="hover-icon start_close_btn" type="button" matTooltip="Close" matTooltipPosition="above"
|
<!--<button mat-raised-button mat-icon-button class="hover-icon start_close_btn" type="button" matTooltip="Close" matTooltipPosition="above"
|
||||||
(click)="loadPdViewCompoent()"><mat-icon>close</mat-icon></button>-->
|
(click)="loadPdViewCompoent()"><mat-icon>close</mat-icon></button>-->
|
||||||
<div fxFlex="33" class="text-xs-left">
|
<div fxFlex="33" class="text-xs-left">
|
||||||
<h4 class="mt-0">{{mainApplicantName}}</h4>
|
<h4 class="mt-0">{{mainApplicantName}}</h4>
|
||||||
@ -52,10 +59,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<hr>
|
<hr>
|
||||||
<mat-card-content style="min-height: 240px;" *ngIf="selectedCategory.length==0">
|
<div *ngIf="!formsCategoryEnable">
|
||||||
|
<mat-card-content style="min-height: 500px;" *ngIf="selectedCategory.length==0">
|
||||||
<!-- <h6 class="mt-0">About</h6> -->
|
<!-- <h6 class="mt-0">About</h6> -->
|
||||||
<p>No Records Found..</p>
|
<p>No Records Found..</p>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- check type of questions -->
|
<!-- check type of questions -->
|
||||||
<ng-container [ngSwitch]="selectedCategory.fk_question_answertype">
|
<ng-container [ngSwitch]="selectedCategory.fk_question_answertype">
|
||||||
@ -362,7 +371,66 @@
|
|||||||
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<!-- end check box questions section -->
|
<!-- end check box questions section -->
|
||||||
|
<!-- start forms based questions -->
|
||||||
|
<div *ngIf="formsCategoryEnable">
|
||||||
|
<ng-container [ngSwitch]="selectedFormsCategory.form_id">
|
||||||
|
<!-- start supplier type questions section -->
|
||||||
|
<ng-container *ngSwitchCase="1">
|
||||||
|
<app-supplier-info [pdid]="startPD"></app-supplier-info>
|
||||||
|
</ng-container>
|
||||||
|
<!-- end supplier type questions -->
|
||||||
|
|
||||||
|
<!-- start client type questions -->
|
||||||
|
<ng-container *ngSwitchCase="2">
|
||||||
|
<app-client-info [pdid]="startPD"></app-client-info>
|
||||||
|
</ng-container>
|
||||||
|
<!-- end client type questions -->
|
||||||
|
|
||||||
|
<!-- start personal type questions -->
|
||||||
|
<ng-container *ngSwitchCase="3">
|
||||||
|
<app-personal-info [pdid]="startPD" [pd_all_details]="pdFullDetails"></app-personal-info>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="4">
|
||||||
|
<app-assets-info [pdid]="startPD"></app-assets-info>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="5">
|
||||||
|
<app-address [pdid]="startPD"></app-address>
|
||||||
|
<!-- end personal type questions -->
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="6">
|
||||||
|
<app-family-details [pdid]="startPD"></app-family-details>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="7">
|
||||||
|
<!--<p>Banking details</p>-->
|
||||||
|
<app-banking-details [pdid]="startPD" ></app-banking-details>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="8">
|
||||||
|
<app-current-loan [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-current-loan>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="9">
|
||||||
|
<app-other-income [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-other-income>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="10">
|
||||||
|
<app-loan-details [pdid]="startPD" [form_id]="selectedFormsCategory.form_id" [applicant_details]="pdFullDetails"></app-loan-details>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="11">
|
||||||
|
<app-stock [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-stock>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="12">
|
||||||
|
<app-employment-info [pdid]="startPD" [form_id]="selectedFormsCategory.form_id" [pd_all_details]="pdFullDetails"></app-employment-info>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="13">
|
||||||
|
<app-business-info [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-business-info>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="14">
|
||||||
|
<app-financial-info [pdid]="startPD" [form_id]="selectedFormsCategory.form_id"></app-financial-info>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<!-- end personal type questions
|
||||||
|
-->
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
<!-- end form based questions -->
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
</mat-sidenav-container>
|
</mat-sidenav-container>
|
||||||
|
|||||||
@ -116,3 +116,21 @@ $product-bg-color-hover: rgba(103, 58, 183, 0.7);
|
|||||||
mat-icon{
|
mat-icon{
|
||||||
color: #ff3636;
|
color: #ff3636;
|
||||||
}
|
}
|
||||||
|
.address {
|
||||||
|
display: flex;
|
||||||
|
padding: 0 2%;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.address > * {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.matcard mat-form-field {
|
||||||
|
margin: 0 2%;
|
||||||
|
}
|
||||||
|
.address .button {
|
||||||
|
float: right;
|
||||||
|
width: 10px;
|
||||||
|
background: #62B013;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|||||||
@ -30,6 +30,12 @@ selectedQuestionIndex:number;
|
|||||||
getQuestionsLength:number;
|
getQuestionsLength:number;
|
||||||
answerList:any=[];
|
answerList:any=[];
|
||||||
ansPDList:any=[];
|
ansPDList:any=[];
|
||||||
|
|
||||||
|
// forms details
|
||||||
|
pdFullDetails:any=[];
|
||||||
|
categoryFormButtons: any;
|
||||||
|
formsCategoryEnable: boolean = false;
|
||||||
|
selectedFormsCategory: any;
|
||||||
// create values for status check
|
// create values for status check
|
||||||
pdStatusCheck :any={
|
pdStatusCheck :any={
|
||||||
"DRAFT" :'DRAFT',
|
"DRAFT" :'DRAFT',
|
||||||
@ -83,9 +89,10 @@ loadTemplates(startID:string){
|
|||||||
let filterApplicantName= data.records.pdapplicants_detials.filter(item => item.applicant_type == 1);
|
let filterApplicantName= data.records.pdapplicants_detials.filter(item => item.applicant_type == 1);
|
||||||
this.mainApplicantName = filterApplicantName[0].applicant_name;
|
this.mainApplicantName = filterApplicantName[0].applicant_name;
|
||||||
this.currentPDStatus = data.records.pdmaster_details.pd_status;
|
this.currentPDStatus = data.records.pdmaster_details.pd_status;
|
||||||
|
|
||||||
this.actualQuestions = data.records.counts.overall_question_count;
|
this.actualQuestions = data.records.counts.overall_question_count;
|
||||||
this.answeredQuestions = data.records.counts.overall_answered_count;
|
this.answeredQuestions = data.records.counts.overall_answered_count;
|
||||||
|
this.categoryFormButtons = data.records.template_forms;
|
||||||
|
this.pdFullDetails = data.records
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.pdMasterList="";
|
this.pdMasterList="";
|
||||||
@ -106,6 +113,7 @@ loadTemplates(startID:string){
|
|||||||
}
|
}
|
||||||
|
|
||||||
OnSelectDirectQuestions(selectedQuestions: any, categoryIndex:number,questionsIndex:number){
|
OnSelectDirectQuestions(selectedQuestions: any, categoryIndex:number,questionsIndex:number){
|
||||||
|
this.formsCategoryEnable = false;
|
||||||
this.selectedCategory=selectedQuestions;
|
this.selectedCategory=selectedQuestions;
|
||||||
this.selectedCategoryIndex=categoryIndex;
|
this.selectedCategoryIndex=categoryIndex;
|
||||||
this.selectedQuestionIndex=questionsIndex;
|
this.selectedQuestionIndex=questionsIndex;
|
||||||
@ -427,6 +435,13 @@ optionsMapItems(items) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// direct form based questions
|
||||||
|
OnSelectDirectForms(details: any) {
|
||||||
|
this.formsCategoryEnable = true;
|
||||||
|
this.selectedFormsCategory = details;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// load pd view component
|
// load pd view component
|
||||||
loadPdViewCompoent(){
|
loadPdViewCompoent(){
|
||||||
this.router.navigate([ '../../viewpd',this.startPD], { relativeTo: this.route });
|
this.router.navigate([ '../../viewpd',this.startPD], { relativeTo: this.route });
|
||||||
|
|||||||
@ -7,6 +7,7 @@ import { QcService } from './../../qc-service/qc.service';
|
|||||||
import { QcListComponent } from './../qc-list.component';
|
import { QcListComponent } from './../qc-list.component';
|
||||||
import { PdAllocationComponent } from './../../../personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component';
|
import { PdAllocationComponent } from './../../../personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component';
|
||||||
import { SmartPdAllocationComponent } from './../../../personal-discussion/manage-pd/list-pd/smart-pd-allocation/smart-pd-allocation.component';
|
import { SmartPdAllocationComponent } from './../../../personal-discussion/manage-pd/list-pd/smart-pd-allocation/smart-pd-allocation.component';
|
||||||
|
import { TelePdAllocationComponent } from './../../../personal-discussion/manage-pd/list-pd/tele-pd-allocation/tele-pd-allocation.component';
|
||||||
import { SchedulePdComponent } from './../../../personal-discussion/manage-pd/list-pd/schedule-pd/schedule-pd.component';
|
import { SchedulePdComponent } from './../../../personal-discussion/manage-pd/list-pd/schedule-pd/schedule-pd.component';
|
||||||
import { EditPdApplicantComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component';
|
import { EditPdApplicantComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component';
|
||||||
import { EditPdMasterComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component';
|
import { EditPdMasterComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component';
|
||||||
@ -108,7 +109,7 @@ export class QcViewComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
// pd allocation to
|
// pd allocation to
|
||||||
pdAllocationTo(pdData:any) {
|
pdAllocationTo(pdData:any) {
|
||||||
if(pdData.fk_pd_type != 2){
|
if(pdData.fk_pd_type == 1){
|
||||||
const dialogRef = this.dialog.open(PdAllocationComponent, {
|
const dialogRef = this.dialog.open(PdAllocationComponent, {
|
||||||
data: pdData,
|
data: pdData,
|
||||||
disableClose: true
|
disableClose: true
|
||||||
@ -131,6 +132,18 @@ export class QcViewComponent implements OnInit, OnDestroy {
|
|||||||
this.viewPdDetails(this.viewID)
|
this.viewPdDetails(this.viewID)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else if(pdData.fk_pd_type == 3){
|
||||||
|
const dialogRef = this.dialog.open(TelePdAllocationComponent, {
|
||||||
|
data: pdData,
|
||||||
|
disableClose: true,
|
||||||
|
});
|
||||||
|
dialogRef.afterClosed()
|
||||||
|
.subscribe(dataresult => {
|
||||||
|
// this.notifier.notify('success', 'Successfully allocated.!');
|
||||||
|
|
||||||
|
this.viewPdDetails(this.viewID)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@ export class QcService {
|
|||||||
editPdMasterDetails(editData:any,status:string):Observable<any>{
|
editPdMasterDetails(editData:any,status:string):Observable<any>{
|
||||||
editData.pd_status = status;
|
editData.pd_status = status;
|
||||||
editData.fk_updatedby = this._aws.getlocale();
|
editData.fk_updatedby = this._aws.getlocale();
|
||||||
editData.updatedon = currentdate;
|
// editData.updatedon = currentdate;
|
||||||
return this._http.post<any>(this.apiUrl+"updatePDMaster",{records:editData})
|
return this._http.post<any>(this.apiUrl+"updatePDMaster",{records:editData})
|
||||||
|
|
||||||
.pipe(
|
.pipe(
|
||||||
@ -86,7 +86,7 @@ export class QcService {
|
|||||||
// save pd answers
|
// save pd answers
|
||||||
savePDQuestions(saveData: any): Observable<any> {
|
savePDQuestions(saveData: any): Observable<any> {
|
||||||
saveData.createdby = this._aws.getlocale();
|
saveData.createdby = this._aws.getlocale();
|
||||||
saveData.fk_createdon = currentdate;
|
// saveData.fk_createdon = currentdate;
|
||||||
// saveData[0].fk_updatedby = this._aws.getlocale();
|
// saveData[0].fk_updatedby = this._aws.getlocale();
|
||||||
// saveData[0].updatedon = currentdate;
|
// saveData[0].updatedon = currentdate;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user