Table of Contents <ul><li>Introduction </li></ul><ul><li>Screen Shots of the Application </li></ul><ul><li>DBML </li></ul><ul><li>Sample Code </li></ul>
(Library Inventory Control) <ul><li>Introduction: Design and Implement a library application, using Windows Forms, where a librarian could perform the following functionality: </li></ul><ul><ul><li>Check in books. </li></ul></ul><ul><ul><li>Check out books. </li></ul></ul><ul><ul><li>Add an adult member. </li></ul></ul><ul><ul><li>Add a juvenile member. </li></ul></ul><ul><ul><li>Obtain member book loan information. </li></ul></ul><ul><ul><li>Upgrade juvenile membership to adult once they reach the age of 18. </li></ul></ul>
(Library Inventory Control) <ul><li>Implementation </li></ul><ul><ul><li>Microsoft Visual Studio 2008 was used for coding </li></ul></ul><ul><ul><li>Microsoft SQL Server was used to house all data </li></ul></ul><ul><ul><li>Multiple tiers were used to implement the project (i.e. Front End, Business Layer, Data Access Layer, Entities Layer) </li></ul></ul><ul><ul><li>Data was accessed in a variety of different ways (SQL Stored Procedures, LinqToSql, etc.) </li></ul></ul>
Initial Screen on Start Up Enter a member ID into the text box . Click to retrieve the record.
Successful Member Retrieval Appropriate fields are populated upon successful record retrieval . Populates Data Grid with books that are currently on loan.
Result if not found Non-modal communication to inform the user .
Notification if Card is Expired Expiration date shows up in red . Tells the Librarian the card is expired Check In Button is disabled if the user has no items out.
If member is a Juvenile…. Two additional fields show up for Juvenile Records.
Checking in an item Clicking the Check In button triggers an event when there is an item selected . This message box pops up to give the user the option to back out of the transaction.
If you click “No”…. A non-modal message informs the user that the transaction was cancelled.
If you click “Yes”…. Data Grid is updated to reflect the change . Non-modal message to inform the user the transaction is successful
To check out an item Click on Member Services and select “Check Out”. Note: “Check Out” will not be available if member ‘s card has expired or member has 4 books out.
This dialog box shows up… Text box for entering ISBN. Text box for entering the copy number . Option to cancel . Note: Member number shows up in title bar.
Possible outcomes Non-Modal message to inform user of errors Input validators prevent user from entering bad data. Message to inform user that no such item exists. Note: If item is already out on loan, the Librarian has the option of checking it in before checking it out. In the event that the user has 4 items checked out, a non-modal message is displayed.
More possible outcomes… Item is not on loan and is available for check-out. If you click on “Yes”, a non-modal message is displayed to indicate success. If “No” is clicked, a messages is displayed indicating the operation was cancelled by user.
Data Grid is updated to reflect changes Newly checked out item is displayed in the grid.
Adding an Adult Validators prevent an add with bad data. Non-modal communication to inform user that there was a problem.
Adding an Adult If data is valid, click on the “Add Adult” button . If successful, a non-modal message is displayed with the assigned ID number.
Confirm the Add was a success Note the assigned member ID. Expiration date is one year from the date the data was entered.
Adding a Juvenile The Juvenile must be less than 18 years of age. Sponsoring member must be an adult and must not have an expired card . Other validators prevent data from being submitted. Non-modal communication informs user that there are problems.
Adding a Juvenile All data is good, so it is time to click on the “Add Juvenile” button. Non-modal communication to let the user know the add was a success and the new ID number of the juvenile.
Confirm the add was a success Note the member ID . Expiration Date is that of the sponsoring adult . Sponsoring Adult’s ID along with the valid DOB.
DBML The member object with its properties. Child classes of the member object. Stored procedures created in MS SQL Server.