Fairoj : Unwanted code removed

This commit is contained in:
saravanakumarkandasami 2019-07-24 19:53:42 +05:30
parent 35feb47114
commit 6c5fb2195a
31 changed files with 100 additions and 189 deletions

View File

@ -1 +1 @@
{"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 = 713\n// module chunks = 0"],"sourceRoot":""} {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="com.sineedge.pdgenie" version="0.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="com.sineedge.pdgenie" version="0.0.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>PD Genie Officer </name> <name>PD Genie Officer </name>
<description>info@pdgenie.com</description> <description>info@pdgenie.com</description>
<author email="info@pdgenie.com" href="https://pdgenie.com">PD Genie</author> <author email="info@pdgenie.com" href="https://pdgenie.com">PD Genie</author>

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="4" android:versionName="0.0.4" package="com.sineedge.pdgenie" xmlns:android="http://schemas.android.com/apk/res/android"> <manifest android:hardwareAccelerated="true" android:versionCode="5" android:versionName="0.0.5" package="com.sineedge.pdgenie" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true"> <application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="com.sineedge.pdgenie" version="0.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="com.sineedge.pdgenie" version="0.0.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="ActionSheet"> <feature name="ActionSheet">
<param name="android-package" value="nl.xservices.plugins.actionsheet.ActionSheet" /> <param name="android-package" value="nl.xservices.plugins.actionsheet.ActionSheet" />
</feature> </feature>

Binary file not shown.

Binary file not shown.

View File

@ -8,39 +8,12 @@
</ion-header> </ion-header>
<ion-content> <ion-content>
<ion-grid> <ion-grid>
<!-- <mat-card class="md-box" reorder="true" *ngFor="let progess of pdcomplete;let i = index;">
<ion-list>
<ion-item (click)="PdAllocation(progess)">
<ion-icon item-start="" class="lettericon" [style.background]="bgColor[i]">{{progess.applicat_details[0].applicant_name | slice : 0 :1 | uppercase}}</ion-icon>
<ion-row>
<ion-col col-5 *ngIf="progess.applicat_details.length !=0 && progess.applicat_details[0].applicant_type == 1">
<h1>{{progess.applicat_details[0].applicant_name | titlecase}}</h1>
</ion-col>
<ion-col text-right>
<div style="font-size: 13px;">
<h6>{{progess.pd_date_of_initiation}}</h6>
<h6>{{progess.city_name}}</h6>
</div>
</ion-col>
</ion-row>
<ion-row>
<ion-col col-5>
<h6>{{progess.lender_short_name}}, {{progess.lender_applicant_id}}</h6>
</ion-col>
<ion-col text-right>
<h6>{{progess.pd_status}}</h6>
</ion-col>
</ion-row>
</ion-item>
</ion-list>
<hr/>
</mat-card> -->
<mat-card class="md-box" reorder="true" *ngFor="let progess of pdcomplete;let i = index;"> <mat-card class="md-box" reorder="true" *ngFor="let progess of pdcomplete;let i = index;">
<ion-list > <ion-list >
<!-- WITH APPLICANT DETAILS --> <!-- WITH APPLICANT DETAILS -->
<ion-item (click)="PdAllocation(progess)" *ngIf="progess.is_child != 1"> <ion-item (click)="PdAllocation(progess)" *ngIf="progess.is_child != 1">
<!-- <ion-icon item-start="" class="lettericon" [style.background]="bgColor[i]">{{progess.applicat_details[0].applicant_name | slice : 0 :1 | uppercase}}</ion-icon> -->
<p item-start class="lettericon" [style.background]="bgColorPast[i]">{{progess.pd_id}}</p> <p item-start class="lettericon" [style.background]="bgColorPast[i]">{{progess.pd_id}}</p>
<ion-row> <ion-row>
<ion-col col-7 *ngIf="progess.applicat_details.length !=0 && progess.applicat_details[0].applicant_type == 1"> <ion-col col-7 *ngIf="progess.applicat_details.length !=0 && progess.applicat_details[0].applicant_type == 1">

View File

@ -1,9 +1,4 @@
<!--
Generated template for the FormCompleteCheckModalPage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header> <ion-header>
<ion-navbar color="#00008b"> <ion-navbar color="#00008b">

View File

@ -10,22 +10,7 @@
<ion-content padding> <ion-content padding>
<!-- <ion-card>
<ion-list>
<ion-radio-group>
<ion-list-header>
Reason
</ion-list-header>
<ion-item *ngFor="let bouns of bounseMaster">
<ion-label>{{bouns.bounce_reason_name}}</ion-label>
<ion-radio [value]="bouns.bounce_id"></ion-radio>
</ion-item>
</ion-radio-group>
</ion-list>
</ion-card> -->
<mat-card > <mat-card >
<mat-card-content> <mat-card-content>

View File

@ -1,9 +1,9 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, ViewController } from 'ionic-angular'; import { NavController, NavParams, ViewController } from 'ionic-angular';
import { AwsServiceProvider } from '../../../providers/aws-service/aws-service'; import { AwsServiceProvider } from '../../../providers/aws-service/aws-service';
import { PdtriggerProvider } from '../../../providers/pdtrigger/pdtrigger'; import { PdtriggerProvider } from '../../../providers/pdtrigger/pdtrigger';
import { QuestionCategoryProvider } from '../../../providers/question-category/question-category'; import { QuestionCategoryProvider } from '../../../providers/question-category/question-category';
import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { FormBuilder } from '@angular/forms';
import { PdListPage } from '../../pd-list/pd-list'; import { PdListPage } from '../../pd-list/pd-list';
import {ToastProvider} from '../../../providers/common-provider/toast' import {ToastProvider} from '../../../providers/common-provider/toast'
@ -33,7 +33,7 @@ export class BouncedRejectPage {
// this.pdDetails = this.navParams.get('appdetails'); // this.pdDetails = this.navParams.get('appdetails');
// this.status = this.navParams.get('status'); // this.status = this.navParams.get('status');
this.pdDetails=this.navParams.get('details') this.pdDetails=this.navParams.get('details')
console.log(this.pdDetails)
this.users = this.aws.getlocale(); this.users = this.aws.getlocale();
this.getDropdown(); this.getDropdown();

View File

@ -16,16 +16,7 @@
<ion-content padding> <ion-content padding>
<!--Fab with Mulitple Options-->
<!-- <ion-fab middle right >
<button ion-fab mini color="optblue"><ion-icon name="arrow-dropdown"></ion-icon></button>
<ion-fab-list>
<a ion-fab href="tel:?{{applicatentDetails.applicat_details[0].mobile_no}}"color="secondary"><ion-icon name="call"></ion-icon></a>
<a *ngIf="startedAccess" (click)="camerasetup();" ion-fab color="optblue"><ion-icon name="camera"></ion-icon></a>
</ion-fab-list>
</ion-fab> -->
<mat-card style=" border-radius: 10px;"> <mat-card style=" border-radius: 10px;">
<ion-row *ngIf="other_applicant[0]"> <ion-row *ngIf="other_applicant[0]">
<ion-col class="cardinfo"><ion-icon name="contact"></ion-icon>&nbsp; {{mainApplicant.applicant_name | titlecase}}</ion-col> <ion-col class="cardinfo"><ion-icon name="contact"></ion-icon>&nbsp; {{mainApplicant.applicant_name | titlecase}}</ion-col>

View File

@ -122,7 +122,7 @@ page-input{
border-radius: 10px; border-radius: 10px;
} }
.inprogress_btn{ .inprogress_btn{
//float: right;
position: relative; position: relative;
left:80%; left:80%;
// top: 50%; // top: 50%;
@ -134,7 +134,7 @@ page-input{
color:black; color:black;
} }
.doc_icon{ .doc_icon{
// font-size:150px;
height: 180px; height: 180px;
width: 100px; width: 100px;
} }

View File

@ -1,25 +1,25 @@
import { Component, ElementRef,ViewChild } from '@angular/core'; import { Component,ViewChild } from '@angular/core';
import { IonicPage, NavController, NavParams,AlertController, Content,ModalController,ModalOptions } from 'ionic-angular'; import { NavController, NavParams,AlertController, Content,ModalController,ModalOptions } from 'ionic-angular';
import {Validators, FormBuilder, FormGroup, FormArray } from '@angular/forms'; import { FormBuilder } from '@angular/forms';
// import {MomentDateAdapter} from '@angular/material-moment-adapter'; // import {MomentDateAdapter} from '@angular/material-moment-adapter';
import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/core'; // import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/core';
import {MatDatepicker} from '@angular/material/datepicker'; // import {MatDatepicker} from '@angular/material/datepicker';
import { StatusBar } from '@ionic-native/status-bar'; import { StatusBar } from '@ionic-native/status-bar';
import { Platform } from '@angular/cdk/platform'; import { Platform } from '@angular/cdk/platform';
import {LaunchNavigator,LaunchNavigatorOptions } from '@ionic-native/launch-navigator'; import {LaunchNavigator } from '@ionic-native/launch-navigator';
import { AuthPage } from '../auth/auth'; // import { AuthPage } from '../auth/auth';
import { PdtriggerProvider } from '../../providers/pdtrigger/pdtrigger'; import { PdtriggerProvider } from '../../providers/pdtrigger/pdtrigger';
import { AwsServiceProvider } from '../../providers/aws-service/aws-service'; import { AwsServiceProvider } from '../../providers/aws-service/aws-service';
import { PdListPage } from '../pd-list/pd-list'; // import { PdListPage } from '../pd-list/pd-list';
import { OtpPage } from '../otp/otp'; import { OtpPage } from '../otp/otp';
import { Geolocation, PositionError, Geoposition } from '@ionic-native/geolocation'; import { Geolocation, Geoposition } from '@ionic-native/geolocation';
import {DatePipe } from '@angular/common'; import {DatePipe } from '@angular/common';
import { LocationAccuracy } from '@ionic-native/location-accuracy'; import { LocationAccuracy } from '@ionic-native/location-accuracy';
import { ToastProvider } from '../../providers/common-provider/toast'; import { ToastProvider } from '../../providers/common-provider/toast';
import { observable, Observable } from 'rxjs'; // import { observable, Observable } from 'rxjs';
import { ERR_PLUGIN_NOT_INSTALLED } from '@ionic-native/core'; // import { ERR_PLUGIN_NOT_INSTALLED } from '@ionic-native/core';
import { ConstantsProvider } from '../../providers/constants/constants'; import { ConstantsProvider } from '../../providers/constants/constants';
import { PdGeneralImagesPage } from '../pd-general-images/pd-general-images'; import { PdGeneralImagesPage } from '../pd-general-images/pd-general-images';
import { AndroidPermissions } from '@ionic-native/android-permissions'; import { AndroidPermissions } from '@ionic-native/android-permissions';
@ -145,10 +145,6 @@ checkOtpAccess:boolean = false;
this.getFullPD(); this.getFullPD();
} }
// ionViewDidEnter(){
// console.log("ionViewDidEnter")
// this.getFullPD();
// }
ionViewDidLoad() { ionViewDidLoad() {
this.setPermission(); this.setPermission();
@ -164,7 +160,7 @@ checkOtpAccess:boolean = false;
// var address_full:string=address+' ' +this.applicatentDetails.city_name+' ' +this.applicatentDetails.state_name+' '+ (this.applicatentDetails.pincode != 'Others' ? this.applicatentDetails.pincode : this.applicatentDetails.other_pincode) // var address_full:string=address+' ' +this.applicatentDetails.city_name+' ' +this.applicatentDetails.state_name+' '+ (this.applicatentDetails.pincode != 'Others' ? this.applicatentDetails.pincode : this.applicatentDetails.other_pincode)
let data=this.addresses[index] let data=this.addresses[index]
var address_full:string= data.addressline1+' ' +data.city_name+' ' +data.state_name+'-'+(data.pincode != 'Others' ? data.pincode : data.other_pincode) var address_full:string= data.addressline1+' ' +data.city_name+' ' +data.state_name+'-'+(data.pincode != 'Others' ? data.pincode : data.other_pincode)
//console.log("add",address_full)
this.launchNavigator.navigate(address_full); this.launchNavigator.navigate(address_full);
} }
@ -203,25 +199,25 @@ checkOtpAccess:boolean = false;
else{ else{
this.requirement_hide=false; this.requirement_hide=false;
} }
console.log("req",this.add_requirements.length);
console.log("req",this.requirement_hide);
this.other_applicant=res['records'].applicants_details this.other_applicant=res['records'].applicants_details
this.mainApplicant=res['records'].applicants_details[0] this.mainApplicant=res['records'].applicants_details[0]
this.pdMaster=res['records'].pd_master_details[0] this.pdMaster=res['records'].pd_master_details[0]
console.log("other",this.mainApplicant)
this.addresses=res['records'].pd_address this.addresses=res['records'].pd_address
this.address_pd_id=this.addresses.addtional_pd_data this.address_pd_id=this.addresses.addtional_pd_data
//FOR GETTING THE ALLOCATED/SCHEDULE/INITIATE PDID //FOR GETTING THE ALLOCATED/SCHEDULE/INITIATE PDID
this.addresses.forEach(res=>{ this.addresses.forEach(res=>{
console.log("address",res);
if(res.addtional_pd_data.length != 0){ if(res.addtional_pd_data.length != 0){
if(res.addtional_pd_data[0].pd_status == 'ALLOCATED' || res.addtional_pd_data[0].pd_status == 'ACCEPTED' || res.addtional_pd_data[0].pd_status == 'SCHEDULED' || res.addtional_pd_data[0].pd_status == 'INITIATED' || res.addtional_pd_data[0].pd_status == 'STARTED' || res.addtional_pd_data[0].pd_status == 'INPROGRESS'){ if(res.addtional_pd_data[0].pd_status == 'ALLOCATED' || res.addtional_pd_data[0].pd_status == 'ACCEPTED' || res.addtional_pd_data[0].pd_status == 'SCHEDULED' || res.addtional_pd_data[0].pd_status == 'INITIATED' || res.addtional_pd_data[0].pd_status == 'STARTED' || res.addtional_pd_data[0].pd_status == 'INPROGRESS'){
this.address_pd_id=res.addtional_pd_data[0].pd_id this.address_pd_id=res.addtional_pd_data[0].pd_id
this.address_pd_status=res.addtional_pd_data[0].pd_status this.address_pd_status=res.addtional_pd_data[0].pd_status
this.address_allocated_data=res.addtional_pd_data[0] this.address_allocated_data=res.addtional_pd_data[0]
console.log("pd",this.address_pd_id)
return; return;
} }
} }
@ -242,7 +238,7 @@ checkOtpAccess:boolean = false;
this.initiatedAccess = true; this.initiatedAccess = true;
} }
//console.log(this.initiatedAccess);
if(this.address_pd_status == 'INITIATED') if(this.address_pd_status == 'INITIATED')
{ {
this.startedAccess = true; this.startedAccess = true;
@ -253,8 +249,7 @@ checkOtpAccess:boolean = false;
{ {
this.checkOtpAccess=true; this.checkOtpAccess=true;
} }
console.log("address allocated",this.address_allocated_data);
console.log(this.other_applicant);
if(this.address_allocated_data != '' && this.address_allocated_data !=undefined){ if(this.address_allocated_data != '' && this.address_allocated_data !=undefined){
let courrentDateTime: string = this.pipe.transform(new Date(), 'yyyy-MM-dd HH:mm'); let courrentDateTime: string = this.pipe.transform(new Date(), 'yyyy-MM-dd HH:mm');
let scheduledDateTime: string=this.address_allocated_data.scheduled_on_for_validation; let scheduledDateTime: string=this.address_allocated_data.scheduled_on_for_validation;
@ -299,7 +294,7 @@ checkOtpAccess:boolean = false;
data = {'pd_id':this.address_pd_id,'pd_status':status,'fk_updatedby':this.users,'updatedon':currentdate,'random_string':this.applicatentDetails.random_string}; data = {'pd_id':this.address_pd_id,'pd_status':status,'fk_updatedby':this.users,'updatedon':currentdate,'random_string':this.applicatentDetails.random_string};
this.pdDetails.updatepdStatus(data).subscribe(res=> this.pdDetails.updatepdStatus(data).subscribe(res=>
{ {
console.log('dasdsfdsffds',res);
this.updateStatus = res; this.updateStatus = res;
if(this.updateStatus.dataStatus == true) if(this.updateStatus.dataStatus == true)
{ {
@ -320,10 +315,10 @@ checkOtpAccess:boolean = false;
{ {
let data :any;let param : any; let data :any;let param : any;
console.log(scheduledate);
if(scheduledate != undefined){ if(scheduledate != undefined){
let schDate = scheduledate.slice(0,19).replace('T',' '); let schDate = scheduledate.slice(0,19).replace('T',' ');
console.log(schDate);
data = {'pd_id':this.address_pd_id,'pd_status':'SCHEDULED','scheduled_on':schDate,'fk_updatedby':this.users,'updatedon':currentdate,'random_string':this.applicatentDetails.random_string}; data = {'pd_id':this.address_pd_id,'pd_status':'SCHEDULED','scheduled_on':schDate,'fk_updatedby':this.users,'updatedon':currentdate,'random_string':this.applicatentDetails.random_string};
// this.pdDetails.updatepdStatus(data).subscribe(res=> // this.pdDetails.updatepdStatus(data).subscribe(res=>
//sample format : fk_pd_id: "868", schedule_time: "2019-05-30 18:51", fk_scheduled_by: "165"; //sample format : fk_pd_id: "868", schedule_time: "2019-05-30 18:51", fk_scheduled_by: "165";
@ -381,7 +376,7 @@ checkOtpAccess:boolean = false;
if((resp as Geoposition).coords !=undefined){ if((resp as Geoposition).coords !=undefined){
this.currentPosPDofficer = resp.coords.latitude+","+resp.coords.longitude; this.currentPosPDofficer = resp.coords.latitude+","+resp.coords.longitude;
// this.toast.pdTriggerappmessage(this.currentPosPDofficer); // this.toast.pdTriggerappmessage(this.currentPosPDofficer);
console.log(this.currentPosPDofficer);
data = {'pd_id':this.address_pd_id,'link':this.currentPosPDofficer}; data = {'pd_id':this.address_pd_id,'link':this.currentPosPDofficer};
@ -416,12 +411,12 @@ checkOtpAccess:boolean = false;
debug: false, // enable this hear sounds for background-geolocation life-cycle. debug: false, // enable this hear sounds for background-geolocation life-cycle.
stopOnTerminate: false // enable this to clear background location settings when the app terminates stopOnTerminate: false // enable this to clear background location settings when the app terminates
}; };
console.log("getCurrent Location 1 function")
this.backgroundgeolocation.configure(config).then(()=>{ this.backgroundgeolocation.configure(config).then(()=>{
this.backgroundgeolocation.on(BackgroundGeolocationEvents.location) this.backgroundgeolocation.on(BackgroundGeolocationEvents.location)
.subscribe((location:BackgroundGeolocationResponse)=>{ .subscribe((location:BackgroundGeolocationResponse)=>{
//this.toast.pdTriggerappmessage("alert for loca, "+location) //this.toast.pdTriggerappmessage("alert for loca, "+location)
console.log("background geo location",location);
let pos=location.latitude+","+location.longitude let pos=location.latitude+","+location.longitude
data = {'pd_id':this.address_pd_id,'link':pos}; data = {'pd_id':this.address_pd_id,'link':pos};
@ -454,13 +449,13 @@ checkOtpAccess:boolean = false;
// if((resp as Geoposition).coords !=undefined){ // if((resp as Geoposition).coords !=undefined){
// this.currentPosPDofficer = resp.coords.latitude+","+resp.coords.longitude; // this.currentPosPDofficer = resp.coords.latitude+","+resp.coords.longitude;
// // this.toast.pdTriggerappmessage(this.currentPosPDofficer); // // this.toast.pdTriggerappmessage(this.currentPosPDofficer);
// console.log(this.currentPosPDofficer); //
// data = {'pd_id':this.address_pd_id,'link':this.currentPosPDofficer}; // data = {'pd_id':this.address_pd_id,'link':this.currentPosPDofficer};
// this.pdDetails.saveCurrentLocation(data).subscribe(res=> // this.pdDetails.saveCurrentLocation(data).subscribe(res=>
// { // {
// console.log("geoLocation data",data) //
// // this.updateinitiated = res; // // this.updateinitiated = res;
// // if(this.updateinitiated.dataStatus == true) // // if(this.updateinitiated.dataStatus == true)
// // { // // {
@ -498,7 +493,7 @@ checkOtpAccess:boolean = false;
// resp.coords.latitude // resp.coords.latitude
// resp.coords.longitude // resp.coords.longitude
let mobile_no=this.other_applicant.filter(val=>val.additional_pd_id == this.address_allocated_data.pd_id).map(val=>val.mobile_no)[0] let mobile_no=this.other_applicant.filter(val=>val.additional_pd_id == this.address_allocated_data.pd_id).map(val=>val.mobile_no)[0]
console.log("mobile",mobile_no)
if(mobile_no ==undefined){ if(mobile_no ==undefined){
mobile_no=this.mainApplicant.mobile_no mobile_no=this.mainApplicant.mobile_no
} }
@ -528,10 +523,10 @@ checkOtpAccess:boolean = false;
} }
},error=>{ },error=>{
console.log("currnpd",this.currentPosPDofficer);
alert(JSON.stringify(error)) alert(JSON.stringify(error))
let mobile_no=this.other_applicant.filter(val=>val.additional_pd_id == this.address_allocated_data.pd_id).map(val=>val.mobile_no)[0] let mobile_no=this.other_applicant.filter(val=>val.additional_pd_id == this.address_allocated_data.pd_id).map(val=>val.mobile_no)[0]
console.log("mobile",mobile_no)
if(mobile_no ==undefined){ if(mobile_no ==undefined){
mobile_no=this.mainApplicant.mobile_no mobile_no=this.mainApplicant.mobile_no
} }
@ -541,7 +536,7 @@ checkOtpAccess:boolean = false;
this.updateinitiated = res; this.updateinitiated = res;
if(this.updateinitiated.dataStatus == true) if(this.updateinitiated.dataStatus == true)
{ {
console.log("status","true");
this.getNewpdupdate(); this.getNewpdupdate();
this.getcurrentLocation(); this.getcurrentLocation();
this.getcurrentBackgroundLocation(); this.getcurrentBackgroundLocation();
@ -558,12 +553,12 @@ checkOtpAccess:boolean = false;
this.geolocation.getCurrentPosition().then((resp) => { this.geolocation.getCurrentPosition().then((resp) => {
this.currentPosPDofficer = resp.coords.latitude+","+resp.coords.longitude; this.currentPosPDofficer = resp.coords.latitude+","+resp.coords.longitude;
let mobile_no=this.other_applicant.filter(val=>val.additional_pd_id == this.address_allocated_data.pd_id).map(val=>val.mobile_no)[0] let mobile_no=this.other_applicant.filter(val=>val.additional_pd_id == this.address_allocated_data.pd_id).map(val=>val.mobile_no)[0]
console.log("mobile",mobile_no)
if(mobile_no ==undefined){ if(mobile_no ==undefined){
mobile_no=this.mainApplicant.mobile_no mobile_no=this.mainApplicant.mobile_no
} }
data = {'pd_id':this.address_pd_id,'pd_status':'STARTED','mobile_no':mobile_no,'fk_updatedby':this.users,'updatedon':currentdate,'link':this.currentPosPDofficer,'random_string':this.applicatentDetails.random_string }; data = {'pd_id':this.address_pd_id,'pd_status':'STARTED','mobile_no':mobile_no,'fk_updatedby':this.users,'updatedon':currentdate,'link':this.currentPosPDofficer,'random_string':this.applicatentDetails.random_string };
console.log(data);
this.pdDetails.updatepdStatus(data).subscribe(res=> this.pdDetails.updatepdStatus(data).subscribe(res=>
{ {
this.updatestarted = res; this.updatestarted = res;
@ -571,7 +566,7 @@ if(this.updatestarted.dataStatus == true)
{ {
//appdetails.pd_id=this.address_pd_id //appdetails.pd_id=this.address_pd_id
//clearInterval(this.timeInterval); //clearInterval(this.timeInterval);
//console.log("appdetails",appdetails)
//this.navCtrl.setRoot(OtpPage,{'pdDetails':appdetails}); //this.navCtrl.setRoot(OtpPage,{'pdDetails':appdetails});
this.getNewpdupdate(); this.getNewpdupdate();
this.startedAccess=false this.startedAccess=false
@ -602,8 +597,7 @@ else{
role: 'cancel', role: 'cancel',
handler: () => { handler: () => {
// console.log('Cancel clicked');
// this.toast.pdTriggerappmessage('')
} }
}, },
{ {
@ -631,7 +625,7 @@ else{
this.backgroundgeolocation.finish(); this.backgroundgeolocation.finish();
this.backgroundgeolocation.stop(); this.backgroundgeolocation.stop();
//FOR GIVING THE CORRECT ADDRESS MASTER //FOR GIVING THE CORRECT ADDRESS MASTER
console.log("address",this.address_allocated_data);
//Assigning applicant details to the params //Assigning applicant details to the params
let pdValues= this.address_allocated_data let pdValues= this.address_allocated_data
pdValues.applicat_details=this.other_applicant pdValues.applicat_details=this.other_applicant
@ -644,8 +638,7 @@ else{
} }
getNewpdupdate() getNewpdupdate()
{ {
console.log("Started",this.startedAccess)
console.log("checkOtpAccess",this.checkOtpAccess)
this.acceptedAccess = false; this.acceptedAccess = false;
this.initiatedAccess = false; this.initiatedAccess = false;
this.scheduleAccess = false; this.scheduleAccess = false;
@ -729,7 +722,7 @@ else{
} }
}) })
console.log("app",this.applicatentDetails);
} }
@ -771,22 +764,22 @@ else{
if(!val['msg']){ if(!val['msg']){
// res = this.customfilter(res); // res = this.customfilter(res);
console.log('val[records]',val['records']);
if(val['records'].length>0){ if(val['records'].length>0){
val['records'].forEach(result=>{ val['records'].forEach(result=>{
if(result.pd_document_name != null){ if(result.pd_document_name != null){
let split=result.pd_document_name.split('.') let split=result.pd_document_name.split('.')
console.log("splitted value",split);
this.imageDisplay.push({'image':result.doc_url,'Name':result.pd_document_title,'option':'dummy','type':split[1]}) this.imageDisplay.push({'image':result.doc_url,'Name':result.pd_document_title,'option':'dummy','type':split[1]})
} }
}) })
console.log("imageDisplay",this.imageDisplay);
} }
} }
}) })
} }
changeName(value,index,img){ changeName(value,index,img){
console.log(value);
this.imageDisplay[index]={'image':img,'Name':value} this.imageDisplay[index]={'image':img,'Name':value}
} }
@ -807,14 +800,14 @@ else{
if(res != 'error'){ if(res != 'error'){
this.constant.getGeoTag().then(geoCoordinates=>{ this.constant.getGeoTag().then(geoCoordinates=>{
console.log("geocoords",geoCoordinates)
this.imageBucket.push({'image':res,'Name':'','link':geoCoordinates}); this.imageBucket.push({'image':res,'Name':'','link':geoCoordinates});
//FOR GETTING THE DOC NAME FROM ALERT //FOR GETTING THE DOC NAME FROM ALERT
let alert =this.toast.setAlertForDocName() let alert =this.toast.setAlertForDocName()
alert.present() alert.present()
alert.onDidDismiss(value=>{ alert.onDidDismiss(value=>{
console.log("alert value",value);
if(value){ if(value){
this.imageBucket[this.imageBucket.length-1].Name=value.Name this.imageBucket[this.imageBucket.length-1].Name=value.Name
} }
@ -831,20 +824,20 @@ else{
} }
customfilter(res){ customfilter(res){
console.log('custome filter');
return res.filter(data=>data.fk_form_id != null); return res.filter(data=>data.fk_form_id != null);
} }
sendImage(){ sendImage(){
this.loading.loaderForSendImage() this.loading.loaderForSendImage()
console.log("ll",JSON.stringify(this.imageBucket));
let records:any={ let records:any={
'pd_id':this.applicatentDetails.pd_id, 'pd_id':this.applicatentDetails.pd_id,
'formid':null, 'formid':null,
'images':this.imageBucket, 'images':this.imageBucket,
'company_id':null 'company_id':null
} }
console.log("records",JSON.stringify(records))
this.qustCat.savePDImages(records).subscribe(res=>{ this.qustCat.savePDImages(records).subscribe(res=>{
if(res['dataStatus']== true){ if(res['dataStatus']== true){

View File

@ -1,20 +1,20 @@
import { Component,OnInit, ViewEncapsulation } from '@angular/core'; import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, MenuController, Events, Toast } from 'ionic-angular'; import { NavController, MenuController, Events, Toast } from 'ionic-angular';
import { AlertController } from 'ionic-angular'; // import { AlertController } from 'ionic-angular';
// import {Validators, FormBuilder, FormGroup } from '@angular/forms'; // import {Validators, FormBuilder, FormGroup } from '@angular/forms';
// import { GridPage } from '../grid/grid'; // import { GridPage } from '../grid/grid';
import {Push,PushOptions,PushObject} from '@ionic-native/push' import {Push,PushOptions,PushObject} from '@ionic-native/push'
import { FingerprintAIO ,FingerprintOptions} from '@ionic-native/fingerprint-aio'; // import { FingerprintAIO ,FingerprintOptions} from '@ionic-native/fingerprint-aio';
import { Camera } from '@ionic-native/camera'; // import { Camera } from '@ionic-native/camera';
// import { Component, OnInit, ViewEncapsulation } from '@angular/core'; // import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { AwsServiceProvider } from '../../providers/aws-service/aws-service'; import { AwsServiceProvider } from '../../providers/aws-service/aws-service';
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms'; import { FormGroup } from '@angular/forms';
// import { CustomValidators } from 'ng2-validation'; // import { CustomValidators } from 'ng2-validation';
import { MatDialog, MatDialogRef, MatDialogConfig } from '@angular/material'; import { MatDialog, MatDialogConfig } from '@angular/material';
import { CognitoServiceProvider } from '../../providers/aws-service/cognito.service'; import { CognitoServiceProvider } from '../../providers/aws-service/cognito.service';
import { PdListPage } from '../pd-list/pd-list'; import { PdListPage } from '../pd-list/pd-list';
import { PasswordPage } from '../password/password'; import { PasswordPage } from '../password/password';
@ -172,14 +172,10 @@ notification(){
} }
else{ else{
this.events.publish('notify',notification); this.events.publish('notify',notification);
//this.nav.setRoot(PdListPage,{notify:'Via Notification'});
// this.rootPage=PdListPage
} }
}); });
// }
// else{
// console.log("Sorry you dont have notification access");
// }
pushObject.on('registration').subscribe((registration: any) => { pushObject.on('registration').subscribe((registration: any) => {

View File

@ -15,25 +15,6 @@
<ion-content> <ion-content>
<ion-list no-lines=""> <ion-list no-lines="">
<!-- <div class="login-top">
<h2 text-center="">
<img alt="" src="assets/imgs/logo.png">
</h2>
<h4 style="margin-top: 2%;" text-center="" text-white="">
Company Name
</h4>
</div> -->
<!-- <ion-item>
<ion-input email="" ngmodel="" placeholder="Email" type="email"></ion-input>
</ion-item>
<ion-item>
<ion-input ngmodel="" password="" placeholder="Password" type="password"></ion-input>
</ion-item>
<ion-item>
<button block="" click="" color="primary" ion-button="" signin="">Sign in</button>
</ion-item> -->
<form [formGroup]="addressMapping"> <form [formGroup]="addressMapping">
<mat-label>{{pageTitle}}</mat-label><br/><br/><br/> <mat-label>{{pageTitle}}</mat-label><br/><br/><br/>
<mat-form-field> <mat-form-field>

View File

@ -1,9 +1,7 @@
page-map-address { page-map-address {
.mat-form-field{ .mat-form-field{
width: 100%; width: 100%;
//margin-left: 10px;
//margin:10px;
// margin-top:20px;
padding: 0 10px 0 10px; padding: 0 10px 0 10px;
} }

View File

@ -1,5 +1,5 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { NavController, NavParams } from 'ionic-angular';
import {QuestionCategoryProvider} from '../../providers/question-category/question-category' import {QuestionCategoryProvider} from '../../providers/question-category/question-category'
import { FormGroup,FormBuilder, Validators } from '@angular/forms'; import { FormGroup,FormBuilder, Validators } from '@angular/forms';
import{AwsServiceProvider} from '../../providers/aws-service/aws-service' import{AwsServiceProvider} from '../../providers/aws-service/aws-service'

View File

@ -1,5 +1,5 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, MenuController, AlertController } from 'ionic-angular'; import { NavController, NavParams, MenuController, AlertController } from 'ionic-angular';
import { PdtriggerProvider } from '../../providers/pdtrigger/pdtrigger'; import { PdtriggerProvider } from '../../providers/pdtrigger/pdtrigger';
import { PdQuestionCategoryPage } from '../pd-question-category/pd-question-category'; import { PdQuestionCategoryPage } from '../pd-question-category/pd-question-category';
import { ToastProvider } from '../../providers/common-provider/toast'; import { ToastProvider } from '../../providers/common-provider/toast';

View File

@ -53,11 +53,6 @@
refreshingText="Refreshing..."> refreshingText="Refreshing...">
</ion-refresher-content> </ion-refresher-content>
</ion-refresher> </ion-refresher>
<!-- <ion-fab bottom right >
<button ion-fab (click)="newpage()" color="optblue"><ion-icon name="add"></ion-icon></button>
</ion-fab> -->
<!-- <div *ngIf="pdlistaccess" > --> <!-- <div *ngIf="pdlistaccess" > -->
@ -284,7 +279,7 @@
<div *ngIf="!pdlistaccess && pdlistaccess !=null" text-center> <div *ngIf="!pdlistaccess && pdlistaccess !=null" text-center>
<!-- <ion-icon name="md-folder-open" style="font-size:35.5rem;"></ion-icon> --> <!-- <ion-icon name="md-folder-open" style="font-size:35.5rem;"></ion-icon> -->
<!-- <h1>test</h1> -->
</div> </div>

View File

@ -1,13 +1,13 @@
import { Component,ViewChild } from '@angular/core'; import { Component,ViewChild } from '@angular/core';
import { IonicPage, NavController, NavParams, Slides, Events } from 'ionic-angular'; import { NavController, NavParams, Slides, Events } from 'ionic-angular';
import { InputPage } from '../input/input'; import { InputPage } from '../input/input';
import { AwsServiceProvider } from '../../providers/aws-service/aws-service'; import { AwsServiceProvider } from '../../providers/aws-service/aws-service';
import { PdtriggerProvider } from '../../providers/pdtrigger/pdtrigger'; import { PdtriggerProvider } from '../../providers/pdtrigger/pdtrigger';
import { CognitoServiceProvider } from '../../providers/aws-service/cognito.service'; import { CognitoServiceProvider } from '../../providers/aws-service/cognito.service';
import { parseDate } from 'ionic-angular/util/datetime-util'; // import { parseDate } from 'ionic-angular/util/datetime-util';
import { PdAllocationPage } from '../pd-allocation/pd-allocation'; // import { PdAllocationPage } from '../pd-allocation/pd-allocation';
import { OtpPage } from '../otp/otp'; import { OtpPage } from '../otp/otp';
import { PdQuestionCategoryPage } from '../pd-question-category/pd-question-category'; // import { PdQuestionCategoryPage } from '../pd-question-category/pd-question-category';
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';
/** /**

View File

@ -1,5 +1,5 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, AlertController } from 'ionic-angular'; import { NavController, NavParams, AlertController } from 'ionic-angular';
import {FormBuilder,FormControl,FormArray, FormGroup,Validators} from '@angular/forms'; import {FormBuilder,FormControl,FormArray, FormGroup,Validators} from '@angular/forms';
import { QuestionCategoryProvider } from '../../../providers/question-category/question-category'; import { QuestionCategoryProvider } from '../../../providers/question-category/question-category';
import { AwsServiceProvider } from '../../../providers/aws-service/aws-service'; import { AwsServiceProvider } from '../../../providers/aws-service/aws-service';

View File

@ -1,5 +1,5 @@
import { Component, ViewChild } from '@angular/core'; import { Component, ViewChild } from '@angular/core';
import { IonicPage, NavController, NavParams,AlertController, Content } from 'ionic-angular'; import { NavController, NavParams,AlertController, Content } from 'ionic-angular';
import { FormArray,FormGroup,FormBuilder,Validators} from '@angular/forms'; import { FormArray,FormGroup,FormBuilder,Validators} from '@angular/forms';
import { AwsServiceProvider } from '../../../providers/aws-service/aws-service'; import { AwsServiceProvider } from '../../../providers/aws-service/aws-service';
import { QuestionCategoryProvider } from '../../../providers/question-category/question-category'; import { QuestionCategoryProvider } from '../../../providers/question-category/question-category';

View File

@ -1,10 +1,10 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { NavController, NavParams } from 'ionic-angular';
import { FormGroup, FormBuilder, FormArray } from '@angular/forms'; import { FormGroup, FormBuilder, FormArray } from '@angular/forms';
import { AwsServiceProvider } from '../../../providers/aws-service/aws-service'; import { AwsServiceProvider } from '../../../providers/aws-service/aws-service';
import { QuestionCategoryProvider } from '../../../providers/question-category/question-category'; import { QuestionCategoryProvider } from '../../../providers/question-category/question-category';
import { ToastProvider } from '../../../providers/common-provider/toast'; import { ToastProvider } from '../../../providers/common-provider/toast';
import { controlNameBinding } from '@angular/forms/src/directives/reactive_directives/form_control_name'; // import { controlNameBinding } from '@angular/forms/src/directives/reactive_directives/form_control_name';
import { ConstantsProvider } from '../../../providers/constants/constants' import { ConstantsProvider } from '../../../providers/constants/constants'
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators'; import { takeUntil } from 'rxjs/operators';

View File

@ -1,11 +1,11 @@
import { Component, ViewChild, ElementRef } from '@angular/core'; import { Component, ViewChild, ElementRef } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { NavController, NavParams } from 'ionic-angular';
import { AwsServiceProvider } from '../../../../providers/aws-service/aws-service' import { AwsServiceProvider } from '../../../../providers/aws-service/aws-service'
import { FormGroup,FormBuilder,FormArray, Validators} from '@angular/forms'; import { FormGroup,FormBuilder,FormArray, Validators} from '@angular/forms';
import { QuestionCategoryProvider } from '../../../../providers/question-category/question-category' import { QuestionCategoryProvider } from '../../../../providers/question-category/question-category'
import { ConstantsProvider } from '../../../../providers/constants/constants' import { ConstantsProvider } from '../../../../providers/constants/constants'
import { ToastProvider } from '../../../../providers/common-provider/toast' import { ToastProvider } from '../../../../providers/common-provider/toast'
import { controlNameBinding } from '@angular/forms/src/directives/reactive_directives/form_control_name'; // import { controlNameBinding } from '@angular/forms/src/directives/reactive_directives/form_control_name';
import {CameraProvider} from '../../../../providers/common-provider/camera' import {CameraProvider} from '../../../../providers/common-provider/camera'
import {LoadingProvider} from '../../../../providers/common-provider/loading' import {LoadingProvider} from '../../../../providers/common-provider/loading'
/** /**

View File

@ -1,5 +1,5 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { NavController, NavParams } from 'ionic-angular';
import { FormBuilder,FormGroup,FormArray,Validators} from '@angular/forms'; import { FormBuilder,FormGroup,FormArray,Validators} from '@angular/forms';
import {AwsServiceProvider} from '../../../../providers/aws-service/aws-service'; import {AwsServiceProvider} from '../../../../providers/aws-service/aws-service';
import { QuestionCategoryProvider } from '../../../../providers/question-category/question-category' import { QuestionCategoryProvider } from '../../../../providers/question-category/question-category'
@ -368,7 +368,7 @@ console.log(this.generalExistBusinessYear)
answerData.itemRows.forEach(element=>{ answerData.itemRows.forEach(element=>{
delete element.filterCtrl delete element.filterCtrl
}) })
console.log("logs",answerData)
let records: any = {}; let records: any = {};
records.parent_pdid=this.pdDetails.parent_pd_id records.parent_pdid=this.pdDetails.parent_pd_id
records.pdid = this.pdDetails.pd_id; records.pdid = this.pdDetails.pd_id;
@ -402,18 +402,18 @@ console.log(this.generalExistBusinessYear)
let record_for_pic = {'pd_id':this.pdDetails.pd_id,'form_id':this.formDetails.form_id,'company_id':this.pdDetails.company_id} let record_for_pic = {'pd_id':this.pdDetails.pd_id,'form_id':this.formDetails.form_id,'company_id':this.pdDetails.company_id}
this.qustCat.getPDImages(record_for_pic).subscribe(val=>{ this.qustCat.getPDImages(record_for_pic).subscribe(val=>{
if(!val['msg']){ if(!val['msg']){
console.log(val['records'])
if(val['records'].length>0){ if(val['records'].length>0){
val['records'].forEach(result=>{ val['records'].forEach(result=>{
this.imageDisplay.push({'image':result.doc_url,'Name':result.pd_document_title,'option':'dummy'}) this.imageDisplay.push({'image':result.doc_url,'Name':result.pd_document_title,'option':'dummy'})
}) })
console.log("imageBuck",this.imageDisplay);
} }
} }
}) })
} }
changeName(value,index,img){ changeName(value,index,img){
console.log(value);
this.imageDisplay[index]={'image':img,'Name':value} this.imageDisplay[index]={'image':img,'Name':value}
} }
@ -429,16 +429,16 @@ removeImgForBucket(index){
capture(){ capture(){
//FOR CAPTURING PICS //FOR CAPTURING PICS
this.cameraProvider.getpicture().then(res=>{ this.cameraProvider.getpicture().then(res=>{
console.log("Value",res)
if(res != 'error'){ if(res != 'error'){
this.cons.getGeoTag().then(geoCoordinates=>{ this.cons.getGeoTag().then(geoCoordinates=>{
console.log("geo promise",geoCoordinates)
this.imageBucket.push({'image':res,'Name':'','link':geoCoordinates}); this.imageBucket.push({'image':res,'Name':'','link':geoCoordinates});
//FOR GETTING THE DOC NAME FROM ALERT //FOR GETTING THE DOC NAME FROM ALERT
let alert =this.toast.setAlertForDocName() let alert =this.toast.setAlertForDocName()
alert.present() alert.present()
alert.onDidDismiss(value=>{ alert.onDidDismiss(value=>{
console.log("alert value",value);
if(value){ if(value){
this.imageBucket[this.imageBucket.length-1].Name=value.Name this.imageBucket[this.imageBucket.length-1].Name=value.Name
} }
@ -463,7 +463,7 @@ capture(){
'company_id':this.pdDetails.company_id, 'company_id':this.pdDetails.company_id,
} }
console.log("records",JSON.stringify(records))
this.qustCat.savePDImages(records).subscribe(res=>{ this.qustCat.savePDImages(records).subscribe(res=>{
if(res['dataStatus']== true){ if(res['dataStatus']== true){
@ -478,7 +478,7 @@ capture(){
} }
changeSentence(value){ changeSentence(value){
console.log("val",value)
let name=value.get('other_applicant').value let name=value.get('other_applicant').value
value.get('other_applicant').setValue(this.cons.sentenceCase(name)); value.get('other_applicant').setValue(this.cons.sentenceCase(name));
} }

View File

@ -151,6 +151,7 @@
<ion-icon name="md-close" ngxMatSelectSearchClear></ion-icon> <ion-icon name="md-close" ngxMatSelectSearchClear></ion-icon>
</ngx-mat-select-search> </ngx-mat-select-search>
</mat-option> </mat-option>
<mat-option>Select</mat-option>
<mat-option *ngFor="let btLen of filteredBanks | async" [value]="btLen.bt_lender_list_id">{{ btLen.lender_name }}</mat-option> <mat-option *ngFor="let btLen of filteredBanks | async" [value]="btLen.bt_lender_list_id">{{ btLen.lender_name }}</mat-option>
</mat-select> </mat-select>

View File

@ -1,6 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" dir="ltr"> <html lang="en" dir="ltr">
<head> <head>
<script data-ionic="inject">
(function(w){var i=w.Ionic=w.Ionic||{};i.version='3.9.2';i.angular='^5.0.3';i.staticDir='build/';})(window);
</script>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Ionic App</title> <title>Ionic App</title>
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">