Role Id added in listSalesPD API.

This commit is contained in:
venbatechnologies@gmail.com 2020-12-30 17:43:14 +05:30
parent 25e54e9688
commit 928388c0ab
5 changed files with 8 additions and 5 deletions

View File

@ -190,7 +190,7 @@ forgotopen() {
forgotpassword() { forgotpassword() {
alert('rets'); // alert('rets');
let auth = { 'Username': this.email }; let auth = { 'Username': this.email };
console.log(auth); console.log(auth);
this.aws.userforgotpass(auth).subscribe(res => { this.aws.userforgotpass(auth).subscribe(res => {

View File

@ -307,7 +307,7 @@ export class SectionListPage {
} }
goto(section_id){ goto(section_id){
alert(section_id); // alert(section_id);
// this.SalesPDService.insertData_Replace('sales_pd_id_PRIMARYKEY',value_obj.sales_pd_id).then(()=>{ // this.SalesPDService.insertData_Replace('sales_pd_id_PRIMARYKEY',value_obj.sales_pd_id).then(()=>{
// localStorage.setItem('product_id_salesPD',value_obj.product_id) // localStorage.setItem('product_id_salesPD',value_obj.product_id)
if(this.sales_pd_id == null && section_id != '1'){ if(this.sales_pd_id == null && section_id != '1'){

View File

@ -43,7 +43,7 @@ current_section:any;
console.log(this.platform.is('cordova')) console.log(this.platform.is('cordova'))
let api_properties = {method:'post', api_name:this.apiUrl+'loadSalesPDTemplate',params : params} let api_properties = {method:'post', api_name:this.apiUrl+'loadSalesPDTemplate',params : params}
if(!this.platform.is('cordova')) { if(!this.platform.is('cordova')) {
api_properties = {method:'get', api_name:`assets/data/sales_pd_templates/${product_id}.json`,params : params} // api_properties = {method:'get', api_name:`assets/data/sales_pd_templates/${product_id}.json`,params : params}
} }
return this.http[api_properties.method](api_properties.api_name,api_properties.params).subscribe(result=>{ return this.http[api_properties.method](api_properties.api_name,api_properties.params).subscribe(result=>{
if(!this.platform.is('cordova') && !result.hasOwnProperty('dataStatus')) { if(!this.platform.is('cordova') && !result.hasOwnProperty('dataStatus')) {
@ -519,7 +519,7 @@ return this.creditPDService.getStakeholderInfo().map(res=>{
if(this.networkProvider.getCurrentNetworkStatus() == ConnectionStatus.online) { if(this.networkProvider.getCurrentNetworkStatus() == ConnectionStatus.online) {
let complete_url = this.apiUrl+'listSalesPD/'+det.fk_entity_id let complete_url = this.apiUrl+'listSalesPD/'+det.fk_entity_id
if(is_sales_login) { if(is_sales_login) {
complete_url = complete_url+'/'+det.userid complete_url = complete_url+'/'+det.userid+'/'+det.user_role
} }
return this.http.get(complete_url).map(res=>{ return this.http.get(complete_url).map(res=>{
this.ionicStorageProvider.checkAndInsertApiDataLocally(res,params,'listSalesPD'); this.ionicStorageProvider.checkAndInsertApiDataLocally(res,params,'listSalesPD');

View File

@ -102,7 +102,7 @@ apiurl:any;
} }
userforgotpass(auth) { userforgotpass(auth) {
////(auth); ////(auth);
alert('test'); // alert('test');
const userData = { const userData = {
Username: auth.Username, Username: auth.Username,
Pool: lenderUserPool Pool: lenderUserPool

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">