Computer Price Calculator

Total Page:16

File Type:pdf, Size:1020Kb

Computer Price Calculator

IST 331 Homework 7 Due: Wed. 6-Dec-2006 Fall 2006 V. Matos Developing WebDatabase Applications Using ASP.NET + VB.NET + ADO.NET

Create a Visual Basic.NET (2003 or 2005 Edition) WEBFORM to display/update individual employees and their work load. The form must include the following controls:

1. A textbox in which you enter an employee’s SSN value 2. A LOAD button to display data about the employee and textboxes to show the first and last name, address, salary, and current assignments (a MultiLine textbox) 3. A Textbox to show (upon demand) the employee’s total number of projects. 4. Two additional textboxes to enter project number and hours/week for a new assignment to be given to the current employee.

Requirements

1. Use the MS-Access COMPANY database available from the course’s web page 2. You must use the ADO.NET Connection/Command/DataReader classes to gain access to the data. 3. Your code must be written using VB.NET and it must use the three EXECUTE modes of the OleDBCommand class (ie. .ExecuteReader, ExecuteScalar, and ExecuteNonQuery). 4. The LOAD button sets the connection object and fills up the GUI with the first employee. a. Show the full name in a textbox b. Show each assignment in a single row of the assignment textbox. 5. Make sure your program handles errors / exceptions and does not terminate abruptly. 6. After clicking the ADD button you should create a new assignment for the employee. Use the information in the textboxes to assemble a new WORKS_ON entry. Make sure (a) there is data in those texboxes, (b) the employee is NOT currently working on that project (reject with a message invalid requests). 7. The COUNT button returns (into the appropriate textbox) the number of current assignments.

Recommended publications