QC Notes
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.scss
index 62f3666a2..fab8a37ac 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.scss
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.scss
@@ -13,6 +13,20 @@
.metaDataStyle{
height:89px !important;
}
+.odd{
+ padding: 10px;
+ background-color:rgb(235, 231, 231);
+ border-radius: 5px;
+// // font-size: 34px;
+}
+.even{
+ padding: 10px;
+ // background-color:rgb(255, 242, 242);
+ background-color:rgb(243, 240, 240);
+
+ border-radius: 5px;
+ // font-size: 22px;
+}
// .headerdesign{
// border-radius: 5px !important;
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
index 9b18faf07..965cffa6d 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
@@ -40,6 +40,8 @@ export class ViewPdComponent implements OnInit, OnDestroy {
FilteredFieldNames: any = [];
localcount: any;
localstring: any;
+ newNotes:any;
+ display_new_notes:any=[]
localMandatoryFields: any =
[{ 'backEnd_FieldName': "fk_lender_id", 'frontEnd_FieldName': "Lender Name" },
{ 'backEnd_FieldName': "lender_applicant_id", 'frontEnd_FieldName': "Loan Applicant ID" },
@@ -104,9 +106,13 @@ export class ViewPdComponent implements OnInit, OnDestroy {
// this.viewID = this.route.snapshot.params['pdid'];
// this.masterRandomString = this.route.snapshot.params['rdmstr'];
this.viewPdDetails(this.viewID,this.masterRandomString);
+ this.getAllNotes();
+
}
pd_QC_Rating: Number;
+
+
viewPdDetails(editID: string,masterRandomString : string) {
// console.log('inside Function',masterRandomString);
this.pdMasterData = [];
@@ -476,5 +482,29 @@ export class ViewPdComponent implements OnInit, OnDestroy {
}
}
+ getAllNotes(){ //for getting the value of Notes Tab
+ this._pd.getQCReportFinalReviewDetails(this.viewID,'ALL_REMARKS').subscribe(result=>{
+ this.display_new_notes=result['records']
+ let value=this.display_new_notes;
+ this.display_new_notes=[]
+ for(let i=value.length-1;i>=0;i--){
+ console.log("value",value[i]);
+ this.display_new_notes.push(value[i])
+ }
+ console.log("dis",this.display_new_notes)
+ })
+ }
+ saveNotes(){
+ console.log(this.newNotes);
+ let param={pd_id:this.viewID,remark:this.newNotes}
+ this._pd.savePDRemark(param).subscribe(res=>{
+ if(res['dataStatus']){
+ this.notifier.notify("success","Saved Successfully")
+ this.getAllNotes();
+ this.newNotes=''
+ }
+ })
+
+ }
}
\ No newline at end of file
diff --git a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
index 246622815..6344f66b9 100755
--- a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
+++ b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
@@ -743,5 +743,10 @@ export class PdTrigerService {
return this._http.post(this.apiUrl + 'updatePDPhoto', { "records":values })
.pipe(catchError(this.handleError('role', [])))
}
+ savePDRemark(values){
+ values.createdby=this._aws.getlocale();
+ return this._http.post(this.apiUrl+'savePDRemark',values)
+ .pipe(catchError(this.handleError('role',[])))
+ }
}
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.html b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.html
index 711154a23..a7679b7a2 100644
--- a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.html
+++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.html
@@ -45,7 +45,8 @@
-
+
+
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-review/qc-review.component.html b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-review/qc-review.component.html
index bda833b4f..99ef6ff1d 100755
--- a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-review/qc-review.component.html
+++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-review/qc-review.component.html
@@ -46,4 +46,24 @@
+
+
+
+
PD Officer Notes
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-review/qc-review.component.ts b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-review/qc-review.component.ts
index cbad935cf..78845f5ba 100755
--- a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-review/qc-review.component.ts
+++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-review/qc-review.component.ts
@@ -58,6 +58,21 @@ export class QcReviewComponent implements OnInit {
this.notifier.notify('error', 'Something Went Wrong Try Again.! \t\"' + (error.error_type == 2 ? error.error_status + ' ( ' + error.error_text + ' ) ' : ' ( ' + error.error_text + ' ) ') +'\" Error Occur.!');
// alert(err.html_format);
});
+ }else if( this.showStatus === 'pd_officer_notes'){
+ type = 'OFFICER_REMARKS';
+ this.pdTrigerService.getQCReportFinalReviewDetails(this.data.startId, type).subscribe(data => {
+ if(data['dataStatus']){
+ this.recordData = data.records[0];
+ this.ngForm = this._formBuilder.group({
+ pd_qc_note: [this.recordData.pd_qc_note],
+ pd_status: [this.recordData.pd_status]
+ })
+ this.showForm = true;
+ }
+ }, error => {
+ this.notifier.notify('error', 'Something Went Wrong Try Again.! \t\"' + (error.error_type == 2 ? error.error_status + ' ( ' + error.error_text + ' ) ' : ' ( ' + error.error_text + ' ) ') +'\" Error Occur.!');
+ // alert(err.html_format);
+ });
} else if(this.showStatus === 'COMPLETE') {
type = 'QC';
this.pdTrigerService.getQCReportFinalReviewDetails(this.data.startId, type).subscribe(data => {
diff --git a/ng6-seed/src/app/session/login/login-component.html b/ng6-seed/src/app/session/login/login-component.html
index 291756fcc..2f2332183 100755
--- a/ng6-seed/src/app/session/login/login-component.html
+++ b/ng6-seed/src/app/session/login/login-component.html
@@ -34,7 +34,8 @@