Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume we have Employee table as given below, Develop a Window Form Application in C# to fulfill the functionality of given below form. Functionality of

Assume we have Employee table as given below,     

 Develop a “Window Form Application” in C# to fulfill the functionality of given below form. Functionality of each button is explained below

i) Add Employee button will add new employee in DB with unique ID.

ii )Delete and Update Employee will be on the basis of employee ID.

iii) Retrieve All Employee button will retrieve all employees from DB table and populate into grid view control.

iv) Update Employee will update the existing employee; it Search employee on the basis of its ID.

Apply Exception handling in the code and Before the Employee Record is Saved to Database, apply the following Data Validation Checks

1. ID should be distinct and it should not be duplicated in the Table

2. ID, Name, Designation and Salary should not be null

3. ID and Salary should be non-negative, greater than Zero and Positive Values

4. Name and Designation Length should be greater than 6 Characters and Name should not contain any Digit (0-9)

5. Before any DML Statement is executed (Insert Into, Update or Delete), Ask User using MessageBox whether He/She really want to Add / Update / Delete the Record. When user press the OK button on the MessageBox then Record DML statement should be executed

ID int Name varchar (50) Designation varchar (50) Salary int

Step by Step Solution

3.48 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

C code for the component To bind the grid create the following method private void repbind connectio... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategic management concepts

Authors: Fred david

13th Edition

9780136120988, 136120997, 136120989, 978-0136120995

More Books

Students also viewed these Programming questions

Question

Define Administration and Management

Answered: 1 week ago

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

Construct an EFE Matrix for an organization of your choice.

Answered: 1 week ago