Signature Control
The Signature control of the IBuySpy Delivery 2005 application accesses the Orders database table. After completing the order, the Signature control provides a location for the customer signature.
Using the Signature Control
The Signature field is the only input field on the control. It tracks the stylus movements while the customer writes, and then converts the recorded strokes into an integer array. This array is stored in the database and cannot be changed after it is recorded.
Tapping Accept saves the customer's signature and loads the Customers Control. The delivery process for the customer is then complete and the Status field for this order is set to Delivered. If the Status field is already marked Delivered, the existing signature is displayed and the Accept box is not available.
Tapping Clear erases all markings from the Signature field. Tapping Cancel loads the Orders control without saving the contents of the Signature field. An order cannot be completed without committing a signature.
Viewing Signatures
Either the device or the IBuySpy Store Web site can display the signature. If the device displays the signature, the integer array is converted back to pen strokes. These are displayed in the Signature field. If the Web site displays the signature, the integer array is converted to an image and then displayed.
See Also
Other Resources
IBuySpy Delivery 2005 Sample Code