FIX_build error : ps
This commit is contained in:
parent
3b4a2327d9
commit
64f30ecf28
@ -72,90 +72,83 @@ export class FormComponent implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
//this.getSectionData()
|
//this.getSectionData()
|
||||||
if(this.pd_all_details.form_id=='5' && (this.pd_all_details.pdmaster_details.product_abbr=='LFMP' || this.pd_all_details.pdmaster_details.product_abbr=='MLAP')
|
if(this.pd_all_details.form_id=='5' && (this.pd_all_details.pdmaster_details.product_abbr=='LFMP' || this.pd_all_details.pdmaster_details.product_abbr=='MLAP'))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
let params = {"fk_pd_id":this.pd_all_details.pdmaster_details.pd_id,"fk_form_id":this.pd_all_details.form_id};
|
||||||
|
|
||||||
|
this.pdTriggerService.getSMCCreditPDSectionData(params).subscribe(result=>{
|
||||||
let params = {"fk_pd_id":this.pd_all_details.pdmaster_details.pd_id,"fk_form_id":this.pd_all_details.form_id}
|
console.log(result);
|
||||||
|
if(result['dataStatus']) {
|
||||||
this.pdTriggerService.getSMCCreditPDSectionData(params).subscribe(result=>{
|
|
||||||
console.log(result)
|
let records = result['records'];
|
||||||
if(result['dataStatus']) {
|
let formValues:any ={};
|
||||||
|
|
||||||
let records = result['records']
|
|
||||||
let formValues:any ={};
|
|
||||||
|
|
||||||
if(records && records.hasOwnProperty('json') && records.json) {
|
|
||||||
formValues = JSON.parse(records.json)
|
|
||||||
console.log(formValues)
|
|
||||||
if(formValues.key_stakeholders[0].stakeholder_length != '0')
|
|
||||||
{
|
|
||||||
let controlcount=formValues.key_stakeholders[0].stakeholder_length;
|
|
||||||
this.quesService.ques_length(controlcount)
|
|
||||||
this.loadTemplate()
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
let controlcount1='3';
|
|
||||||
this.quesService.ques_length(controlcount1)
|
|
||||||
this.loadTemplate()
|
|
||||||
}
|
|
||||||
// if(formValues.key_stakeholders[0].stakeholder_length=="undefined")
|
|
||||||
// {
|
|
||||||
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
let params = {"pd_id":this.pd_all_details.pdmaster_details.pd_id,"random_string":this.pd_all_details.pdmaster_details.random_string,"form_id":this.pd_all_details.form_id}
|
if(records && records.hasOwnProperty('json') && records.json) {
|
||||||
this.pdTriggerService.loadDataFromExcel(params).subscribe(result=>{
|
formValues = JSON.parse(records.json);
|
||||||
if(result['dataStatus']) {
|
console.log(formValues);
|
||||||
let records = result['records']
|
if(formValues.key_stakeholders[0].stakeholder_length != '0')
|
||||||
let formValues1:any ={};
|
{
|
||||||
if(records ) {
|
let controlcount=formValues.key_stakeholders[0].stakeholder_length;
|
||||||
formValues1 = records
|
this.quesService.ques_length(controlcount);
|
||||||
if(formValues1.key_stakeholders[0].stakeholder_length != 0)
|
this.loadTemplate();
|
||||||
{
|
}else{
|
||||||
let controlcount=formValues1.key_stakeholders[0].stakeholder_length;
|
let controlcount1='3';
|
||||||
this.quesService.ques_length(controlcount)
|
this.quesService.ques_length(controlcount1);
|
||||||
this.loadTemplate()
|
this.loadTemplate();
|
||||||
}
|
}
|
||||||
else
|
// if(formValues.key_stakeholders[0].stakeholder_length=="undefined"){}
|
||||||
{
|
|
||||||
let controlcount1='3';
|
}
|
||||||
this.quesService.ques_length(controlcount1)
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
let params = {"pd_id":this.pd_all_details.pdmaster_details.pd_id,"random_string":this.pd_all_details.pdmaster_details.random_string,"form_id":this.pd_all_details.form_id}
|
||||||
|
this.pdTriggerService.loadDataFromExcel(params).subscribe(result=>{
|
||||||
|
if(result['dataStatus']) {
|
||||||
|
let records = result['records']
|
||||||
|
let formValues1:any ={};
|
||||||
|
if(records) {
|
||||||
|
formValues1 = records
|
||||||
|
if(formValues1.key_stakeholders[0].stakeholder_length != 0)
|
||||||
|
{
|
||||||
|
let controlcount=formValues1.key_stakeholders[0].stakeholder_length;
|
||||||
|
this.quesService.ques_length(controlcount)
|
||||||
this.loadTemplate()
|
this.loadTemplate()
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
let controlcount1='3';
|
||||||
|
this.quesService.ques_length(controlcount1)
|
||||||
|
this.loadTemplate()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
|
|
||||||
if(this.pd_all_details.is_answered == '1') {
|
if(this.pd_all_details.is_answered == '1') {
|
||||||
this.getSectionData()
|
this.getSectionData()
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.getExcelData();
|
this.getExcelData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}else{
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
this.loadTemplate()
|
this.loadTemplate()
|
||||||
if(this.pd_all_details.is_answered == '1') {
|
if(this.pd_all_details.is_answered == '1') {
|
||||||
this.getSectionData()
|
this.getSectionData()
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.getExcelData();
|
this.getExcelData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loadTemplate() {
|
loadTemplate() {
|
||||||
|
|
||||||
console.log(this.pd_all_details);
|
console.log(this.pd_all_details);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user