start pd dynamic from list load : kdk

This commit is contained in:
dineshkumarkannan 2018-11-14 17:32:52 +05:30
parent 671fb8235a
commit 884112a623

View File

@ -46,69 +46,69 @@ export class StartPdComponent implements OnInit, OnDestroy {
// category static form buttons // category static form buttons
categoryFormButtons: any = [ // categoryFormButtons: any = [
{ // {
"form_id": 1, // "form_id": 1,
"form_name": "Supplier Details" // "form_name": "Supplier Details"
}, // },
{ // {
"form_id": 2, // "form_id": 2,
"form_name": "Client Details", // "form_name": "Client Details",
}, // },
{ // {
"form_id": 3, // "form_id": 3,
"form_name": "Personal Details", // "form_name": "Personal Details",
}, // },
{ // {
"form_id":4, // "form_id":4,
"form_name":"Asset Details", // "form_name":"Asset Details",
}, // },
{ // {
"form_id": 5, // "form_id": 5,
"form_name": "Address" // "form_name": "Address"
}, // },
{ // {
"form_id": 6, // "form_id": 6,
"form_name": "Family", // "form_name": "Family",
}, // },
{ // {
"form_id": 7, // "form_id": 7,
"form_name": "Banking", // "form_name": "Banking",
}, // },
{ // {
"form_id": 8, // "form_id": 8,
"form_name": "Current Loan", // "form_name": "Current Loan",
}, // },
{ // {
"form_id": 9, // "form_id": 9,
"form_name": "Other Income", // "form_name": "Other Income",
}, // },
{ // {
"form_id": 10, // "form_id": 10,
"form_name": "Loan Details", // "form_name": "Loan Details",
}, // },
{ // {
"form_id": 11, // "form_id": 11,
"form_name": "Stock", // "form_name": "Stock",
}, // },
{ // {
"form_id": 12, // "form_id": 12,
"form_name": "Employmet Info", // "form_name": "Employmet Info",
}, // },
{ // {
"form_id": 13, // "form_id": 13,
"form_name": "Business Info", // "form_name": "Business Info",
}, // },
{ // {
"form_id": 14, // "form_id": 14,
"form_name": "Financial Info", // "form_name": "Financial Info",
}, // },
]; // ];
pdFullDetails:any=[]; pdFullDetails:any=[];
// category static form buttons // category static form buttons
// categoryFormButtons: any; categoryFormButtons: any;
// = [ // = [
// { // {
// "form_id": 1, // "form_id": 1,
@ -293,6 +293,7 @@ pdFullDetails:any=[];
if (data.status == 200) { if (data.status == 200) {
this.pdMasterList=data.records.pdmaster_details; this.pdMasterList=data.records.pdmaster_details;
this.categoryList=data.records.question_answers; this.categoryList=data.records.question_answers;
this.categoryFormButtons = data.records.template_forms;
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;