console removed : ps
This commit is contained in:
parent
218d9d3a1a
commit
5600fa463e
@ -182,10 +182,10 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
//get city list details based on state id
|
//get city list details based on state id
|
||||||
getCityList(stateID:string){
|
getCityList(stateID:string){
|
||||||
console.log('getCityList',stateID);
|
// console.log('getCityList',stateID);
|
||||||
this._pd.getStateWiseCities(stateID).subscribe(data=>{
|
this._pd.getStateWiseCities(stateID).subscribe(data=>{
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
this.cityList = data.records.cities;
|
this.cityList = data.records.cities;
|
||||||
this.pincodeList = data.records.pincode;
|
this.pincodeList = data.records.pincode;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,7 +87,7 @@ export class EditPdApplicantComponent implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
createItem(listData): FormGroup {
|
createItem(listData): FormGroup {
|
||||||
console.log('listData',listData);
|
// console.log('listData',listData);
|
||||||
if(listData){
|
if(listData){
|
||||||
let stdcode;
|
let stdcode;
|
||||||
let landline;
|
let landline;
|
||||||
|
|||||||
@ -133,8 +133,8 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadFormData() {
|
loadFormData() {
|
||||||
console.log('this.data.record',this.data.records);
|
// console.log('this.data.record',this.data.records);
|
||||||
console.log('this.reocrds',this.data.records.pincode_id);
|
// console.log('this.reocrds',this.data.records.pincode_id);
|
||||||
let stdcode;
|
let stdcode;
|
||||||
let landline;
|
let landline;
|
||||||
if(this.data.records.pd_contact_landline){
|
if(this.data.records.pd_contact_landline){
|
||||||
@ -193,10 +193,10 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
// }
|
// }
|
||||||
//get city list details based on state id
|
//get city list details based on state id
|
||||||
getCityList(stateID:string){
|
getCityList(stateID:string){
|
||||||
console.log('getCityList',stateID);
|
// console.log('getCityList',stateID);
|
||||||
this._pd.getStateWiseCities(stateID).subscribe(data=>{
|
this._pd.getStateWiseCities(stateID).subscribe(data=>{
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
this.cityList = data.records.cities;
|
this.cityList = data.records.cities;
|
||||||
this.pincodeList = data.records.pincode;
|
this.pincodeList = data.records.pincode;
|
||||||
}
|
}
|
||||||
@ -211,7 +211,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
//trigger pd
|
//trigger pd
|
||||||
triggerPD(formValue: any, status:any){
|
triggerPD(formValue: any, status:any){
|
||||||
console.log('triggerPD',formValue);
|
// console.log('triggerPD',formValue);
|
||||||
// this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]);
|
// this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]);
|
||||||
// this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity();
|
// this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity();
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
submitPdDetails(formValue: any, status:any) {
|
submitPdDetails(formValue: any, status:any) {
|
||||||
// let updateStatus = this.currentPDStatus == this.pdStatusCheck.DRAFT ? status : this.currentPDStatus == this.pdStatusCheck.TRIGGERED ? status : this.currentPDStatus;
|
// let updateStatus = this.currentPDStatus == this.pdStatusCheck.DRAFT ? status : this.currentPDStatus == this.pdStatusCheck.TRIGGERED ? status : this.currentPDStatus;
|
||||||
let updateStatus = this.currentPDStatus;
|
let updateStatus = this.currentPDStatus;
|
||||||
console.log(this._EditPDtriggerForm.value);
|
// console.log(this._EditPDtriggerForm.value);
|
||||||
if(status != 1){
|
if(status != 1){
|
||||||
if(this._EditPDtriggerForm.invalid) {
|
if(this._EditPDtriggerForm.invalid) {
|
||||||
this.validateAllFormFields(this._EditPDtriggerForm);
|
this.validateAllFormFields(this._EditPDtriggerForm);
|
||||||
|
|||||||
@ -830,9 +830,6 @@ export class AssetsInfoComponent implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
setRequiredValidation(value,item,flag) {
|
setRequiredValidation(value,item,flag) {
|
||||||
console.log(item);
|
|
||||||
console.log(value);
|
|
||||||
console.log(flag);
|
|
||||||
|
|
||||||
if(flag == 1){
|
if(flag == 1){
|
||||||
value==1
|
value==1
|
||||||
|
|||||||
@ -132,8 +132,6 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
this.salaryField = this.pd_cus_segment.substring(0,2) == 'SE' ? false : true ;
|
this.salaryField = this.pd_cus_segment.substring(0,2) == 'SE' ? false : true ;
|
||||||
// this.pd_cus_segment = this.pd_all_details.pdmaster_details.customer_segment_abbr.toUpperCase();
|
// this.pd_cus_segment = this.pd_all_details.pdmaster_details.customer_segment_abbr.toUpperCase();
|
||||||
// // console.log("(0,3): " + this.pd_cus_segment.substring(0,3));
|
// // console.log("(0,3): " + this.pd_cus_segment.substring(0,3));
|
||||||
// // console.log(this.pd_all_details.pdmaster_details);
|
|
||||||
// // console.log(this.pd_cus_segment);
|
|
||||||
// this.pd_cus_segment = this.pd_cus_segment.substring(0,3);
|
// this.pd_cus_segment = this.pd_cus_segment.substring(0,3);
|
||||||
// this.applicants = this.pd_all_details.pdapplicants_detials;
|
// this.applicants = this.pd_all_details.pdapplicants_detials;
|
||||||
|
|
||||||
@ -141,7 +139,6 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
params.pd_id = this.pdid;
|
params.pd_id = this.pdid;
|
||||||
params.pd_form_id = '7';
|
params.pd_form_id = '7';
|
||||||
this._pd.retriveForm(params).subscribe(data => {
|
this._pd.retriveForm(params).subscribe(data => {
|
||||||
// console.log('data', data);
|
|
||||||
const control = <FormArray>this.bankingForm.controls['itemRows'];
|
const control = <FormArray>this.bankingForm.controls['itemRows'];
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
this.bankingForm.controls.banking_form_remark.setValue(data.records.banking_form_remark);
|
this.bankingForm.controls.banking_form_remark.setValue(data.records.banking_form_remark);
|
||||||
@ -228,14 +225,11 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deleteBankdetails(index: number) {
|
deleteBankdetails(index: number) {
|
||||||
// console.log('index value -', index);
|
|
||||||
const control = <FormArray>this.bankingForm.controls['itemRows'];
|
const control = <FormArray>this.bankingForm.controls['itemRows'];
|
||||||
control.removeAt(index);
|
control.removeAt(index);
|
||||||
}
|
}
|
||||||
setRequiredValidation(value,item,flag) {
|
setRequiredValidation(value,item,flag) {
|
||||||
console.log(item);
|
|
||||||
console.log(value);
|
|
||||||
console.log(flag);
|
|
||||||
|
|
||||||
if(flag == 1){
|
if(flag == 1){
|
||||||
value==0
|
value==0
|
||||||
@ -263,7 +257,7 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
records.banking_form_remark = this.bankingForm.controls.banking_form_remark.value;
|
records.banking_form_remark = this.bankingForm.controls.banking_form_remark.value;
|
||||||
// records.fk_createdby = '252';
|
// records.fk_createdby = '252';
|
||||||
records.banking_details = this.bankingForm.controls['itemRows'].value;
|
records.banking_details = this.bankingForm.controls['itemRows'].value;
|
||||||
// console.log('data', records);
|
|
||||||
this._pd.saveForm(records).subscribe(data => {
|
this._pd.saveForm(records).subscribe(data => {
|
||||||
if(data.status == 200) {
|
if(data.status == 200) {
|
||||||
this.notifier.notify('success', 'Saved Successfully.');
|
this.notifier.notify('success', 'Saved Successfully.');
|
||||||
@ -338,7 +332,6 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
/** To Convert Month into Year */
|
/** To Convert Month into Year */
|
||||||
ConvertMonthintoYear(itemrow,e){
|
ConvertMonthintoYear(itemrow,e){
|
||||||
//console.log(itemrow);
|
|
||||||
|
|
||||||
let year = itemrow.controls.vintage_year.value;
|
let year = itemrow.controls.vintage_year.value;
|
||||||
|
|
||||||
|
|||||||
@ -146,7 +146,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
|||||||
|
|
||||||
this.pdTrigerService.retriveForm(params).subscribe(data => {
|
this.pdTrigerService.retriveForm(params).subscribe(data => {
|
||||||
if(data.status == 200) {
|
if(data.status == 200) {
|
||||||
// console.log(data.records);
|
|
||||||
|
|
||||||
this.addressLabel = '';
|
this.addressLabel = '';
|
||||||
|
|
||||||
@ -215,18 +215,18 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
|||||||
this.pdTrigerService.getAllMasterDatas('ADDRESSTYPE').subscribe(
|
this.pdTrigerService.getAllMasterDatas('ADDRESSTYPE').subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.m_address_type = data.records.filter(data => data.isactive == 1);
|
this.m_address_type = data.records.filter(data => data.isactive == 1);
|
||||||
// console.log(this.m_address_type);
|
|
||||||
// if(this.CustSegAbbr == 'SENP' || this.CustSegAbbr == 'SEP'){
|
// if(this.CustSegAbbr == 'SENP' || this.CustSegAbbr == 'SEP'){
|
||||||
|
|
||||||
// // console.log('whole',FilteredAddressType);
|
|
||||||
// let index1 = this.m_address_type.map(data => data.address_type).indexOf("Residence");
|
// let index1 = this.m_address_type.map(data => data.address_type).indexOf("Residence");
|
||||||
// this.m_address_type.splice(index1, 1);
|
// this.m_address_type.splice(index1, 1);
|
||||||
// // console.log('FirstOne',FilteredAddressType);
|
|
||||||
// let index2 = this.m_address_type.map(data => data.address_type).indexOf("Residence cum Office");
|
// let index2 = this.m_address_type.map(data => data.address_type).indexOf("Residence cum Office");
|
||||||
// this.m_address_type.splice(index2, 1);
|
// this.m_address_type.splice(index2, 1);
|
||||||
// // console.log('SecondOne',FilteredAddressType);
|
|
||||||
// }
|
// }
|
||||||
// console.log(this.m_address_type);
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,15 +365,11 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
|||||||
|
|
||||||
// const control = (<FormArray>this._businessAssetsQuesFrom.controls['business_assets_details']).at(i).get('business_details') as FormArray ;
|
// const control = (<FormArray>this._businessAssetsQuesFrom.controls['business_assets_details']).at(i).get('business_details') as FormArray ;
|
||||||
if(e == "owned"){
|
if(e == "owned"){
|
||||||
// console.log('e o',e);
|
|
||||||
// console.log('s o',s);
|
|
||||||
// console.log('i o',i);
|
|
||||||
this.PropertyOwnedType[i] = true;
|
this.PropertyOwnedType[i] = true;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// console.log('e r',e);
|
|
||||||
// console.log('s r',s);
|
|
||||||
// console.log('i r',i);
|
|
||||||
this.PropertyOwnedType[i] = false;
|
this.PropertyOwnedType[i] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -703,7 +699,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setBusinessAssetsDetailsWithData(assets_details_mode: any, datas: any, i: any): void {
|
setBusinessAssetsDetailsWithData(assets_details_mode: any, datas: any, i: any): void {
|
||||||
console.log('datas',datas);
|
|
||||||
let val = i;
|
let val = i;
|
||||||
let data = datas;
|
let data = datas;
|
||||||
|
|
||||||
@ -981,9 +977,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setRequiredValidation(value,item,flag) {
|
setRequiredValidation(value,item,flag) {
|
||||||
console.log(item);
|
|
||||||
console.log(value);
|
|
||||||
console.log(flag);
|
|
||||||
if(flag == 1){
|
if(flag == 1){
|
||||||
if(value == 'yes')
|
if(value == 'yes')
|
||||||
{ this._businessAssetsQuesFrom.controls.business_years.setValidators([Validators.required]) ;
|
{ this._businessAssetsQuesFrom.controls.business_years.setValidators([Validators.required]) ;
|
||||||
|
|||||||
@ -126,7 +126,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
|
|||||||
params.pd_form_id = '21';
|
params.pd_form_id = '21';
|
||||||
params.company_id = this.company_id;
|
params.company_id = this.company_id;
|
||||||
this._pd.retriveForm(params).subscribe(data => {
|
this._pd.retriveForm(params).subscribe(data => {
|
||||||
// console.log('data', data);
|
|
||||||
const control = <FormArray>this.bankingForm.controls['itemRows'];
|
const control = <FormArray>this.bankingForm.controls['itemRows'];
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
this.bankingForm.controls.banking_form_remark.setValue(data.records.banking_form_remark);
|
this.bankingForm.controls.banking_form_remark.setValue(data.records.banking_form_remark);
|
||||||
@ -213,7 +213,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deleteBankdetails(index: number) {
|
deleteBankdetails(index: number) {
|
||||||
// console.log('index value -', index);
|
|
||||||
const control = <FormArray>this.bankingForm.controls['itemRows'];
|
const control = <FormArray>this.bankingForm.controls['itemRows'];
|
||||||
control.removeAt(index);
|
control.removeAt(index);
|
||||||
}
|
}
|
||||||
@ -229,7 +229,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
|
|||||||
records.company_id = this.company_id; records.banking_form_remark = this.bankingForm.controls.banking_form_remark.value;
|
records.company_id = this.company_id; records.banking_form_remark = this.bankingForm.controls.banking_form_remark.value;
|
||||||
// records.fk_createdby = '252';
|
// records.fk_createdby = '252';
|
||||||
records.banking_details = this.bankingForm.controls['itemRows'].value;
|
records.banking_details = this.bankingForm.controls['itemRows'].value;
|
||||||
// console.log('data', records);
|
|
||||||
this._pd.saveForm(records).subscribe(data => {
|
this._pd.saveForm(records).subscribe(data => {
|
||||||
if(data.status == 200) {
|
if(data.status == 200) {
|
||||||
this.notifier.notify('success', 'Saved Successfully.');
|
this.notifier.notify('success', 'Saved Successfully.');
|
||||||
@ -304,7 +304,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
/** To Convert Month into Year */
|
/** To Convert Month into Year */
|
||||||
ConvertMonthintoYear(itemrow,e){
|
ConvertMonthintoYear(itemrow,e){
|
||||||
//console.log(itemrow);
|
|
||||||
|
|
||||||
let year = itemrow.controls.vintage_year.value;
|
let year = itemrow.controls.vintage_year.value;
|
||||||
|
|
||||||
@ -341,10 +341,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setRequiredValidation(value,item,flag) {
|
setRequiredValidation(value,item,flag) {
|
||||||
console.log(item);
|
|
||||||
console.log(value);
|
|
||||||
console.log(flag);
|
|
||||||
|
|
||||||
if(flag == 1){
|
if(flag == 1){
|
||||||
value==0
|
value==0
|
||||||
? item.controls.other_applicant.setValidators([Validators.required])
|
? item.controls.other_applicant.setValidators([Validators.required])
|
||||||
|
|||||||
@ -1470,8 +1470,6 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log('as');
|
|
||||||
// return;
|
|
||||||
// if(if(parseInt(datas.total_business_experiance) > parseInt(datas.current_business_experiance_year)) {)
|
// if(if(parseInt(datas.total_business_experiance) > parseInt(datas.current_business_experiance_year)) {)
|
||||||
// return;
|
// return;
|
||||||
|
|
||||||
|
|||||||
@ -522,7 +522,7 @@ export class ClientInfoComponent implements OnInit {
|
|||||||
addMoreRawMaterials(e): void {
|
addMoreRawMaterials(e): void {
|
||||||
// e.stropPropagation();
|
// e.stropPropagation();
|
||||||
const control = <FormArray>this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials'];
|
const control = <FormArray>this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials'];
|
||||||
// console.log(control);
|
|
||||||
control.push(this.initManufacturingProducts(null));
|
control.push(this.initManufacturingProducts(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -534,7 +534,7 @@ export class ClientInfoComponent implements OnInit {
|
|||||||
addMoretradeProduct(e): void {
|
addMoretradeProduct(e): void {
|
||||||
// e.stropPropagation();
|
// e.stropPropagation();
|
||||||
const control = <FormArray>this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
|
const control = <FormArray>this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
|
||||||
// console.log(control);
|
|
||||||
control.push(this.initTradingProducts(null));
|
control.push(this.initTradingProducts(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -546,7 +546,7 @@ export class ClientInfoComponent implements OnInit {
|
|||||||
addMoreServiceProduct(e): void {
|
addMoreServiceProduct(e): void {
|
||||||
// e.stropPropagation();
|
// e.stropPropagation();
|
||||||
const control = <FormArray>this._supplierQuesFrom.controls['service_provider_details']['controls'][0].controls['service_products'];
|
const control = <FormArray>this._supplierQuesFrom.controls['service_provider_details']['controls'][0].controls['service_products'];
|
||||||
// console.log(control);
|
|
||||||
control.push(this.initServiceProviderProducts(null));
|
control.push(this.initServiceProviderProducts(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -628,7 +628,7 @@ export class ClientInfoComponent implements OnInit {
|
|||||||
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
if (dataresult.status == 200) {
|
if (dataresult.status == 200) {
|
||||||
// console.log(dataresult);
|
|
||||||
this.notifier.notify('success', 'Saved Successfully.!');
|
this.notifier.notify('success', 'Saved Successfully.!');
|
||||||
setTimeout(() =>{
|
setTimeout(() =>{
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
|
|||||||
@ -133,10 +133,10 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
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);
|
|
||||||
const control = <FormArray>this.currentLoanForm.controls['loan_details'];
|
const control = <FormArray>this.currentLoanForm.controls['loan_details'];
|
||||||
if (value.status == 200) {
|
if (value.status == 200) {
|
||||||
// console.log(value.status);
|
|
||||||
this.currentLoanForm.controls['existing_loan'].setValue(value.records.existing_loan);
|
this.currentLoanForm.controls['existing_loan'].setValue(value.records.existing_loan);
|
||||||
this.currentLoanForm.controls['currentloan_remarks'].setValue(value.records.currentloan_remarks);
|
this.currentLoanForm.controls['currentloan_remarks'].setValue(value.records.currentloan_remarks);
|
||||||
|
|
||||||
@ -158,18 +158,16 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('else part',value.status);
|
|
||||||
this._pd.getAssetsWithLoanFromBusiness(this.pdid).subscribe(data=>{
|
this._pd.getAssetsWithLoanFromBusiness(this.pdid).subscribe(data=>{
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
if(data.dataStatus == true){
|
if(data.dataStatus == true){
|
||||||
|
|
||||||
console.log(data.record);
|
|
||||||
|
|
||||||
let AssetData = data.record;
|
let AssetData = data.record;
|
||||||
|
|
||||||
console.log(AssetData.business_assets);
|
|
||||||
console.log(AssetData.other_assests);
|
|
||||||
|
|
||||||
if(AssetData.business_assets.length>0){
|
if(AssetData.business_assets.length>0){
|
||||||
AssetData.business_assets.map(element => {
|
AssetData.business_assets.map(element => {
|
||||||
@ -198,8 +196,7 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
// id: "2", name: "Property", isactive: "1", flag: "1", is_others: "0"
|
// id: "2", name: "Property", isactive: "1", flag: "1", is_others: "0"
|
||||||
// id: "3", name: "Vehicle", isactsive: "1", flag: "1", is_others: "0"
|
// id: "3", name: "Vehicle", isactsive: "1", flag: "1", is_others: "0"
|
||||||
// id: "1", name: "Others", isactive: "1", flag: "1", is_others: "1"}
|
// id: "1", name: "Others", isactive: "1", flag: "1", is_others: "1"}
|
||||||
console.log(this.dataFromAssets);
|
|
||||||
console.log(this.dataFromAssets.length);
|
|
||||||
if(this.dataFromAssets.length > 0){
|
if(this.dataFromAssets.length > 0){
|
||||||
let labelarray : any = [];
|
let labelarray : any = [];
|
||||||
|
|
||||||
@ -214,7 +211,7 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
labelarray[index] = ' : '+val.owner_name +' - '+ val.mode_name + description;
|
labelarray[index] = ' : '+val.owner_name +' - '+ val.mode_name + description;
|
||||||
}
|
}
|
||||||
if(val.mode == 2){
|
if(val.mode == 2){
|
||||||
console.log(val.form_type);
|
|
||||||
let data;
|
let data;
|
||||||
val.details.forEach((v,index) => {
|
val.details.forEach((v,index) => {
|
||||||
data = v.property_type;
|
data = v.property_type;
|
||||||
@ -296,7 +293,7 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// console.log('else,else.part');
|
|
||||||
control.push(this.createLoanDetail(null));
|
control.push(this.createLoanDetail(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,14 +338,14 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedLoanChanges(e): void {
|
selectedLoanChanges(e): void {
|
||||||
// console.log(e);
|
|
||||||
if (e == 'Yes') {
|
if (e == 'Yes') {
|
||||||
// console.log('if()');
|
|
||||||
const control = <FormArray>this.currentLoanForm.controls['loan_details'];
|
const control = <FormArray>this.currentLoanForm.controls['loan_details'];
|
||||||
control.push(this.createLoanDetail(null));
|
control.push(this.createLoanDetail(null));
|
||||||
|
|
||||||
} else if (e == 'No') {
|
} else if (e == 'No') {
|
||||||
// console.log('else()');
|
|
||||||
const arr = <FormArray>this.currentLoanForm.controls.loan_details;
|
const arr = <FormArray>this.currentLoanForm.controls.loan_details;
|
||||||
arr.removeAt(0);
|
arr.removeAt(0);
|
||||||
}
|
}
|
||||||
@ -521,9 +518,7 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
setRequiredValidation(value,item,flag) {
|
setRequiredValidation(value,item,flag) {
|
||||||
console.log(item);
|
|
||||||
console.log(value);
|
|
||||||
console.log(flag);
|
|
||||||
|
|
||||||
if(flag == 1){
|
if(flag == 1){
|
||||||
value==1
|
value==1
|
||||||
|
|||||||
@ -26,7 +26,7 @@ export class OtherApplicantDetailsComponent implements OnInit {
|
|||||||
// this.EditGeneralFormData = generalFormData.value;
|
// this.EditGeneralFormData = generalFormData.value;
|
||||||
// this.EditFlag = true;
|
// this.EditFlag = true;
|
||||||
// }
|
// }
|
||||||
// console.log(this.EditGeneralFormData);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
@ -189,9 +189,9 @@ export class EmploymentInfoComponent implements OnInit {
|
|||||||
records.bonus_type_other = this.employmentForm.controls['bonus_type_other'].value;
|
records.bonus_type_other = this.employmentForm.controls['bonus_type_other'].value;
|
||||||
records.any_delays = this.employmentForm.controls['any_delays'].value;
|
records.any_delays = this.employmentForm.controls['any_delays'].value;
|
||||||
records.employment_remarks = this.employmentForm.controls['employment_remarks'].value;
|
records.employment_remarks = this.employmentForm.controls['employment_remarks'].value;
|
||||||
// console.log('data', records);
|
|
||||||
this._pd.saveForm(records).subscribe(data => {
|
this._pd.saveForm(records).subscribe(data => {
|
||||||
// console.log('data', data);
|
|
||||||
// this.notifier.notify('success', 'Saved Successfully.');
|
// this.notifier.notify('success', 'Saved Successfully.');
|
||||||
if(data.status == 200) {
|
if(data.status == 200) {
|
||||||
this.notifier.notify('success', 'Saved Successfully.');
|
this.notifier.notify('success', 'Saved Successfully.');
|
||||||
|
|||||||
@ -407,11 +407,11 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
age:'',
|
age:'',
|
||||||
data_gets_from:'BusinessForm'};
|
data_gets_from:'BusinessForm'};
|
||||||
});
|
});
|
||||||
// console.log('familyMembersGeneralForm',familyMembersBusinessForm);
|
|
||||||
Temparr.push(datas);
|
Temparr.push(datas);
|
||||||
}
|
}
|
||||||
this.apiFamilyMembers = [].concat.apply([],Temparr);
|
this.apiFamilyMembers = [].concat.apply([],Temparr);
|
||||||
// console.log(this.apiFamilyMembers);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -577,10 +577,9 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
control.push(formData);
|
control.push(formData);
|
||||||
} else {
|
} else {
|
||||||
records.forEach((val,index) => {
|
records.forEach((val,index) => {
|
||||||
// console.log(val.rent);
|
|
||||||
// console.log(+val.rent);
|
|
||||||
if(val.rent != null){
|
if(val.rent != null){
|
||||||
// console.log('if');
|
|
||||||
this.RentAmount[index] = this._pd.convertNumberToWords(val.rent);
|
this.RentAmount[index] = this._pd.convertNumberToWords(val.rent);
|
||||||
}
|
}
|
||||||
this.FamilyMemberAsLabel[index] = this.selectPerson.filter(item => item.pd_co_applicant_id == val.selected_person)[0].applicant_name;
|
this.FamilyMemberAsLabel[index] = this.selectPerson.filter(item => item.pd_co_applicant_id == val.selected_person)[0].applicant_name;
|
||||||
@ -604,7 +603,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
control.push(formData);
|
control.push(formData);
|
||||||
let inx = control.length - 1;
|
let inx = control.length - 1;
|
||||||
this.addFamilyMemberDetailsWithData(inx, val.family_members_details);
|
this.addFamilyMemberDetailsWithData(inx, val.family_members_details);
|
||||||
// console.log(control);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -653,17 +652,9 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
|
|
||||||
selectedPerson(e,inx){
|
selectedPerson(e,inx){
|
||||||
|
|
||||||
// console.log('e,inx',e,inx);
|
|
||||||
// console.log( e,inx, "Logged!");
|
|
||||||
// console.info( e,inx, "Logged!");
|
|
||||||
// console.warn( e,inx, "Logged!");
|
|
||||||
// console.debug(e,inx, "Logged!");
|
|
||||||
// console.error(e,inx, "Logged!");
|
|
||||||
|
|
||||||
this.FamilyMemberAsLabel[inx] = this.selectPerson.filter(item => item.pd_co_applicant_id == e)[0].applicant_name;
|
this.FamilyMemberAsLabel[inx] = this.selectPerson.filter(item => item.pd_co_applicant_id == e)[0].applicant_name;
|
||||||
|
|
||||||
const control = <FormArray>this.familyForm.controls['family_details']['controls'][inx].controls.family_members_details;
|
const control = <FormArray>this.familyForm.controls['family_details']['controls'][inx].controls.family_members_details;
|
||||||
// console.log(control.length);
|
|
||||||
|
|
||||||
let newControlLength: number;
|
let newControlLength: number;
|
||||||
let oldControlLength: number = control.length;
|
let oldControlLength: number = control.length;
|
||||||
@ -673,14 +664,12 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
let arraydata : any;
|
let arraydata : any;
|
||||||
let data = this.apiFamilyMembers.filter(item => item.relation_to == e);
|
let data = this.apiFamilyMembers.filter(item => item.relation_to == e);
|
||||||
|
|
||||||
console.log('this.apiFamilyMembers',this.apiFamilyMembers);
|
|
||||||
console.log('selectedPerson data',data);
|
|
||||||
// data_gets_from:'GeneralForm'
|
// data_gets_from:'GeneralForm'
|
||||||
// data_gets_from:'BusinessForm'
|
// data_gets_from:'BusinessForm'
|
||||||
|
|
||||||
if(data.length > 0){
|
if(data.length > 0){
|
||||||
// console.log(control.length);
|
|
||||||
// console.log(data.length);
|
|
||||||
|
|
||||||
newControlLength = data.length;
|
newControlLength = data.length;
|
||||||
let index: number = 0;
|
let index: number = 0;
|
||||||
@ -693,7 +682,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
data.forEach((val,inx) => {
|
data.forEach((val,inx) => {
|
||||||
console.log('for loop',val.data_gets_from);
|
|
||||||
// family_member_earning_status
|
// family_member_earning_status
|
||||||
if(val.age){
|
if(val.age){
|
||||||
this.isReadOnly[inx] = true;
|
this.isReadOnly[inx] = true;
|
||||||
@ -733,7 +722,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// console.log('main else');
|
|
||||||
control.push(this.generateFamilyMembersDetailsGet());
|
control.push(this.generateFamilyMembersDetailsGet());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -826,15 +815,15 @@ removeFamilyMembers(inx,i) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getCity(e,i){
|
getCity(e,i){
|
||||||
// console.log(e);
|
|
||||||
// this.cityData = this.wholeCityData.filter(city=>city.fk_state_id == e);
|
// this.cityData = this.wholeCityData.filter(city=>city.fk_state_id == e);
|
||||||
// this._pd.retriveForm(params).subscribe(data => {
|
// this._pd.retriveForm(params).subscribe(data => {
|
||||||
this._pd.getStateWiseCities(e).subscribe(data=>{
|
this._pd.getStateWiseCities(e).subscribe(data=>{
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
// console.log(data.status);
|
|
||||||
this.cityData[i] = data.records.cities;
|
this.cityData[i] = data.records.cities;
|
||||||
this.pincodeData[i] = data.records.pincode;
|
this.pincodeData[i] = data.records.pincode;
|
||||||
// console.log(this.cityData);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -136,7 +136,7 @@ export class FinalRemarksComponent implements OnInit {
|
|||||||
this.pdTrigerService.getAllMasterDatas('CUSTOMERBEHAVIOUR').subscribe(
|
this.pdTrigerService.getAllMasterDatas('CUSTOMERBEHAVIOUR').subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.m_remarkTypeCustomerBehaviour = data.records.filter(data => data.isactive == 1);
|
this.m_remarkTypeCustomerBehaviour = data.records.filter(data => data.isactive == 1);
|
||||||
console.log(this.m_remarkTypeCustomerBehaviour);
|
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
// this.notifier.notify('warning', 'No Category Records Found.!');
|
// this.notifier.notify('warning', 'No Category Records Found.!');
|
||||||
|
|||||||
@ -132,8 +132,6 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.clear();
|
|
||||||
// console.log('this.applicants',this.applicants);
|
|
||||||
this.initloanDetailsForm();
|
this.initloanDetailsForm();
|
||||||
this.getM_EndUseofLoad();
|
this.getM_EndUseofLoad();
|
||||||
this.getM_EndUseForLoan(this.pdid);
|
this.getM_EndUseForLoan(this.pdid);
|
||||||
@ -205,8 +203,7 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
this.loanDetailsForm.controls['end_use'].setValue(enduse);
|
this.loanDetailsForm.controls['end_use'].setValue(enduse);
|
||||||
this.endUserChange(enduse);
|
this.endUserChange(enduse);
|
||||||
|
|
||||||
// console.log('enduse', enduse);
|
|
||||||
// console.log('ownername', ownername);
|
|
||||||
|
|
||||||
this.loanDetailsForm.controls['loan_amount'].setValue(value.records.loan_amount);
|
this.loanDetailsForm.controls['loan_amount'].setValue(value.records.loan_amount);
|
||||||
if(value.records.loan_amount){ this.loanAmtInWords = this._pd.convertNumberToWords(value.records.loan_amount); }
|
if(value.records.loan_amount){ this.loanAmtInWords = this._pd.convertNumberToWords(value.records.loan_amount); }
|
||||||
@ -287,11 +284,11 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
|
|
||||||
this.loanDetailsForm.controls['property_type'].setValue(value.records.property_type);
|
this.loanDetailsForm.controls['property_type'].setValue(value.records.property_type);
|
||||||
this.propertyType = value.records.property_type;
|
this.propertyType = value.records.property_type;
|
||||||
//console.log(value.records.property_type);
|
|
||||||
if(this.propertyType != null){
|
if(this.propertyType != null){
|
||||||
this.mortage_type(this.propertyType);
|
this.mortage_type(this.propertyType);
|
||||||
}
|
}
|
||||||
//console.log(this.propertyType);
|
|
||||||
if(this.mortageCardAccess == true){
|
if(this.mortageCardAccess == true){
|
||||||
this.loanDetailsForm.controls['property_type_others'].setValue(value.records.property_type_others);
|
this.loanDetailsForm.controls['property_type_others'].setValue(value.records.property_type_others);
|
||||||
this.loanDetailsForm.controls['owner_name'].setValue(ownername);
|
this.loanDetailsForm.controls['owner_name'].setValue(ownername);
|
||||||
@ -378,30 +375,28 @@ getM_sourceofamount() {
|
|||||||
let that = this;
|
let that = this;
|
||||||
this.m_mortageTypeProperty = data.records.filter(
|
this.m_mortageTypeProperty = data.records.filter(
|
||||||
function(data){
|
function(data){
|
||||||
// console.log(data);
|
|
||||||
if(that.productAbbr != "LAP"){
|
if(that.productAbbr != "LAP"){
|
||||||
// console.log(that.productAbbr);
|
|
||||||
if(data.group_name == that.productAbbr && data.isactive==1){
|
if(data.group_name == that.productAbbr && data.isactive==1){
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(that.productAbbr == "LAP"){
|
else if(that.productAbbr == "LAP"){
|
||||||
// console.log(that.productAbbr);
|
|
||||||
// console.log(that.subProductName);
|
|
||||||
// console.log(data.sub_group_name);
|
|
||||||
if(data.group_name == that.productAbbr && data.sub_group_name == that.subProductName && data.isactive==1){
|
if(data.group_name == that.productAbbr && data.sub_group_name == that.subProductName && data.isactive==1){
|
||||||
// console.log('lap with subproduct',data);
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
else if(data.group_name == that.productAbbr && data.sub_group_name != null && data.isactive==1) {
|
else if(data.group_name == that.productAbbr && data.sub_group_name != null && data.isactive==1) {
|
||||||
// console.log('lap with subproduct null',data);
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.m_mortageTypeProperty
|
this.m_mortageTypeProperty
|
||||||
// mortage_property_id">{{ typeprop.property_name
|
// mortage_property_id">{{ typeprop.property_name
|
||||||
// console.log(this.m_mortageTypeProperty);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
@ -518,9 +513,9 @@ getM_sourceofamount() {
|
|||||||
event.forEach(option => {
|
event.forEach(option => {
|
||||||
// let othersData = this.m_endUseofLoad.filter(sub=>sub.subproduct_id==option)[0];
|
// let othersData = this.m_endUseofLoad.filter(sub=>sub.subproduct_id==option)[0];
|
||||||
let othersData = this.m_endUseForLoan.filter(sub=>sub.enduse_of_loan_id==option)[0];
|
let othersData = this.m_endUseForLoan.filter(sub=>sub.enduse_of_loan_id==option)[0];
|
||||||
// console.log('1',othersData);
|
|
||||||
OthersAvaliable = othersData.enduse_of_loan.substr(0,6).toLowerCase();
|
OthersAvaliable = othersData.enduse_of_loan.substr(0,6).toLowerCase();
|
||||||
// console.log('1',OthersAvaliable);
|
|
||||||
this.endUserList.push({ end_use: option });
|
this.endUserList.push({ end_use: option });
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -539,7 +534,7 @@ getM_sourceofamount() {
|
|||||||
|
|
||||||
|
|
||||||
sourceChange(evt) {
|
sourceChange(evt) {
|
||||||
// console.log('source Changed Values',evt);
|
|
||||||
|
|
||||||
// this.isOtherSource = (evt.some(e => e == 4) == true) ? true : false ;
|
// this.isOtherSource = (evt.some(e => e == 4) == true) ? true : false ;
|
||||||
// this.isPLSource = (evt.some(e => e == 3) == true) ? true : false ;
|
// this.isPLSource = (evt.some(e => e == 3) == true) ? true : false ;
|
||||||
@ -728,12 +723,11 @@ getM_sourceofamount() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedBalancesTransferChanges(event: any){
|
selectedBalancesTransferChanges(event: any){
|
||||||
// console.log('First Time',event);
|
|
||||||
// console.log('First Time Value',event.value);
|
|
||||||
if(event.value == 'no') {
|
if(event.value == 'no') {
|
||||||
// this.loanDetailsForm.controls['is_topup'].clearValidators();
|
// this.loanDetailsForm.controls['is_topup'].clearValidators();
|
||||||
// this.loanDetailsForm.controls['is_topup'].updateValueAndValidity();
|
// this.loanDetailsForm.controls['is_topup'].updateValueAndValidity();
|
||||||
// console.log('no',event.value);
|
|
||||||
this.loanDetailsForm.controls['source'].setValidators([Validators.required]);
|
this.loanDetailsForm.controls['source'].setValidators([Validators.required]);
|
||||||
this.loanDetailsForm.controls['source'].updateValueAndValidity();
|
this.loanDetailsForm.controls['source'].updateValueAndValidity();
|
||||||
|
|
||||||
@ -749,7 +743,7 @@ getM_sourceofamount() {
|
|||||||
|
|
||||||
this.loanDetailsForm.controls['own_contribution'].clearValidators();
|
this.loanDetailsForm.controls['own_contribution'].clearValidators();
|
||||||
this.loanDetailsForm.controls['own_contribution'].updateValueAndValidity();
|
this.loanDetailsForm.controls['own_contribution'].updateValueAndValidity();
|
||||||
// console.log('yes',event.value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -798,10 +792,10 @@ getM_sourceofamount() {
|
|||||||
*/
|
*/
|
||||||
mortage_type(mortage_value)
|
mortage_type(mortage_value)
|
||||||
{
|
{
|
||||||
//console.log(mortage_value);
|
|
||||||
//let mortagetypes = this.m_mortageTypeProperty.filter(mor=>mor.mortage_property_id==mortage_value)[0];
|
//let mortagetypes = this.m_mortageTypeProperty.filter(mor=>mor.mortage_property_id==mortage_value)[0];
|
||||||
let mortagetypes = this.m_mortageTypeProperty.filter(mor=>mor.mortage_property_id == mortage_value)[0];
|
let mortagetypes = this.m_mortageTypeProperty.filter(mor=>mor.mortage_property_id == mortage_value)[0];
|
||||||
// console.log(mortagetypes);
|
|
||||||
if(mortagetypes.property_name=='Others (Please Specify)'){
|
if(mortagetypes.property_name=='Others (Please Specify)'){
|
||||||
this.mortageAccess = true;
|
this.mortageAccess = true;
|
||||||
this.loanDetailsForm.controls['property_type_others'].setValidators([Validators.required]);
|
this.loanDetailsForm.controls['property_type_others'].setValidators([Validators.required]);
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export class NeighbourHoodComponent implements OnInit {
|
|||||||
this.applicants = this.data.pdapplicants_detials;
|
this.applicants = this.data.pdapplicants_detials;
|
||||||
this.applicants = this.applicants.filter(appt=>appt.applicant_type != 2);
|
this.applicants = this.applicants.filter(appt=>appt.applicant_type != 2);
|
||||||
this.applicants.push({'pd_co_applicant_id': 0,'applicant_name': "Others"})
|
this.applicants.push({'pd_co_applicant_id': 0,'applicant_name': "Others"})
|
||||||
// console.log(this.applicants);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,7 +346,7 @@ validateAllFormFields(formGroup: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toggleVisibility(e,index,flag){
|
toggleVisibility(e,index,flag){
|
||||||
console.log(e,index);
|
|
||||||
if(flag == 1){
|
if(flag == 1){
|
||||||
this.isDisplay[index] = e;
|
this.isDisplay[index] = e;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -91,23 +91,23 @@ public viewerOptions: any = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.clear();
|
|
||||||
this.getFrequency();
|
this.getFrequency();
|
||||||
this.getSourceOtherIncome();
|
this.getSourceOtherIncome();
|
||||||
this.initOtherincomeForm();
|
this.initOtherincomeForm();
|
||||||
this._pd.getAllPersonsName(this.pdid).subscribe(data => {
|
this._pd.getAllPersonsName(this.pdid).subscribe(data => {
|
||||||
// console.log(data);
|
|
||||||
|
|
||||||
if(data.dataStatus == true){
|
if(data.dataStatus == true){
|
||||||
this.incomeEarnedBy = data.record;
|
this.incomeEarnedBy = data.record;
|
||||||
}
|
}
|
||||||
// console.log(this.incomeEarnedBy);
|
|
||||||
});
|
});
|
||||||
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);
|
|
||||||
const control = <FormArray>this.otherIncomeForm.controls['income_details'];
|
const control = <FormArray>this.otherIncomeForm.controls['income_details'];
|
||||||
if (value.status == 200) {
|
if (value.status == 200) {
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ public viewerOptions: any = {
|
|||||||
getFrequency() {
|
getFrequency() {
|
||||||
let master_name = 'FREQUENCY';
|
let master_name = 'FREQUENCY';
|
||||||
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
||||||
// console.log('data', data);
|
|
||||||
data.records.forEach(val => {
|
data.records.forEach(val => {
|
||||||
if (val.isactive == 1) {
|
if (val.isactive == 1) {
|
||||||
this.frequencyData.push(val);
|
this.frequencyData.push(val);
|
||||||
@ -176,7 +176,7 @@ public viewerOptions: any = {
|
|||||||
getSourceOtherIncome() {
|
getSourceOtherIncome() {
|
||||||
let master_name = 'SOURCEOFOTHERINCOME';
|
let master_name = 'SOURCEOFOTHERINCOME';
|
||||||
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
||||||
// console.log('data', data);
|
|
||||||
data.records.forEach(val => {
|
data.records.forEach(val => {
|
||||||
if (val.isactive == 1) {
|
if (val.isactive == 1) {
|
||||||
this.sourceData.push(val);
|
this.sourceData.push(val);
|
||||||
@ -208,7 +208,6 @@ public viewerOptions: any = {
|
|||||||
records.income_details = this.otherIncomeForm.controls['income_details'].value;
|
records.income_details = this.otherIncomeForm.controls['income_details'].value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log('data', records);
|
|
||||||
this._pd.saveForm(records).subscribe(data => {
|
this._pd.saveForm(records).subscribe(data => {
|
||||||
if(data.status == 200) {
|
if(data.status == 200) {
|
||||||
this.notifier.notify('success', 'Saved Successfully.');
|
this.notifier.notify('success', 'Saved Successfully.');
|
||||||
|
|||||||
@ -109,7 +109,7 @@ export class StockComponent implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
this._pd.stockFormAccess(this.pdid,this.company_id).subscribe(data => {
|
this._pd.stockFormAccess(this.pdid,this.company_id).subscribe(data => {
|
||||||
console.log(data);
|
|
||||||
if(data.dataStatus == true){
|
if(data.dataStatus == true){
|
||||||
this.initstockForms(data.record);
|
this.initstockForms(data.record);
|
||||||
}
|
}
|
||||||
@ -781,9 +781,7 @@ tradingFormCreation(val) {
|
|||||||
|
|
||||||
|
|
||||||
checkComments(e,flag,index){
|
checkComments(e,flag,index){
|
||||||
// console.log(e);
|
|
||||||
// console.log(flag);
|
|
||||||
// console.log(index);
|
|
||||||
if(flag == 1 && e=='no'){
|
if(flag == 1 && e=='no'){
|
||||||
this.mrmCommentFlag[index] = true;
|
this.mrmCommentFlag[index] = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,7 +94,7 @@ export class SupplierInfoComponent implements OnInit {
|
|||||||
errorMessage: any = '';
|
errorMessage: any = '';
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.pdTrigerService.getTypeofActivityForSuppliedInfoForm(this.pdid, this.company_id).subscribe(data => {
|
this.pdTrigerService.getTypeofActivityForSuppliedInfoForm(this.pdid, this.company_id).subscribe(data => {
|
||||||
console.log(data);
|
|
||||||
if(data.dataStatus){
|
if(data.dataStatus){
|
||||||
// let datas = {
|
// let datas = {
|
||||||
// "profession_name": "Others",
|
// "profession_name": "Others",
|
||||||
@ -339,7 +339,7 @@ export class SupplierInfoComponent implements OnInit {
|
|||||||
|
|
||||||
initTradingProductsDetails(datas) {
|
initTradingProductsDetails(datas) {
|
||||||
const control = <FormArray>this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
|
const control = <FormArray>this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
|
||||||
console.log('control',control);
|
|
||||||
if(datas === null){
|
if(datas === null){
|
||||||
control.push(this.initTradingProducts(null));
|
control.push(this.initTradingProducts(null));
|
||||||
} else {
|
} else {
|
||||||
@ -391,7 +391,7 @@ export class SupplierInfoComponent implements OnInit {
|
|||||||
addMoreRawMaterials(e): void {
|
addMoreRawMaterials(e): void {
|
||||||
// e.stropPropagation();
|
// e.stropPropagation();
|
||||||
const control = <FormArray>this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials'];
|
const control = <FormArray>this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials'];
|
||||||
// console.log(control);
|
|
||||||
control.push(this.initManufacturingProducts(null));
|
control.push(this.initManufacturingProducts(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,7 +403,7 @@ export class SupplierInfoComponent implements OnInit {
|
|||||||
addMoretradeProduct(e): void {
|
addMoretradeProduct(e): void {
|
||||||
// e.stropPropagation();
|
// e.stropPropagation();
|
||||||
const control = <FormArray>this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
|
const control = <FormArray>this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
|
||||||
// console.log(control);
|
|
||||||
control.push(this.initTradingProducts(null));
|
control.push(this.initTradingProducts(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -477,7 +477,7 @@ export class SupplierInfoComponent implements OnInit {
|
|||||||
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
if (dataresult.status == 200) {
|
if (dataresult.status == 200) {
|
||||||
// console.log(dataresult);
|
|
||||||
this.notifier.notify('success', 'Saved Successfully.!');
|
this.notifier.notify('success', 'Saved Successfully.!');
|
||||||
// this.dialogRef.close();
|
// this.dialogRef.close();
|
||||||
// alert("sample alert for Saving");
|
// alert("sample alert for Saving");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user