save pd form service details check : kdk

This commit is contained in:
dineshkumarkannan 2018-11-05 12:19:23 +05:30
parent 5425dc72de
commit 215de92b41

View File

@ -197,6 +197,19 @@ getPDFormDetailsWithID(pdID, formID ):Observable<any> {
) )
} }
// save Pd form details
savePDFormDetailsWithID(saveData: any): Observable<any> {
saveData.fk_createdby = this._aws.getlocale();
saveData.fk_createdon = currentdate;
// saveData[0].fk_updatedby = this._aws.getlocale();
// saveData[0].updatedon = currentdate;
return this._http.post<any>(this.apiUrl+"savePDFormDetails",{"records":saveData})
.pipe(
catchError(this.handleError('operation', []))
)
}
// save pd answers // save pd answers
savePDQuestions(saveData: any): Observable<any> { savePDQuestions(saveData: any): Observable<any> {
saveData.createdby = this._aws.getlocale(); saveData.createdby = this._aws.getlocale();