Fairoj : template changes, copyright year text change and issue fixes

This commit is contained in:
venbatechnologies@gmail.com 2020-11-06 14:39:21 +05:30
parent 073b826adb
commit b29fcf2042
13 changed files with 537 additions and 525 deletions

View File

@ -176,7 +176,7 @@ export class AwsService {
return Observable.create(observe=>{
this.shared.getCurrentUser().signOut();
localStorage.clear();
observe.next();
observe.complete();

View File

@ -63,7 +63,15 @@ export class ListPdComponent implements OnInit, OnDestroy {
// after view call all tabs component
ngAfterViewInit() {
let entity_id = localStorage.getItem('LocalSetEntity')
if(entity_id) {
this.allTabC.loadPDDetails();
}
else{
setTimeout(()=>{
this.allTabC.loadPDDetails();
},2000)
}
}
// view pd list in map view

View File

@ -35,25 +35,27 @@ export class PdStatusChangeDialogueComponent implements OnInit {
if(this.data.pd_status=='COMPLETED'){
let params: any={};
params.pd_id = this.data.pdid;
this.Loading = false;
this.CompletenessCheck = true;
this.pd.pdFormsCompletenessCheck(this.data.pdid).subscribe(result => {
if (result.dataStatus === true) {
if(result.records.length > 0){
this.completeness_message = result.msg ;
this.dialoge_subcontent = result.records;
this.Loading = false;
}
else{
this.CompletenessCheck = true;
this.Loading = false;
this.pd.getPDCompleteDetails(params).subscribe(result => {
if (result.dataStatus === true) {
this.enableAddonPD = result.records.address_count>0 ? true: false;
}
});
}
}
});
// this.pd.pdFormsCompletenessCheck(this.data.pdid).subscribe(result => {
// if (result.dataStatus === true) {
// if(result.records.length > 0){
// this.completeness_message = result.msg ;
// this.dialoge_subcontent = result.records;
// this.Loading = false;
// }
// else{
// this.CompletenessCheck = true;
// this.Loading = false;
// this.pd.getPDCompleteDetails(params).subscribe(result => {
// if (result.dataStatus === true) {
// this.enableAddonPD = result.records.address_count>0 ? true: false;
// }
// });
// }
// }
// });
}
}

View File

@ -50,7 +50,7 @@
</ion-button> -->
<button type="button" class="ml-1 mr-1 hover-icon" mat-raised-button
mat-icon-button matTooltip="Delete"
matTooltipPosition="above" *ngIf="g_i != 0" (click)="removeData(g_i,parent_ques)">
matTooltipPosition="above" *ngIf="form_group_name.get(parent_ques.group_key).length > 1" (click)="removeData(g_i,parent_ques)">
<mat-icon>delete</mat-icon>
</button>
</div>

View File

@ -28,6 +28,7 @@ export class DynamicQuestionTemplateComponent implements OnInit {
constructor(private quesService:QuesFormService,private _fb:FormBuilder) { }
ngOnInit() {
this.parent_ques = this.currFormArrayObj
if(this.parent_ques.type == '9' && this.parent_ques.answers && this.parent_ques.answers.length > 0) {
this.autoCompleteAns =this.formGroupN.get(this.parent_ques.question_key).valueChanges.pipe(
startWith(''),
@ -42,7 +43,7 @@ export class DynamicQuestionTemplateComponent implements OnInit {
this.parent_ques = this.currFormArrayObj
if(this.json_answers!=null && this.json_answers != undefined && this.json_answers) {
// console.log("ddddddddddddddd",this.json_answers[this.parent_ques.question_key],this.parent_ques)
setTimeout(()=>{
// setTimeout(()=>{
console.clear()
console.log(this.json_answers,this.parent_ques.question_key)
if(this.json_answers!=null && this.json_answers != undefined && this.json_answers && !this.group_key) {
@ -80,14 +81,15 @@ export class DynamicQuestionTemplateComponent implements OnInit {
// this.onChangeProperty({value:this.json_answers[this.parent_ques.question_key]},this.parent_ques,'')
// },1000)
// this.formGroupN.patchValue(this.json_answers)
})
// })
// this.formGroupN.get(this.parent_ques.question_key).patchValue(this.json_answers[this.parent_ques.question_key])
// this.onChangeProperty({value:this.json_answers[this.parent_ques.question_key]},this.parent_ques,'')
setTimeout(()=>{
this.json_answers = null
},700)
// setTimeout(()=>{
// this.json_answers = null
// },700)
}
// console.log(this.parent_ques,this.formGroupN,this.whole_json ,this.json_answers);
// debugger;
@ -160,7 +162,7 @@ export class DynamicQuestionTemplateComponent implements OnInit {
console.log(sec_control);
// this.fileredSearchValue=[]
if( sec_control.answers!= null && sec_control.answers.length > 0){
if(sec_control && sec_control.answers!= null && sec_control.answers.length > 0){
// this.creatSubField(sec_control,event.value)
}
//FOR API CALLS

View File

@ -17,7 +17,7 @@
</mat-card-header>
<mat-card-content style="max-height:100% !important;">
<div fxLayout="row wrap" class="child_mat_card">
<mat-card fxFlex.xs="80" fxFlex.sm="45" fxFlex.md="32" fxFlex.lg="32" fxFlex.xl="33" *ngFor="let formButton of categoryFormButtons;let quesIndex=index" [ngStyle]="{'background-color':formButton.is_answered == '0' ? '#fff' : '#4caf50' ,'color':'#fff'}" (click)="OnSelectDirectForms(formButton)">
<mat-card fxFlex.xs="100" fxFlex.sm="45" fxFlex.md="32" fxFlex.lg="32" fxFlex.xl="33" *ngFor="let formButton of categoryFormButtons;let quesIndex=index" [ngStyle]="{'background-color':formButton.is_answered == '0' ? '#fff' : '#4caf50' ,'color':'#fff'}" (click)="OnSelectDirectForms(formButton)">
<mat-card-header>
<span style="padding: 17px 14px 3px 15px !important;border-radius: 0px 0px 0px 15px!important;width: 50px !important;" class="menu-badge mat-purple ng-star-inserted" align="center">{{quesIndex+1}}</span>
<div fxFlex="100" align="left" style="padding:15px !important;">

View File

@ -109,12 +109,12 @@ export class StartPdComponent implements OnInit, OnDestroy {
// this.categoryList=data.records.question_answers;
let filterApplicantName= data.records.pdapplicants_detials.filter(item => item.applicant_type == 1);
this.mainApplicantName = filterApplicantName.length > 0 ? filterApplicantName[0].applicant_name : '';
this.currentPDStatus = data.records.pdmaster_details.pd_status=='INPROGRESS' ? true : data.records.pdmaster_details.pd_status=='SCHEDULED' ? true :data.records.pdmaster_details.pd_status=='ALLOCATED' ? true : false;
this.currentPDStatus = data.records.pdmaster_details[0].pd_status=='INPROGRESS' ? true : data.records.pdmaster_details[0].pd_status=='SCHEDULED' ? true :data.records.pdmaster_details[0].pd_status=='ALLOCATED' ? true : false;
// this.categoryFormButtons = Object.keys(data.records.template_forms).map((item)=>data.records.template_forms[item]).filter(item=>item.isAnswerable===true);
this.categoryFormButtons = data.records.template_details
// this.categoryFormButtons = this.categoryFormButtons.filter(item=>item.isAnswerable===true);
this.actualQuestions = this.categoryFormButtons.length;
let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.isAnswered===true);
let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.is_answered==='1');
this.answeredQuestions = getAnsweredFormsCount.length;
this.pdFullDetails = data.records;
// VENDOR FORM ANSWER FETCH STATUS START(SMART PD ONLY)
@ -155,7 +155,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
data: { pdid: this.startPD, pd_status: status ,random_string:this.randomString,pd_type:this.pdMasterList.fk_pd_type },
disableClose: true,
minWidth:'30%',
maxWidth:'40%',
// maxWidth:'40%',
});
dialogRef.afterClosed()
.subscribe(dataresult => {

View File

@ -300,7 +300,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
data: { pdid: pdDetails.assigned_pd, pd_status: this.pdStatusCheck.INPROGRESS,random_string:this.pdMasterData[0].random_string },
disableClose: true,
minWidth: '30%',
maxWidth: '40%',
// maxWidth: '40%',
});
dialogRef.afterClosed()
.subscribe(dataresult => {

View File

@ -42,7 +42,7 @@
<footer class="page-footer">
<!-- © Copyright -->
<div class="footer-copyright text-center">&#169; 2018
<div class="footer-copyright text-center">&#169; 2020
<a href="http://www.sineedge.com" target="_blank"> SineEdge Consulting Pvt Ltd. </a> All rights are reserved
</div>
<!-- © Copyright -->

View File

@ -0,0 +1,271 @@
{
"section_id":"17",
"section_name":"Neighbourhood Details",
"onsubmit":[],
"questions":[
{
"question":[
{
"question":"Neighbour name",
"question_key":"neighbourhood_name",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"[A-Za-z ]*",
"message":"alphabets only ",
"value":null
}
]
},
{
"question":"Do you know about the applicant or their business?",
"question_key":"do_know",
"type":"3",
"api_properties":null,
"answers":[
{
"answer":"Yes",
"answer_id":"yes"
},
{
"answer":"No",
"answer_id":"no"
}
],
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"As per you how long has this business been in operation",
"question_key":"know_business_operation",
"place_holder":"Enter the text",
"type":"2",
"api_properties":null,
"answers":[
{
"answer":"Know",
"answer_id":"yes"
},
{
"answer":"Do not know",
"answer_id":"no"
}
],
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties": [ {
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"know_business_operation",
"expression":"(String('know_business_operation') === String('yes'))",
"value_keys":[
"know_business_operation"
],
"questions":[
{
"question":"Years",
"question_key":"how_long_do_know_in_year",
"type":"1",
"field_width":"100",
"field_type":"num",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"know_business_operation",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
} ,
{
"question":"Months",
"question_key":"how_long_do_know_in_month",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"know_business_operation",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
] } ] }]
},
{
"question":"Who is the owner of organisation?",
"question_key":"know_organisation_owner",
"type":"2",
"api_properties":null,
"answers":[
{
"answer":"Know",
"answer_id":"yes"
},
{
"answer":"Do not know",
"answer_id":"no"
}
],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties": [ {
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"know_organisation_owner",
"expression":"(String('know_organisation_owner') === String('yes'))",
"value_keys":[
"know_organisation_owner"
],
"questions":[
{
"question":"Who is the owner of the organisation",
"question_key":"organisation_owner",
"type":"4",
"field_width":"100",
"field_type":"num",
"api_properties": {
"purpose":"answer_options_local",
"master_name":"pd_applicants",
"fields":["pd_co_applicant_id","applicant_name"]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"know_organisation_owner",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
] } ] }]
}
],
"is_repeatable":"1",
"group_title":"Neighbourhood Details",
"group_key":"neighbourhood_list"
},
{
"question":"Status of the neighbour check as per PD officer",
"question_key":"neighbourhood_status",
"type":"3",
"api_properties":null,
"answers":[
{
"answer":"Select",
"answer_id":""
},
{
"answer":"Positive",
"answer_id":"Positive"
},
{
"answer":"Negative",
"answer_id":"Negative"
},
{
"answer":"Could Not Verify",
"answer_id":"Could Not Verify"
}
],
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Remarks",
"question_key":"neighbourhood_remarks",
"type":"7",
"placeholder":"Enter the remarks",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
}
]
}

View File

@ -1,13 +1,13 @@
{
"section_id":"18",
"section_name":"Neighbourhood Details",
"section_name":"Credit manager specific queries",
"onsubmit":[],
"questions":[
{
"question":[
{
"question":"Neighbour name",
"question_key":"neighbourhood_name",
"question":"Question",
"question_key":"question",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
@ -22,31 +22,16 @@
"validator":"Validators.required",
"message":"Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"[A-Za-z ]*",
"message":"alphabets only ",
"value":null
}
]
},
{
"question":"Do you know about the applicant or their business?",
"question_key":"do_know",
"type":"3",
"question":"Answer",
"question_key":"answer",
"place_holder":"Enter the answer here",
"type":"7",
"api_properties":null,
"answers":[
{
"answer":"Yes",
"answer_id":"yes"
},
{
"answer":"No",
"answer_id":"no"
}
],
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
@ -58,214 +43,11 @@
"value":null
}
]
},
{
"question":"As per you how long has this business been in operation",
"question_key":"know_business_operation",
"place_holder":"Enter the text",
"type":"2",
"api_properties":null,
"answers":[
{
"answer":"Know",
"answer_id":"yes"
},
{
"answer":"Do not know",
"answer_id":"no"
}
],
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties": [ {
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"know_business_operation",
"expression":"(String('know_business_operation') === String('yes'))",
"value_keys":[
"know_business_operation"
],
"questions":[
{
"question":"Years",
"question_key":"how_long_do_know_in_year",
"type":"1",
"field_width":"100",
"field_type":"num",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"know_business_operation",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
} ,
{
"question":"Months",
"question_key":"how_long_do_know_in_month",
"type":"1",
"field_type":"num",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"know_business_operation",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
] } ] }]
},
{
"question":"Who is the owner of organisation?",
"question_key":"know_organisation_owner",
"type":"2",
"api_properties":null,
"answers":[
{
"answer":"Know",
"answer_id":"yes"
},
{
"answer":"Do not know",
"answer_id":"no"
}
],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties": [ {
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"know_organisation_owner",
"expression":"(String('know_organisation_owner') === String('yes'))",
"value_keys":[
"know_organisation_owner"
],
"questions":[
{
"question":"Who is the owner of the organisation",
"question_key":"organisation_owner",
"type":"4",
"field_width":"100",
"field_type":"num",
"api_properties": {
"purpose":"answer_options_local",
"master_name":"pd_applicants",
"fields":["pd_co_applicant_id","applicant_name"]
},
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"know_organisation_owner",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
] } ] }]
}
],
"is_repeatable":"1",
"group_title":"Neighbourhood Details",
"group_key":"neighbourhood_list"
},
{
"question":"Status of the neighbour check as per PD officer",
"question_key":"neighbourhood_status",
"type":"3",
"api_properties":null,
"answers":[
{
"answer":"Select",
"answer_id":""
},
{
"answer":"Positive",
"answer_id":"Positive"
},
{
"answer":"Negative",
"answer_id":"Negative"
},
{
"answer":"Could Not Verify",
"answer_id":"Could Not Verify"
}
],
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Remarks",
"question_key":"neighbourhood_remarks",
"type":"7",
"placeholder":"Enter the remarks",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
}
"group_title":"Query",
"group_key":"cm_queries"
}
]
}

View File

@ -1,53 +1,215 @@
{
{
"section_id":"19",
"section_name":"Credit manager specific queries",
"onsubmit":[],
"questions":[
{
"question":[
{
"question":"Question",
"question_key":"question",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Answer",
"question_key":"answer",
"place_holder":"Enter the answer here",
"type":"7",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
"section_name":"Final remarks",
"onsubmit":null,
"questions":[
{
"question":"Customer Behaviour",
"question_key":"customer_behaviour",
"type":"3",
"field_width":"45",
"answers":null,
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"CUSTOMERBEHAVIOUR"
},
"fields":[
"customer_behaviour_id",
"description"
]
},
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"customer_behaviour",
"expression":"(String('customer_behaviour') == String('1'))",
"value_keys":[
"customer_behaviour"
],
"questions":[
{ "question":"Specify Customer behaviour",
"question_key":"customer_behaviour_other",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"customer_behaviour",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
} ] }
]}] ,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Is the location of the business suited to the nature of the business provided?",
"question_key":"business_location_suited",
"type":"3",
"field_width":"45",
"onchange_properties":null,
"api_properties":null,
"answers":[
{
"answer":"Well Suited",
"answer_id":"Well Suited"
},
{
"answer":"Fairly suited",
"answer_id":"Fairly suited"
},
{
"answer":"Not suited",
"answer_id":"Not suited"
}
],
"is_repeatable":"1",
"group_title":"Query",
"group_key":"cm_queries"
}
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"PD officer recommendation (Positive/negative/ refer to credit)",
"question_key":"pd_officer_recommendation",
"type":"3",
"field_width":"45",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"PDOFFICERRECOMMENDATIONS"
},
"fields":[
"pdofficer_recommendation_id",
"pdofficer_recommendation"
]
},
"answers":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"pd_officer_recommendation",
"expression":"(String('pd_officer_recommendation') == String('1'))",
"value_keys":[
"pd_officer_recommendation"
],
"questions":[
{ "question":"Specify PD Officer Recommendation",
"question_key":"pd_officer_recommendation_other",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"pd_officer_recommendation",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
} ] } ,
{
"insert_index":"pd_officer_recommendation",
"expression":"(String('pd_officer_recommendation') != String('1')) && (String('pdofficer_recommendation') != String(''))",
"value_keys":[
"pd_officer_recommendation"
],
"questions":[
{
"question":[{
"question":"Reasons for marking PD status as Positive/negative/ refer to credit",
"question_key":"reason",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"pd_officer_recommendation",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
],
"is_repeatable":"1",
"group_title":"Remarks",
"group_key":"pd_officer_recommendation_remarks"
} ] }
] }],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Common Remarks",
"question_key":"final_form_remarks",
"place_holder":"Enter the remarks here",
"type":"7",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
}
]
}
}

View File

@ -1,215 +0,0 @@
{
"section_id":"20",
"section_name":"Final remarks",
"onsubmit":null,
"questions":[
{
"question":"Customer Behaviour",
"question_key":"customer_behaviour",
"type":"3",
"field_width":"45",
"answers":null,
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"CUSTOMERBEHAVIOUR"
},
"fields":[
"customer_behaviour_id",
"description"
]
},
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"customer_behaviour",
"expression":"(String('customer_behaviour') == String('1'))",
"value_keys":[
"customer_behaviour"
],
"questions":[
{ "question":"Specify Customer behaviour",
"question_key":"customer_behaviour_other",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"customer_behaviour",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
} ] }
]}] ,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Is the location of the business suited to the nature of the business provided?",
"question_key":"business_location_suited",
"type":"3",
"field_width":"45",
"onchange_properties":null,
"api_properties":null,
"answers":[
{
"answer":"Well Suited",
"answer_id":"Well Suited"
},
{
"answer":"Fairly suited",
"answer_id":"Fairly suited"
},
{
"answer":"Not suited",
"answer_id":"Not suited"
}
],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"PD officer recommendation (Positive/negative/ refer to credit)",
"question_key":"pd_officer_recommendation",
"type":"3",
"field_width":"45",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"PDOFFICERRECOMMENDATIONS"
},
"fields":[
"pdofficer_recommendation_id",
"pdofficer_recommendation"
]
},
"answers":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"pd_officer_recommendation",
"expression":"(String('pd_officer_recommendation') == String('1'))",
"value_keys":[
"pd_officer_recommendation"
],
"questions":[
{ "question":"Specify PD Officer Recommendation",
"question_key":"pd_officer_recommendation_other",
"type":"1",
"field_width":"45",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"pd_officer_recommendation",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
} ] } ,
{
"insert_index":"pd_officer_recommendation",
"expression":"(String('pd_officer_recommendation') != String('1')) && (String('pdofficer_recommendation') != String(''))",
"value_keys":[
"pd_officer_recommendation"
],
"questions":[
{
"question":[{
"question":"Reasons for marking PD status as Positive/negative/ refer to credit",
"question_key":"reason",
"type":"1",
"field_width":"100",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"is_subfield":"1",
"parent_question_key":"pd_officer_recommendation",
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field required",
"value":null
}
]
}
],
"is_repeatable":"1",
"group_title":"Remarks",
"group_key":"pd_officer_recommendation_remarks"
} ] }
] }],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Common Remarks",
"question_key":"final_form_remarks",
"place_holder":"Enter the remarks here",
"type":"7",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
}
]
}