From 2218072ed77331780efcd746c5388af715197ee0 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Fri, 16 Nov 2018 15:07:25 +0530 Subject: [PATCH] pd service cretaed on / updated on date changes --- .../manage-pd/list-pd/add-pd/add-pd.component.ts | 2 +- .../personal-discussion/pd-service/pd-triger.service.ts | 8 ++++---- ng6-seed/src/app/quality-check/qc-service/qc.service.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts index 5c90edc5b..4badcdf6d 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts @@ -309,7 +309,7 @@ export class AddPdComponent implements OnInit, OnDestroy { "pd_status": status, //"fk_pd_allocation_type":this.allocationTypeModel , "fk_createdby" : this._aws.getlocale(), - "createdon": new Date().toJSON().slice(0,19).replace('T',' ') + // "createdon": new Date().toJSON().slice(0,19).replace('T',' ') }; let pd_applicant_details : any=[{ "applicant_name":formValue.applicant_name, 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 212ab19e0..547f93f6e 100644 --- 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 @@ -150,7 +150,7 @@ export class PdTrigerService { editPdMasterDetails(editData: any, status: string): Observable { editData.pd_status = status; editData.fk_updatedby = this._aws.getlocale(); - editData.updatedon = currentdate; + // editData.updatedon = currentdate; return this._http.post(this.apiUrl + "updatePDMaster", {records: editData}) .pipe( @@ -180,7 +180,7 @@ export class PdTrigerService { // update pd officer updatePdOfficer(updateData: any): Observable { updateData.fk_updatedby = this._aws.getlocale(); - updateData.updatedon = currentdate; + // updateData.updatedon = currentdate; return this._http.post(this.apiUrl + "allocatePD", {"records": updateData}) .pipe( catchError(this.handleError('operation', [])) @@ -190,7 +190,7 @@ export class PdTrigerService { // update pd schedule updateSchedule(updateData: any): Observable { updateData.fk_scheduled_by = this._aws.getlocale(); - updateData.createdon = currentdate; + // updateData.createdon = currentdate; return this._http.post(this.apiUrl + "schdulePD", {"records": updateData}) .pipe( catchError(this.handleError('operation', [])) @@ -262,7 +262,7 @@ getPDFormDetailsWithID(pdID, formID ):Observable { // save pd answers savePDQuestions(saveData: any): Observable { saveData.createdby = this._aws.getlocale(); - saveData.fk_createdon = currentdate; + //saveData.fk_createdon = currentdate; // saveData[0].fk_updatedby = this._aws.getlocale(); // saveData[0].updatedon = currentdate; diff --git a/ng6-seed/src/app/quality-check/qc-service/qc.service.ts b/ng6-seed/src/app/quality-check/qc-service/qc.service.ts index 101e6da51..8103d42fe 100644 --- a/ng6-seed/src/app/quality-check/qc-service/qc.service.ts +++ b/ng6-seed/src/app/quality-check/qc-service/qc.service.ts @@ -52,7 +52,7 @@ export class QcService { editPdMasterDetails(editData:any,status:string):Observable{ editData.pd_status = status; editData.fk_updatedby = this._aws.getlocale(); - editData.updatedon = currentdate; + // editData.updatedon = currentdate; return this._http.post(this.apiUrl+"updatePDMaster",{records:editData}) .pipe( @@ -86,7 +86,7 @@ export class QcService { // save pd answers savePDQuestions(saveData: any): Observable { saveData.createdby = this._aws.getlocale(); - saveData.fk_createdon = currentdate; + // saveData.fk_createdon = currentdate; // saveData[0].fk_updatedby = this._aws.getlocale(); // saveData[0].updatedon = currentdate;