From a1d5005a035a350a4de10a4465ebb152a2f62cc6 Mon Sep 17 00:00:00 2001 From: sriram-at-840620226347 Date: Fri, 10 Apr 2020 19:36:57 +0530 Subject: [PATCH] SMS Shared Added --- .../manage-pd/list-pd/all-pd/all-pd.component.html | 12 +++++++++--- .../manage-pd/list-pd/all-pd/all-pd.component.ts | 12 ++++++++++++ .../list-pd/completed-pd/completed-pd.component.html | 6 ++++++ .../list-pd/completed-pd/completed-pd.component.ts | 12 ++++++++++++ .../inprogress-pd/inprogress-pd.component.html | 5 +++++ .../list-pd/inprogress-pd/inprogress-pd.component.ts | 12 ++++++++++++ .../qc-completed-pd/qc-completed-pd.component.html | 6 ++++++ .../qc-completed-pd/qc-completed-pd.component.ts | 12 ++++++++++++ .../list-pd/scheduled-pd/scheduled-pd.component.html | 7 +++++++ .../list-pd/scheduled-pd/scheduled-pd.component.ts | 12 ++++++++++++ 10 files changed, 93 insertions(+), 3 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html index bd440212b..28ed78d86 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html @@ -136,19 +136,25 @@ - - + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts index fa93ab64d..5c6f497d5 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts @@ -245,5 +245,17 @@ export class AllPdComponent implements OnInit, OnChanges { this._pd.copyToClipBoard(cus_link); this.notifier.notify('info','Customer link copied'); } + onClickSmsLink(details){ + let param={ + pd_id: details.pd_id, + mobile_no: details.applicat_details[0].mobile_no, + random_string: details.random_string, + } + this._pd.smsLink(param).subscribe(res=>{ + if(res['dataStatus']){ + this.notifier.notify("info","SMS Shared Successfully") + } + }) + } } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html index 151d40650..b1b370288 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html @@ -125,6 +125,12 @@ link + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts index 5af8e5922..077a7d312 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts @@ -253,6 +253,18 @@ export class CompletedPdComponent implements OnInit, OnChanges { this._pd.copyToClipBoard(cus_link); this.notifier.notify('info','Customer link copied'); } + onClickSmsLink(details){ + let param={ + pd_id: details.pd_id, + mobile_no: details.applicat_details[0].mobile_no, + random_string: details.random_string, + } + this._pd.smsLink(param).subscribe(res=>{ + if(res['dataStatus']){ + this.notifier.notify("info","SMS Shared Successfully") + } + }) + } } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html index 7a761204c..e3a28281c 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html @@ -120,6 +120,11 @@ matTooltip="Copy Customer Link" matTooltipPosition="above"> link + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts index 206921694..b2162b363 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts @@ -245,5 +245,17 @@ export class InprogressPdComponent implements OnInit, OnChanges { this._pd.copyToClipBoard(cus_link); this.notifier.notify('info','Customer link copied'); } + onClickSmsLink(details){ + let param={ + pd_id: details.pd_id, + mobile_no: details.applicat_details[0].mobile_no, + random_string: details.random_string, + } + this._pd.smsLink(param).subscribe(res=>{ + if(res['dataStatus']){ + this.notifier.notify("info","SMS Shared Successfully") + } + }) + } } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html index 2e6444191..8b3fb371b 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html @@ -124,6 +124,12 @@ link + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts index 7ebe5b874..83bb3cd59 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts @@ -227,4 +227,16 @@ export class QcCompletedPdComponent implements OnInit, OnChanges { this._pd.copyToClipBoard(cus_link); this.notifier.notify('info','Customer link copied'); } + onClickSmsLink(details){ + let param={ + pd_id: details.pd_id, + mobile_no: details.applicat_details[0].mobile_no, + random_string: details.random_string, + } + this._pd.smsLink(param).subscribe(res=>{ + if(res['dataStatus']){ + this.notifier.notify("info","SMS Shared Successfully") + } + }) + } } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html index 1bdd2a6a5..a2ea71e49 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html @@ -123,6 +123,13 @@ matTooltip="Copy Customer Link" matTooltipPosition="above"> link + + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts index e82cd5333..39b4786b3 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts @@ -241,6 +241,18 @@ export class ScheduledPdComponent implements OnInit, OnChanges { this._pd.copyToClipBoard(cus_link); this.notifier.notify('info','Customer link copied'); } + onClickSmsLink(details){ + let param={ + pd_id: details.pd_id, + mobile_no: details.applicat_details[0].mobile_no, + random_string: details.random_string, + } + this._pd.smsLink(param).subscribe(res=>{ + if(res['dataStatus']){ + this.notifier.notify("info","SMS Shared Successfully") + } + }) + } }