Question: The programming project to be done for this chapter are: 1 2 - 1 Personnel Database 1 2 - 2 Display Employee Details based on
The programming project to be done for this chapter are:
Personnel Database
Display Employee Details based on Selection
Employee Search
These should be done in ONE application. The template for the application is provided: Assignment zip
Main Form points
Write the codes for the toolstrip menu item click
Show All Employees form when Show All Employees toolstrip menu item is clicked. Open the form in modal format. Hide the main form and show it only when the user is done with the Show All Employees form.
Search Employees form when Search Employees toolstrip menu item is clicked. Open the form in modal format. Hide the main form and show it only when the user is done with the Search Employees form.
:
Creating the Personnel Database points
The personnel database mdf should have the following fields:
FieldData TypeLengthNull AllowedEmployeeIDKey, intNoLastNameStringNoFirstNameStringNoDepartmentStringNoTitleStringYesAnnualSalaryCurrencyYes
Here is the data for the database:
Add the Personnel Database as a data source to your project.
Adding a column to the table in Personnel TableAdapter points
In the Personnel TableAdapter, configure the Fill, Get SQL query to add a column to show FullName which is LastName, FirstName.
Employees Table Form points
In the Employees Table form, use a datagridviewto display all the employees showing only the following columns: EmployeeID, Full Name, Department. Format the datagridview as appropriate. Change the header text to ID Name, Department. Make sure that the column width is sufficient to display the entire column text you will need to change the autosizemode of the column Remove the Navigator.
Link the Show Details button to the Employee Details form details provided in
: Display Employee Details based on Selection points
Use the form "Employee Details" to display the employee selected in the datagridview in to display the employee details with EmployeeID, FirstName, LastName, Department, Title, Salary. Note that you will have to change the properties of the controls in Employee Details to make them accessible. You will have to assign the appropriate values from the cells to the labels. Display salary in currency format.
: Employee Search points
Use the form "Search Employees" to allow the user to search for all employees whose first or last name matches the search string. Display employee id last name, first name, department, title, salary in a datagridview. Note: you will need to create a SQL query in the dataset designer and use the new query to fill your datagridview on the form. Format the datagridview as appropriate. Change the header text and make sure that the column width is sufficient to display the entire column text you will need to change the autosizemode of the column Display salary in currency format.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
