Close Job

Our faithful mobile technician has just completed the maintenance operation on the part and is ready to head off to lunch before stopping for another job on the way home, but first he must close out this job with a signature from the customer. To accomplish this, the Field Service Application presents a blank screen, and the customer uses a stylus (or a mouse in the case of the Android Emulator) to sign the device, acknowledging that the work has been completed. Once the signature has been captured, the data is submitted to the server. The proof of job completion has been captured, and the job can now be billed. Figure 12.13 demonstrates this sequence of events.

This Activity can be broken down into two basic functions. The first is the capture of a signature. The second is transmittal ofjob data to the server. Of interest is that this Activity's UI has no layout resource. All of the UI elements in this Activity are generated dynamically, as shown in listing 12.17. In addition, the ProgressDialog introduced in the RefreshJobs Activity is brought back for an encore, to let our mobile technician know that the captured signature is being sent when the Sign & Close menu

Map job Location isi CD 2:47 AM

isi CD 2:47 AM

Map job Location

Gel Product Into

Z"

Gel Product Into

Close Job

Figure 12.13 The CloseJob Activity capturing a signature and sending data to the server

Close Job

Figure 12.13 The CloseJob Activity capturing a signature and sending data to the server option is selected. If the user selects Cancel, the ShowJob Activity resumes control. Note that the signature should be made prior to selecting the menu option.

0 0

Post a comment