Implementation details :
1. Document when sent through Send forms from UI, all form data will be saved as JSON against that document.
2. When document is opened by candidate,data will be populated from saved JSON. On Submit or decline, form data (JSON) will be updated for that document.
3. Document when sent through Custom API's by Admin (senddocument as 0,1,2), form data is not saved in this case. When candidate opens the link, latest data from DB will get populated on PDF. Data will be saved once candidate clicks on Submit or decline.
4. Form data will be saved when document is saved by Admin when it is sent from Custom API with senddocument as 3 and same will be populated when candidates opens the document.
5. Signature will always be fetched from DB.
Basic Scenarios:
1. Send document from Send forms -> Candidate opens the document -> Candidate Declines -> Admin changes the document and send through send form -> Candidate accepts
When document is opened/downloaded from Review/Sign or Completed Forms Library, data of that particular document will be downloaded.
2. Document sent with Custom API's (api/candidate/custom/document/create and api/candidate/document/create)
When senddocument = 0,1,2 => DB data will be fetched when candidate opens the document
When senddocument = 3 => Admin opens the link to make changes ->changes saved -> data is saved against that document -> candidate opens document -> recently saved data will be displayed.
Files Affected :
- DMS\Databases Objects\04_Stored Procedures\DMS_SP_GetTemplateFormMappedDetails.sql
- DMS\DMS.App\src\DMS_AppLogic\BuisnessLogic\DocumentData.cs
- DMS\DMS.App\src\DMS_AppLogic\BuisnessLogic\PersonData.cs
- DMS\DMS.App\src\DMS_AppLogic\IntegrationLogic\GenerateDocument.cs
- DMS\DMS.Web\src\DMS_WebApp\ClientApp\src\app\admin\send-forms\forms-preview\forms-preview.component.ts
- DMS\DMS.Web\src\DMS_WebApp\ClientApp\src\app\candidate\document-review\document-review.component.ts
- DMS\DMS.Web\src\DMS_WebApp\ClientApp\src\app\Shared\Components\modals\modals.component.ts
Hi Samir,
Please find below details.
Current Implementation:
Questions:
Samir Please provide details on above so we will proceed further.
CC-Rohan J Khandave,Priya Dhamande
Thanks,
Ganesh