link added ind pdid
This commit is contained in:
parent
4fc5b4b3ca
commit
a2e3e72558
@ -237,6 +237,7 @@ export class SalesPDlistPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
editForm(value_obj){
|
editForm(value_obj){
|
||||||
|
|
||||||
// let product= localStorage.getItem('product_id_salesPD')
|
// let product= localStorage.getItem('product_id_salesPD')
|
||||||
// storing the sales_pd_id and product id in local storagey
|
// storing the sales_pd_id and product id in local storagey
|
||||||
let primary_key= 'sales_pd_id'
|
let primary_key= 'sales_pd_id'
|
||||||
@ -251,7 +252,7 @@ export class SalesPDlistPage {
|
|||||||
}
|
}
|
||||||
console.log(value_obj);
|
console.log(value_obj);
|
||||||
localStorage.setItem('sales_pd_type',value_obj.sales_pd_type)
|
localStorage.setItem('sales_pd_type',value_obj.sales_pd_type)
|
||||||
this.navCtrl.push(SectionListPage,{product_id:value_obj.product_id,sales_pd_type:value_obj.sales_pd_type})
|
this.navCtrl.push(SectionListPage,{product_id:value_obj.product_id,sales_pd_type:value_obj.sales_pd_type,link:value_obj.link})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,11 +10,16 @@
|
|||||||
<button ion-button menuToggle>
|
<button ion-button menuToggle>
|
||||||
<ion-icon name="menu"></ion-icon>
|
<ion-icon name="menu"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
<ion-title>Section List</ion-title>
|
<ion-title>Section List </ion-title>
|
||||||
|
|
||||||
|
<ion-buttons end>
|
||||||
|
<a href={{link}} target={{link}}><ion-icon style="color: white; font-size: 40px; padding-left: 100px;"
|
||||||
|
name="link"></ion-icon></a>
|
||||||
|
</ion-buttons>
|
||||||
<ion-buttons end *ngIf="is_sync_btn">
|
<ion-buttons end *ngIf="is_sync_btn">
|
||||||
<button ion-button outline round (click)="syncPDWithSections()"><ion-icon name="sync"></ion-icon> Sync</button>
|
<button ion-button outline round (click)="syncPDWithSections()"><ion-icon name="sync"></ion-icon> Sync</button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
|
|
||||||
</ion-navbar>
|
</ion-navbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
|
|||||||
@ -31,15 +31,18 @@ export class SectionListPage {
|
|||||||
sales_pd_type: string;
|
sales_pd_type: string;
|
||||||
customer_link_with_text: string;
|
customer_link_with_text: string;
|
||||||
config_expression: any;
|
config_expression: any;
|
||||||
|
link: any;
|
||||||
constructor(public navCtrl: NavController, public navParams: NavParams,private SalesPDService:SalesPdProvider,private toastProvider:ToastProvider,
|
constructor(public navCtrl: NavController, public navParams: NavParams,private SalesPDService:SalesPdProvider,private toastProvider:ToastProvider,
|
||||||
private offlineManager:OfflineManagerProvider,private constantProvider:ConstantsProvider,
|
private offlineManager:OfflineManagerProvider,private constantProvider:ConstantsProvider,
|
||||||
private socialSharing:SocialSharing) {
|
private socialSharing:SocialSharing) {
|
||||||
|
|
||||||
if(this.navParams.get('product_id')){
|
if(this.navParams.get('product_id')){
|
||||||
this.product_id=this.navParams.get('product_id')
|
this.product_id=this.navParams.get('product_id')
|
||||||
|
this.link=this.navParams.get('link')
|
||||||
}
|
}
|
||||||
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
||||||
this.getTemplate()
|
this.getTemplate()
|
||||||
|
//alert(this.link);
|
||||||
}
|
}
|
||||||
|
|
||||||
ionViewDidLoad() {
|
ionViewDidLoad() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user