Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. Fill Check Legionella inspection in offline and send data in background
  2.  
  3. When the user will open inspection screen for Check Legionella inspection, there are two possible cases.
  4. If there is an internet connection - lab number will be loaded from server automatically, as it is done now, and will be saved locally (but if there is a locally stored unsent order number, received from server order number will be ignored).
  5. But if there is no internet connection - the user will have an ability to enter lab number and store it locally to send it in background later.
  6.  
  7. When the user have filled all data in the Edit Inspection side sheet (side fragment, where you enter all data for the inspection and choose options from drop-down menus like Kind of Water, Matrix etc), there are also two possible cases.
  8. If there is an internet connection - you can send entered data and receive lab number as you can do it now, the label for the save button will be `Send`.
  9. But if there is no internet connection - you can save data locally to send it in background later and receive lab number, the label for the save button will be `Save`.
  10.  
  11. Application will do sending of Check Legionella inspections in background.
  12. If there is an internet connection at the moment of saving order number or Check Legionella inspection data, or after being offline - internet connection received, the app will try to upload all locally stored edited Check Legionella inspections without check for rewrite data. Firstly, if needed, order number will be uploaded, and then - for each inspection-on-the-point, data will be uploaded, in order to receive lab number. If something went wrong, sending for failed Check Legionella inspection (or inspection-on-the-point) will be cancelled and error will be stored to be shown to the user on demand. Also, if order number sending is failed, sending of all inspection-on-the-points for this inspection will be cancelled.
  13.  
  14. For possible case if sending of Check Legionella inspections failed, new screen will be added for displaying sending errors (Send Legionella Errors screen). On this screen the user will see the list of all occurred Check Legionella sending errors for each inspection (with some information about inspection such as frequency, end date etc). It will be possible to open Inspection screen for inspection which failed (in order to correct data).
  15. Also the user can retry sending single Check Legionella inspection with rewrite data check, and if sending will succeed - list of sending errors will be updated, otherwise - error dialog will be shown and errors will be updated.
  16. Also the user can retry sending all Check Legionella inspections with rewrite data check, and if sending will succeed - screen will be closed and the user will be returned to the previous screen, otherwise - error dialog will be shown and errors will be updated.
  17.  
  18. Also for case if sending failed, new icon button will be added. Tap on this icon button will open Send Legionella Errors screen. Icon button will be added to the app bar near the three-dot button: on Settings screen and Inspections screen (where you can see a list of all inspections for chosen building).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement