Fairoj : userid missing issue and loan details property others duplicate issue fixed
This commit is contained in:
parent
b2102242dc
commit
97e42f8123
@ -1 +1 @@
|
|||||||
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
{"version":3,"sources":["../../@angular/common/http (ignored)"],"names":[],"mappings":";;;;;AAAA,e","file":"0.js","sourcesContent":["/* (ignored) */\n\n\n//////////////////\n// WEBPACK FOOTER\n// @angular/common/http (ignored)\n// module id = 726\n// module chunks = 0"],"sourceRoot":""}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -218,6 +218,7 @@ let alert=this.alertCtrl.create({
|
|||||||
// console.log("Inside user details notification access value",this.notificationAccess)
|
// console.log("Inside user details notification access value",this.notificationAccess)
|
||||||
this.userAccess = true;
|
this.userAccess = true;
|
||||||
this.userDetails = this.userDetails.records[0];
|
this.userDetails = this.userDetails.records[0];
|
||||||
|
localStorage.setItem("pd_user_details",JSON.stringify(this.userDetails))
|
||||||
this.notification()
|
this.notification()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,7 +34,8 @@ export class BouncedRejectPage {
|
|||||||
// this.status = this.navParams.get('status');
|
// this.status = this.navParams.get('status');
|
||||||
this.pdDetails=this.navParams.get('details')
|
this.pdDetails=this.navParams.get('details')
|
||||||
|
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.getDropdown();
|
this.getDropdown();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -148,7 +148,8 @@ checkOtpAccess:boolean = false;
|
|||||||
// this.getenableAccuracy();
|
// this.getenableAccuracy();
|
||||||
|
|
||||||
// }
|
// }
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
console.log("users",this.users)
|
console.log("users",this.users)
|
||||||
this.requirement_hide=false;
|
this.requirement_hide=false;
|
||||||
// this.getcurrentBackgroundLocation();
|
// this.getcurrentBackgroundLocation();
|
||||||
|
|||||||
@ -92,6 +92,7 @@ login() {
|
|||||||
if (this.users.dataStatus == true) {
|
if (this.users.dataStatus == true) {
|
||||||
|
|
||||||
if(this.users.records[0].role_name == "PD Officer" || this.users.records[0].role_name == "PD Executive"){
|
if(this.users.records[0].role_name == "PD Officer" || this.users.records[0].role_name == "PD Executive"){
|
||||||
|
localStorage.setItem("pd_user_details",JSON.stringify(this.users.records[0]))
|
||||||
this.notification()
|
this.notification()
|
||||||
this.checkAppVersion()
|
this.checkAppVersion()
|
||||||
this.navCtrl.setRoot(PdListPage);
|
this.navCtrl.setRoot(PdListPage);
|
||||||
|
|||||||
@ -79,7 +79,9 @@ console.log("d",this.master,'kd',this.applicants,'dks',this.applicants);
|
|||||||
this.toast.pdTriggerappmessage("Please Fill all the Fields");
|
this.toast.pdTriggerappmessage("Please Fill all the Fields");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let update_records={"pd_id":null,"parent_pd_id":this.master.parent_pd_id,"fk_address_id":this.addressData.pd_address_id,"pd_status":"ACCEPTED","fk_updatedby":this.aws.getlocale(),
|
let users = localStorage.getItem('pd_user_details')
|
||||||
|
users=JSON.parse(users).userid
|
||||||
|
let update_records={"pd_id":null,"parent_pd_id":this.master.parent_pd_id,"fk_address_id":this.addressData.pd_address_id,"pd_status":"ACCEPTED","fk_updatedby":users,
|
||||||
"fk_customer_segment":values.fk_customer_segment,
|
"fk_customer_segment":values.fk_customer_segment,
|
||||||
"pd_co_applicant_id":values.pd_co_applicant_id,
|
"pd_co_applicant_id":values.pd_co_applicant_id,
|
||||||
"mobile_no":values.mobile_no,
|
"mobile_no":values.mobile_no,
|
||||||
|
|||||||
@ -44,8 +44,9 @@ export class OtpPage {
|
|||||||
this.applicatentDetails = this.navParams.get('pdDetails');
|
this.applicatentDetails = this.navParams.get('pdDetails');
|
||||||
console.log("this",this.applicatentDetails);
|
console.log("this",this.applicatentDetails);
|
||||||
// this.address_pd_id=this.navParams.get('address_pd_id')
|
// this.address_pd_id=this.navParams.get('address_pd_id')
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
console.log("user",this.users)
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
this.reasonForm = this.fb.group(
|
this.reasonForm = this.fb.group(
|
||||||
{
|
{
|
||||||
reason:[null,Validators.compose([Validators.required])],
|
reason:[null,Validators.compose([Validators.required])],
|
||||||
|
|||||||
@ -11,6 +11,8 @@ import { OtpPage } from '../otp/otp';
|
|||||||
import { DatabaseProvider } from '../../providers/database/database';
|
import { DatabaseProvider } from '../../providers/database/database';
|
||||||
import { AndroidPermissions } from '@ionic-native/android-permissions';
|
import { AndroidPermissions } from '@ionic-native/android-permissions';
|
||||||
import {Content} from 'ionic-angular'
|
import {Content} from 'ionic-angular'
|
||||||
|
|
||||||
|
import { StorageProvider } from '../../providers/storage/storage';
|
||||||
/**
|
/**
|
||||||
* Generated class for the PdListPage page.
|
* Generated class for the PdListPage page.
|
||||||
*
|
*
|
||||||
@ -40,7 +42,7 @@ export class PdListPage {
|
|||||||
|
|
||||||
notification:any=[]
|
notification:any=[]
|
||||||
from:any;
|
from:any;
|
||||||
constructor(public navCtrl: NavController, public navParams: NavParams,public aws:AwsServiceProvider,public pdofficer:PdtriggerProvider,public shared:CognitoServiceProvider,public db:DatabaseProvider,public androidPermissions:AndroidPermissions,private event:Events) {
|
constructor(public navCtrl: NavController, public navParams: NavParams,public aws:AwsServiceProvider,public pdofficer:PdtriggerProvider,public shared:CognitoServiceProvider,public db:DatabaseProvider,public androidPermissions:AndroidPermissions,private event:Events,private ionicStrorage:StorageProvider) {
|
||||||
//this.getlenderpddetails();
|
//this.getlenderpddetails();
|
||||||
// this.getpdTriggerdetails();
|
// this.getpdTriggerdetails();
|
||||||
this.event.subscribe('notify',(res)=>{
|
this.event.subscribe('notify',(res)=>{
|
||||||
@ -68,6 +70,7 @@ export class PdListPage {
|
|||||||
console.log('ionViewDidLoad PdListPage');
|
console.log('ionViewDidLoad PdListPage');
|
||||||
this.db.getuserDetails();
|
this.db.getuserDetails();
|
||||||
this.setpermission();
|
this.setpermission();
|
||||||
|
|
||||||
}
|
}
|
||||||
ionViewCanEnter()
|
ionViewCanEnter()
|
||||||
{
|
{
|
||||||
@ -132,7 +135,8 @@ export class PdListPage {
|
|||||||
getpdTriggerdetails()
|
getpdTriggerdetails()
|
||||||
{
|
{
|
||||||
|
|
||||||
let userid = this.aws.getlocale();
|
let userid = localStorage.getItem('pd_user_details')
|
||||||
|
userid=JSON.parse(userid).userid
|
||||||
//.log("User",userid)
|
//.log("User",userid)
|
||||||
this.pdlistaccess = true;
|
this.pdlistaccess = true;
|
||||||
|
|
||||||
@ -223,7 +227,7 @@ export class PdListPage {
|
|||||||
PdAllocation(pddetails)
|
PdAllocation(pddetails)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
this.ionicStrorage.clearItem('pd_images');
|
||||||
if(pddetails.pd_status == '')//for STARTED
|
if(pddetails.pd_status == '')//for STARTED
|
||||||
{
|
{
|
||||||
this.navCtrl.push(OtpPage,{'pdDetails':pddetails});
|
this.navCtrl.push(OtpPage,{'pdDetails':pddetails});
|
||||||
|
|||||||
@ -441,7 +441,8 @@ else{ //IF ADDRESS COUNT 0 THIS BLOCK EXECUTED
|
|||||||
|
|
||||||
|
|
||||||
//alert.present();
|
//alert.present();
|
||||||
let users = this.aws.getlocale();
|
let users = localStorage.getItem('pd_user_details')
|
||||||
|
users=JSON.parse(users).userid
|
||||||
if(!this.overallqustioncountAccess){// For checking Answered Forms
|
if(!this.overallqustioncountAccess){// For checking Answered Forms
|
||||||
this.toast.pdTriggerappmessage("Please complete all the Forms");
|
this.toast.pdTriggerappmessage("Please complete all the Forms");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -110,7 +110,8 @@ export class PdQuestionAddressPage {
|
|||||||
this.FormId = this.navParams.get('FormId');
|
this.FormId = this.navParams.get('FormId');
|
||||||
this.lender_short_name=this.pdDetails.lender_short_name
|
this.lender_short_name=this.pdDetails.lender_short_name
|
||||||
this.product_abbr=this.pdDetails.product_abbr
|
this.product_abbr=this.pdDetails.product_abbr
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,8 @@ export class PdQuestionAssessedBusinessIncomePage {
|
|||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.expenseDetails = this.navParams.get('income');
|
this.expenseDetails = this.navParams.get('income');
|
||||||
|
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.BuissnessForm = this.fb.group(
|
this.BuissnessForm = this.fb.group(
|
||||||
{
|
{
|
||||||
busIncome:this.fb.array([]),
|
busIncome:this.fb.array([]),
|
||||||
|
|||||||
@ -40,7 +40,8 @@ export class PdQuestionAssessedBusinessPage {
|
|||||||
|
|
||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.expenseDetails = this.navParams.get('expense');
|
this.expenseDetails = this.navParams.get('expense');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.BuissnessForm = this.fb.group(
|
this.BuissnessForm = this.fb.group(
|
||||||
{
|
{
|
||||||
busExpense:this.fb.array([]),
|
busExpense:this.fb.array([]),
|
||||||
|
|||||||
@ -49,7 +49,8 @@ export class PdQuestionAssessedDailyPurchasePage {
|
|||||||
this.purchaseData=this.navParams.get('purchaseDaily')
|
this.purchaseData=this.navParams.get('purchaseDaily')
|
||||||
console.log("data",this.purchaseData);
|
console.log("data",this.purchaseData);
|
||||||
this.margin_calculation_status=this.navParams.get('margin_calculation_status');
|
this.margin_calculation_status=this.navParams.get('margin_calculation_status');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
this.purchaseItemForm=this.fb.group({
|
this.purchaseItemForm=this.fb.group({
|
||||||
// purchase_item:[''],
|
// purchase_item:[''],
|
||||||
|
|||||||
@ -52,7 +52,8 @@ export class PdQuestionAssessedDailySalesPage {
|
|||||||
this.salesDaily = this.navParams.get('salesDaily');
|
this.salesDaily = this.navParams.get('salesDaily');
|
||||||
// this.grossprofitCalc = this.navParams.get('grossprofit');
|
// this.grossprofitCalc = this.navParams.get('grossprofit');
|
||||||
this.margin_calculation_status=this.navParams.get('margin_calculation_status');
|
this.margin_calculation_status=this.navParams.get('margin_calculation_status');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.currentDate = constant.getcurrentDate().replace("T00:00",'');
|
this.currentDate = constant.getcurrentDate().replace("T00:00",'');
|
||||||
|
|
||||||
this.salesDailyForm = this.fb.group(
|
this.salesDailyForm = this.fb.group(
|
||||||
|
|||||||
@ -50,7 +50,8 @@ export class PdQuestionAssessedDashPage {
|
|||||||
|
|
||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.FormId = this.navParams.get('formDetails');
|
this.FormId = this.navParams.get('formDetails');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.assessedForm = this.fb.group(
|
this.assessedForm = this.fb.group(
|
||||||
{
|
{
|
||||||
calc_type_id:[null],
|
calc_type_id:[null],
|
||||||
|
|||||||
@ -37,7 +37,8 @@ export class PdQuestionAssessedHouseholdPage {
|
|||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.houseExpenseDetails = this.navParams.get('FormId');
|
this.houseExpenseDetails = this.navParams.get('FormId');
|
||||||
this.expenseDetails = this.navParams.get('expense');
|
this.expenseDetails = this.navParams.get('expense');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.houseHoldForm = this.fb.group(
|
this.houseHoldForm = this.fb.group(
|
||||||
{
|
{
|
||||||
houseExpense:this.fb.array([]),
|
houseExpense:this.fb.array([]),
|
||||||
|
|||||||
@ -106,7 +106,8 @@ export class PdQuestionAssessedInfoPage {
|
|||||||
this.FormName = "Question Page";
|
this.FormName = "Question Page";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.assessedForm = this.fb.group(
|
this.assessedForm = this.fb.group(
|
||||||
{
|
{
|
||||||
sdc_id:[null],
|
sdc_id:[null],
|
||||||
|
|||||||
@ -51,7 +51,8 @@ export class PdQuestionAssessedPurchasePage {
|
|||||||
this.purchaseDetails = this.navParams.get('purchase');
|
this.purchaseDetails = this.navParams.get('purchase');
|
||||||
console.log("purchase",this.purchaseDetails)
|
console.log("purchase",this.purchaseDetails)
|
||||||
console.log("pd",this.pdDetails);
|
console.log("pd",this.pdDetails);
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.rawMaterialForm = this.fb.group(
|
this.rawMaterialForm = this.fb.group(
|
||||||
{
|
{
|
||||||
purchase:this.fb.array([]),
|
purchase:this.fb.array([]),
|
||||||
|
|||||||
@ -56,7 +56,8 @@ export class PdQuestionAssessedSalesPage {
|
|||||||
this.FormId = this.navParams.get('FormId');
|
this.FormId = this.navParams.get('FormId');
|
||||||
//this.grossprofitCalc = this.navParams.get('grossprofit');
|
//this.grossprofitCalc = this.navParams.get('grossprofit');
|
||||||
this.margin_calculation_status=this.navParams.get('margin_calculation_status');
|
this.margin_calculation_status=this.navParams.get('margin_calculation_status');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.assessedForm = this.fb.group(
|
this.assessedForm = this.fb.group(
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -83,7 +83,8 @@ export class PdQuestionAssestsPage {
|
|||||||
this.lender_short_name=this.pdDetails.lender_short_name
|
this.lender_short_name=this.pdDetails.lender_short_name
|
||||||
this.product_abbr=this.pdDetails.product_abbr
|
this.product_abbr=this.pdDetails.product_abbr
|
||||||
this.pdid=this.pdDetails.pd_id;
|
this.pdid=this.pdDetails.pd_id;
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.applicants = this.pdDetails.applicat_details;
|
this.applicants = this.pdDetails.applicat_details;
|
||||||
this.applicants=this.applicants.filter(val=>val.applicant_type==0 || val.applicant_type==1)
|
this.applicants=this.applicants.filter(val=>val.applicant_type==0 || val.applicant_type==1)
|
||||||
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
||||||
|
|||||||
@ -67,7 +67,8 @@ export class PdQuestionBankingPage {
|
|||||||
|
|
||||||
|
|
||||||
// alert();
|
// alert();
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.bankDetails = this.fb.group(
|
this.bankDetails = this.fb.group(
|
||||||
{
|
{
|
||||||
bankitems:this.fb.array([]),
|
bankitems:this.fb.array([]),
|
||||||
|
|||||||
@ -89,7 +89,8 @@ export class PdQuestionBusinessAssetsPage {
|
|||||||
this.lender_short_name=this.pdDetails.lender_short_name
|
this.lender_short_name=this.pdDetails.lender_short_name
|
||||||
this.product_abbr=this.pdDetails.product_abbr
|
this.product_abbr=this.pdDetails.product_abbr
|
||||||
this.formDetails=this.navParams.get('formDetails');
|
this.formDetails=this.navParams.get('formDetails');
|
||||||
this.users=this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.company_id=this.pdDetails.company_id;
|
this.company_id=this.pdDetails.company_id;
|
||||||
this.applicants = this.pdDetails.applicat_details;
|
this.applicants = this.pdDetails.applicat_details;
|
||||||
this.applicants = this.applicants.filter(appt=>appt.applicant_type != 2)
|
this.applicants = this.applicants.filter(appt=>appt.applicant_type != 2)
|
||||||
|
|||||||
@ -82,7 +82,8 @@ step:number
|
|||||||
this.generalExistBusinessYear=this.pdDetails.business_years
|
this.generalExistBusinessYear=this.pdDetails.business_years
|
||||||
|
|
||||||
|
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.step=0
|
this.step=0
|
||||||
this.bankingForm = this.fb.group(
|
this.bankingForm = this.fb.group(
|
||||||
{
|
{
|
||||||
|
|||||||
@ -111,7 +111,8 @@ export class PdQuestionBusinessInfoPage {
|
|||||||
this.formdetails = this.navParams.get('formDetails');
|
this.formdetails = this.navParams.get('formDetails');
|
||||||
|
|
||||||
this.FormId = this.formdetails.form_id;
|
this.FormId = this.formdetails.form_id;
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
this.applicants = this.pdDetails.applicat_details;
|
this.applicants = this.pdDetails.applicat_details;
|
||||||
console.log("pd", this.pdDetails);
|
console.log("pd", this.pdDetails);
|
||||||
|
|||||||
@ -69,7 +69,8 @@ export class PdQuestionClientInfoPage {
|
|||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.lender_short_name=this.pdDetails.lender_short_name
|
this.lender_short_name=this.pdDetails.lender_short_name
|
||||||
this.formDetails = this.navParams.get('formDetails');
|
this.formDetails = this.navParams.get('formDetails');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.pdid = this.pdDetails.pd_id;
|
this.pdid = this.pdDetails.pd_id;
|
||||||
this.company_id = this.pdDetails.company_id;
|
this.company_id = this.pdDetails.company_id;
|
||||||
this.pd_value_params={pd_id:this.pdDetails.pd_id,form_id:this.formDetails.form_id,company_id:this.pdDetails.company_id}
|
this.pd_value_params={pd_id:this.pdDetails.pd_id,form_id:this.formDetails.form_id,company_id:this.pdDetails.company_id}
|
||||||
|
|||||||
@ -87,7 +87,8 @@ export class PdQuestionFinancialInfoPage {
|
|||||||
this.FormId = this.formDetails.form_id;
|
this.FormId = this.formDetails.form_id;
|
||||||
// this.FormId=this.navParams.get('FormId');
|
// this.FormId=this.navParams.get('FormId');
|
||||||
this.company_id=this.pdDetails.company_id
|
this.company_id=this.pdDetails.company_id
|
||||||
this.users=this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
let x = this.pdDetails.customer_segment_abbr.split("-");
|
let x = this.pdDetails.customer_segment_abbr.split("-");
|
||||||
this.CustSegAbbr=x[1]
|
this.CustSegAbbr=x[1]
|
||||||
this.lender_short_name = this.pdDetails.lender_short_name;
|
this.lender_short_name = this.pdDetails.lender_short_name;
|
||||||
|
|||||||
@ -55,7 +55,8 @@ export class PdQuestionFuturePlansAndBusinessEnvironmentPage {
|
|||||||
this.pdid = this.pdDetails.pd_id
|
this.pdid = this.pdDetails.pd_id
|
||||||
this.FormId = this.formDetails.form_id;
|
this.FormId = this.formDetails.form_id;
|
||||||
this.company_id=this.pdDetails.company_id
|
this.company_id=this.pdDetails.company_id
|
||||||
this.users = aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.lender_short_name = this.pdDetails.lender_short_name;
|
this.lender_short_name = this.pdDetails.lender_short_name;
|
||||||
this.product_abbr = this.pdDetails.product_abbr;
|
this.product_abbr = this.pdDetails.product_abbr;
|
||||||
this.complete_status = this.pdDetails.pd_status == 'COMPLETED' ? true : false;
|
this.complete_status = this.pdDetails.pd_status == 'COMPLETED' ? true : false;
|
||||||
|
|||||||
@ -84,7 +84,8 @@ export class PdQuestionStockInfoPage {
|
|||||||
this.lender_short_name=this.pdDetails.lender_short_name
|
this.lender_short_name=this.pdDetails.lender_short_name
|
||||||
this.product_abbr=this.pdDetails.product_abbr
|
this.product_abbr=this.pdDetails.product_abbr
|
||||||
this.formDetails = this.navParams.get('formDetails');
|
this.formDetails = this.navParams.get('formDetails');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.company_id = this.pdDetails.company_id;
|
this.company_id = this.pdDetails.company_id;
|
||||||
this.pdid = this.pdDetails.pd_id;
|
this.pdid = this.pdDetails.pd_id;
|
||||||
this.qustCat.stockFormAccess(this.pdid, this.company_id).subscribe(data => {
|
this.qustCat.stockFormAccess(this.pdid, this.company_id).subscribe(data => {
|
||||||
|
|||||||
@ -67,7 +67,8 @@ export class PdQuestionSupplierInfoPage {
|
|||||||
this.formDetails = this.navParams.get('formDetails');
|
this.formDetails = this.navParams.get('formDetails');
|
||||||
this.form_id = this.formDetails.form_id;
|
this.form_id = this.formDetails.form_id;
|
||||||
this.company_id = this.pdDetails.company_id;
|
this.company_id = this.pdDetails.company_id;
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
|
|
||||||
this.pd_value_params={pd_id:this.pdDetails.pd_id,form_id:this.formDetails.form_id,company_id:this.pdDetails.company_id}
|
this.pd_value_params={pd_id:this.pdDetails.pd_id,form_id:this.formDetails.form_id,company_id:this.pdDetails.company_id}
|
||||||
|
|||||||
@ -81,7 +81,8 @@ applicants: any;
|
|||||||
|
|
||||||
this.getdropdown();
|
this.getdropdown();
|
||||||
|
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.currentLoans = this.fb.group(
|
this.currentLoans = this.fb.group(
|
||||||
{
|
{
|
||||||
existing_loan: [null],
|
existing_loan: [null],
|
||||||
|
|||||||
@ -72,7 +72,8 @@ export class PdQuestionEmpInfoPage {
|
|||||||
this.FormId = this.navParams.get('FormId');
|
this.FormId = this.navParams.get('FormId');
|
||||||
this.questionDetails = this.navParams.get('questionDetails');
|
this.questionDetails = this.navParams.get('questionDetails');
|
||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.pdid=this.pdDetails.pd_id;
|
this.pdid=this.pdDetails.pd_id;
|
||||||
this.customer_segment_abbr = this.pdDetails.customer_segment_abbr;
|
this.customer_segment_abbr = this.pdDetails.customer_segment_abbr;
|
||||||
this.pd_cus_segment = this.pdDetails.customer_segment_abbr.toUpperCase();
|
this.pd_cus_segment = this.pdDetails.customer_segment_abbr.toUpperCase();
|
||||||
|
|||||||
@ -93,7 +93,8 @@ data:any;
|
|||||||
this.product_abbr=this.pdDetails.product_abbr
|
this.product_abbr=this.pdDetails.product_abbr
|
||||||
this.selected_person=this.pdDetails.pdapplicants_details;
|
this.selected_person=this.pdDetails.pdapplicants_details;
|
||||||
this.selectPerson=this.pdDetails.applicat_details
|
this.selectPerson=this.pdDetails.applicat_details
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
|
|
||||||
this.familyForm = this.fb.group({
|
this.familyForm = this.fb.group({
|
||||||
|
|||||||
@ -57,7 +57,8 @@ export class PdQuestionFinalRemarkPage {
|
|||||||
this.pdDetails=this.navParams.get('pdDetails');
|
this.pdDetails=this.navParams.get('pdDetails');
|
||||||
this.pdid=this.pdDetails.pd_id
|
this.pdid=this.pdDetails.pd_id
|
||||||
this.FormId=this.navParams.get('FormId');
|
this.FormId=this.navParams.get('FormId');
|
||||||
this.users=aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.lender_short_name = this.pdDetails.lender_short_name;
|
this.lender_short_name = this.pdDetails.lender_short_name;
|
||||||
this.product_abbr = this.pdDetails.product_abbr;
|
this.product_abbr = this.pdDetails.product_abbr;
|
||||||
|
|
||||||
|
|||||||
@ -110,7 +110,8 @@ export class PdQuestionGeneralInfoPage {
|
|||||||
this.FormId = this.navParams.get('FormId');
|
this.FormId = this.navParams.get('FormId');
|
||||||
this.customer_segment_abbr = this.pdDetails.customer_segment_abbr;
|
this.customer_segment_abbr = this.pdDetails.customer_segment_abbr;
|
||||||
// console.log('this.customer_segment_abbr',this.customer_segment_abbr)
|
// console.log('this.customer_segment_abbr',this.customer_segment_abbr)
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
|
|
||||||
this.generalForm = this.fb.group({
|
this.generalForm = this.fb.group({
|
||||||
|
|||||||
@ -41,7 +41,8 @@ export class PdQuestionLenderRepresentativePage {
|
|||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.FormId = this.navParams.get('FormId');
|
this.FormId = this.navParams.get('FormId');
|
||||||
|
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.representativeForm = this.fb.group({
|
this.representativeForm = this.fb.group({
|
||||||
parent_pdid:[this.pdDetails.parent_pd_id],
|
parent_pdid:[this.pdDetails.parent_pd_id],
|
||||||
pdid:[this.pdDetails.pd_id],
|
pdid:[this.pdDetails.pd_id],
|
||||||
|
|||||||
@ -110,7 +110,8 @@ export class PdQuestionLoansPage {
|
|||||||
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2 && appt.applicant_type != 3);
|
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2 && appt.applicant_type != 3);
|
||||||
this.productAbbr = this.pdDetails.product_abbr;
|
this.productAbbr = this.pdDetails.product_abbr;
|
||||||
this.subProductName = this.pdDetails.subproduct_name;
|
this.subProductName = this.pdDetails.subproduct_name;
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.pdid=this.pdDetails.pd_id;
|
this.pdid=this.pdDetails.pd_id;
|
||||||
this.lender_short_name = this.pdDetails.lender_short_name;
|
this.lender_short_name = this.pdDetails.lender_short_name;
|
||||||
|
|
||||||
@ -351,7 +352,7 @@ export class PdQuestionLoansPage {
|
|||||||
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) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
else if (data.group_name == that.pdDetails.product_abbr && data.sub_group_name == null || data.sub_group_name == '' && data.isactive == 1) {
|
else if (data.group_name == that.pdDetails.product_abbr && (data.sub_group_name == null || data.sub_group_name == '') && data.isactive == 1) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -525,7 +526,7 @@ export class PdQuestionLoansPage {
|
|||||||
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) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
else if (data.group_name == that.pdDetails.product_abbr && data.sub_group_name == null || data.sub_group_name == '' && data.isactive == 1) {
|
else if (data.group_name == that.pdDetails.product_abbr && (data.sub_group_name == null || data.sub_group_name == '') && data.isactive == 1) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -74,7 +74,8 @@ export class PdQuestionNeighbourHoodPage {
|
|||||||
referencecheck_list: this.fb.array([]),
|
referencecheck_list: this.fb.array([]),
|
||||||
neighbour_reference_remark:''
|
neighbour_reference_remark:''
|
||||||
})
|
})
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
|
|
||||||
this.getdropdown();
|
this.getdropdown();
|
||||||
|
|||||||
@ -69,8 +69,8 @@ export class PdQuestionOtherIncomePage {
|
|||||||
this.applicants=this.pdDetails.applicat_details.filter(val=>val.pd_co_applicant_id != 0)
|
this.applicants=this.pdDetails.applicat_details.filter(val=>val.pd_co_applicant_id != 0)
|
||||||
//this.applicants.push({'pd_co_applicant_id': 0,'applicant_name': "Others"})
|
//this.applicants.push({'pd_co_applicant_id': 0,'applicant_name': "Others"})
|
||||||
this.getFrequency();
|
this.getFrequency();
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
// this.qustCat.getLoadTemplate(this.pdid).subscribe(res=>
|
// this.qustCat.getLoadTemplate(this.pdid).subscribe(res=>
|
||||||
// {
|
// {
|
||||||
// this.one = res;
|
// this.one = res;
|
||||||
|
|||||||
@ -46,7 +46,8 @@ export class PdQuestionPersonalInfoPage implements OnInit{
|
|||||||
|
|
||||||
this.questionDetails = this.navParams.get('questionDetails');
|
this.questionDetails = this.navParams.get('questionDetails');
|
||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
|
|
||||||
|
|
||||||
// this.getRelationMaster();
|
// this.getRelationMaster();
|
||||||
|
|||||||
@ -95,7 +95,8 @@ export class PdQuestionRentalInfoPage {
|
|||||||
this.pageTitle = this.data.manage_status==1 ? 'Add RI Details' : 'Update RI Details';
|
this.pageTitle = this.data.manage_status==1 ? 'Add RI Details' : 'Update RI Details';
|
||||||
this.FormId = this.navParams.get('FormId');
|
this.FormId = this.navParams.get('FormId');
|
||||||
this.pdDetails = this.navParams.get('pdDetails');
|
this.pdDetails = this.navParams.get('pdDetails');
|
||||||
this.users = this.aws.getlocale();
|
this.users = localStorage.getItem('pd_user_details')
|
||||||
|
this.users=JSON.parse(this.users).userid
|
||||||
this.applicants = this.pdDetails.applicat_details;
|
this.applicants = this.pdDetails.applicat_details;
|
||||||
this.applicants=this.applicants.filter(val=>val.applicant_type==0 || val.applicant_type==1)
|
this.applicants=this.applicants.filter(val=>val.applicant_type==0 || val.applicant_type==1)
|
||||||
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
||||||
|
|||||||
@ -62,7 +62,8 @@ export class PdQuestionPage {
|
|||||||
questionRemarks:[null]
|
questionRemarks:[null]
|
||||||
})
|
})
|
||||||
this.getpdQuestionDetails();
|
this.getpdQuestionDetails();
|
||||||
this.userid = this.aws.getlocale();
|
this.userid = localStorage.getItem('pd_user_details')
|
||||||
|
this.userid=JSON.parse(this.userid).userid
|
||||||
}
|
}
|
||||||
|
|
||||||
ionViewDidLoad() {
|
ionViewDidLoad() {
|
||||||
|
|||||||
@ -66,7 +66,7 @@ public commonimage = "http://pdgenie.com/logo/avatar.jpg";
|
|||||||
userPoolId:'ap-south-1_qQ85yQZJO',
|
userPoolId:'ap-south-1_qQ85yQZJO',
|
||||||
clientId:'2o5c3cs9k3als16nqhp3irh8rs' //for mobile
|
clientId:'2o5c3cs9k3als16nqhp3irh8rs' //for mobile
|
||||||
}
|
}
|
||||||
return production;
|
return testing;
|
||||||
}
|
}
|
||||||
|
|
||||||
getcurrentDate()
|
getcurrentDate()
|
||||||
|
|||||||
@ -66,7 +66,7 @@ insertData(data){
|
|||||||
}
|
}
|
||||||
|
|
||||||
insertPDImageLocally(data){
|
insertPDImageLocally(data){
|
||||||
this.toast.pdTriggerappmessage(this.storage.driver);
|
// this.toast.pdTriggerappmessage(this.storage.driver);
|
||||||
const storage_key=data.storage_key
|
const storage_key=data.storage_key
|
||||||
console.log("storage provider")
|
console.log("storage provider")
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user