6 - Order Section
when you click on the order tab MANAGE_ORDERS_FORM will show up, and this form contain:
- 1 datagridview with all customers.
- 1 datagridview for products ( show products depending on combobox category ).
- 1 datagridview to display the products you want to add into the order .
on the datagridview for customers, if you select a row the customer id will be set into the textbox id,
and if you double click a form will show up with the selected customer orders, and when you select an order you can see all products on this order in a listbox.
if you want to add a new customer click on "Add New Customer" button and enter the customer data
now if you want to add products to the order follow those steps:
1 - select the category you want from the combobox.
2 - double click on the product you want, the QUANTITY_FORM will show up and you can enter the quantity you want, you can't enter 0 or let the box empty or enter a heigher quantity than the one available on the database.
and if everything is ok, the selected product will be add to the order datagridview with the quantity you want.
|
add product to order with valid quantity |
now lets add more products to the order
- in the datagridview you can see a column "Quantity X Price" where we calculate the total price for this product.
- the checkbox "Select All" allow you to select all the products in the datagridview and if you want to delete them click on the "Delete Selected Products".
- on the bottom you can see the total amount of all products.
if all is good, click the "Insert Order" button to add the new order with the details into the database.
if you want to show all the orders click on the "Show All Orders" button and ALL_ORDERS_FORM will show up with all the orders displayed on a datagridview.
when you click on "Print Selected Order" the selected order will be printed into a pdf file using iTextSharp (PDF library)
7 - User Section
and the last one is the user tab, so when you click on it the MANAGE_USERS_FORM will show up
with all the users displayed on a datagridview.
if you select a user from the datagridview all the data will be set into textboxes so you can delete it or edit his informations.
and to add a new user click on the "Create New User" button so the ADD_NEW_USER_FORM will show up, and all you have to do is enter the user informations and click add.