text msg and rajasthan state is available for offline at initially
This commit is contained in:
parent
0d99fb4ee1
commit
0d121f9fa3
@ -5,6 +5,7 @@ import { PdListPage } from '../pd-list/pd-list';
|
||||
import { ToastProvider } from '../../providers/common-provider/toast';
|
||||
import { ConstantsProvider } from '../../providers/constants/constants';
|
||||
import { SalesPDlistPage } from '../sales_pd/pages/sales-p-dlist/sales-p-dlist';
|
||||
import { PdtriggerProvider } from '../../providers/pdtrigger/pdtrigger';
|
||||
/**
|
||||
* Generated class for the PasswordPage page.
|
||||
*
|
||||
@ -25,7 +26,8 @@ export class PasswordPage {
|
||||
Username:any;
|
||||
Password:any;
|
||||
userDetails: any;
|
||||
constructor(public navCtrl: NavController, public navParams: NavParams,public aws:AwsServiceProvider,public commonconstant:ConstantsProvider,public toast:ToastProvider,private events:Events,private constantProvider:ConstantsProvider) {
|
||||
constructor(public navCtrl: NavController, public navParams: NavParams,public aws:AwsServiceProvider,public commonconstant:ConstantsProvider,public toast:ToastProvider,private events:Events,private constantProvider:ConstantsProvider,
|
||||
private pdtrigger:PdtriggerProvider) {
|
||||
this.commonImage = this.commonconstant.commonimage;
|
||||
this.Username = this.navParams.get('Username');
|
||||
this.Password = this.navParams.get('Password');
|
||||
@ -66,6 +68,7 @@ export class PasswordPage {
|
||||
this.events.publish(('len_user_name'),this.userDetails);
|
||||
let role= this.constantProvider.takeDecisionRouting(this.userDetails)
|
||||
if(role == 'sales'){
|
||||
this.pdtrigger.initiateMasterApis('sales')
|
||||
this.navCtrl.setRoot(SalesPDlistPage);
|
||||
}
|
||||
else{
|
||||
|
||||
@ -26,14 +26,14 @@
|
||||
<button small ion-button outline round (click)="syncPDWithSections()"><ion-icon name="sync"></ion-icon> Sync</button>
|
||||
</p>
|
||||
</div> -->
|
||||
<!-- <div class="completed_note" *ngIf ="is_sync_btn && pd_completed.is_synced == false && pd_completed.is_completed &&
|
||||
<div class="completed_note" *ngIf ="is_sync_btn && pd_completed.is_synced == false && pd_completed.is_completed &&
|
||||
pd_completed.pd_complete_request_items != null">
|
||||
<p >
|
||||
PD is Completed. All the Sections are stored Locally. Please click that sync button above to send the data to server</p>
|
||||
</div> -->
|
||||
<div class="completed_note" *ngIf ="is_sync_btn">
|
||||
PD is Completed. Please click the sync button above to send the data to server. When internet is available</p>
|
||||
</div>
|
||||
<div class="completed_note" *ngIf ="is_sync_btn && !pd_completed.is_completed">
|
||||
<p >
|
||||
PD saved. Click SYNC to complete</p>
|
||||
PD section saved. Click sync to complete</p>
|
||||
</div>
|
||||
<mat-card class="card-class"
|
||||
[ngClass]="{'border-disabled': sales_pd_id == null && sec.is_disabled,
|
||||
|
||||
@ -98,7 +98,9 @@ initiateMasterApis(type) {
|
||||
this.salesPDProvider.getCityPincode('5').subscribe(res=>{
|
||||
this.salesPDProvider.getCityPincode('6').subscribe(res=>{
|
||||
this.salesPDProvider.getCityPincode('15').subscribe(res=>{
|
||||
this.salesPDProvider.getCityPincode('27').subscribe(res=>{})
|
||||
this.salesPDProvider.getCityPincode('27').subscribe(res=>{
|
||||
this.salesPDProvider.getCityPincode('26').subscribe(res=>{})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 628 KiB After Width: | Height: | Size: 301 KiB |
@ -1 +0,0 @@
|
||||
webpackJsonp([0],{484:function(a,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),e.d(_,"SectionListPageModuleNgFactory",function(){return k});var t=e(0),c=e(271),n=e(384),l=e(385),u=e(386),i=e(387),o=e(388),r=e(389),f=e(390),b=e(391),s=e(392),d=e(393),v=e(3),y=e(8),p=e(15),g=e(272),B=e(7),M=e(67),P=e(116),j=e(165),k=t.Y(c.a,[],function(a){return t._12([t._13(512,t.i,t.U,[[8,[n.a,l.a,u.a,i.a,o.a,r.a,f.a,b.a,s.a,d.a]],[3,t.i],t.t]),t._13(4608,v.m,v.l,[t.s,[2,v.v]]),t._13(4608,y.B,y.B,[]),t._13(4608,y.f,y.f,[]),t._13(6144,p.b,null,[v.d]),t._13(4608,p.c,p.c,[[2,p.b]]),t._13(512,v.c,v.c,[]),t._13(512,y.y,y.y,[]),t._13(512,y.l,y.l,[]),t._13(512,y.v,y.v,[]),t._13(512,g.a,g.a,[]),t._13(512,g.b,g.b,[]),t._13(512,p.a,p.a,[]),t._13(256,B.e,!0,[]),t._13(512,B.l,B.l,[[2,B.e]]),t._13(512,M.f,M.f,[]),t._13(512,c.a,c.a,[]),t._13(256,P.a,j.a,[])])})}});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
0
www/build/polyfills.js
Executable file → Normal file
0
www/build/polyfills.js
Executable file → Normal file
0
www/build/sw-toolbox.js
Executable file → Normal file
0
www/build/sw-toolbox.js
Executable file → Normal file
File diff suppressed because one or more lines are too long
@ -1,9 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" dir="ltr">
|
||||
<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">
|
||||
<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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user