








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Web design refers to the design of websites that are displayed on the internet. It usually refers to the user experience aspects of website development
Typology: Assignments
1 / 14
This page cannot be seen from the preview
Don't miss anything!









Part 3 The submission is in the form of five documents/files:
developing an application (coding) different coding standard are used to make codes more effective, modifiable and maintainable. Design and code view: Most Used Functions Code Some of the most used function codes are
1. EnableDisableControl This code is for controlling controls in the application. 2. Functions of DBConnection Class In the following images, DBConnect() function is used to connect to the database, GetTableByQuerry(string) is used to get data from the database and fill it in the
Fig ExecuteNonQuery() Following is the design and code view of my project (Inventory Management System): 1) Login Form: Design View: Shown in next page
Above is the design of Login Form where user needs to enter their username and password to login to access the Main form. Code in Login Form The above code is used in the login button of Login Page. When correct user name and password are supplied, parent form (home page) will be displayed or else error message will be displayed. 2) Home page (MDI form):
Code View: a) For New Button: In the new button, we have called two functions. They are GetCustomerId() and EnableDisableControl(parameter) and code of these functions are given below: Fig: code of GetCustomerId() function Fig: EnableDisableControl() function b) For Save and Update button
The above code helps to save the details of customer, however we’ve used save function for both save and update action, inside the code if the IsEditMode is false then the save query is executed else update query. c) Edit Button: The edit button helps to edit the details of the customer. Different buttons are disabled when edit button is clicked because we have called EnableDisableControl function in it which has various conditions. d) Delete Button:
Here, we have called GetPurchaseId() function to provide a new unique ID for every new purchase is made. Also, we have called EnableDisableControl(“New”) function in which we have applied various switch cases to control the controls. Fig: GetPurchaseId() function b) For Edit Button: This function will set isEditMode value true and the calls EnableDisableControl(“Edit”) which will switch to the “Edit” case and make changes in the controls.
c) For Save and Update button:
d) For Delete Button: The code for delete button is: This is used to delete any information from the purchase. 5) Customer Report Design View This is one of the reports generating form of our Inventory Management system.
Code View: It gives the customer report when we click the Show Data button by selecting the customer name, where the customer name is listed in the dropdown menu and the generated records will be set on the gridview.