Erik King Setfocus


Published on

This is Erik King\'s portfolio of projects that he completed within the .NET Masters program at SetFocus LLC.

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Erik King Setfocus

  1. 1. SetFocus Masters Library Phase 1,2,3 Projects
  2. 2. Add Juvenile Form <ul><li>This is the first phase of the Library Applications which implements a Windows form data manipulation system. </li></ul><ul><li>Form utilized to add new Juvenile to database </li></ul><ul><li>Mandatory Fields First Name, Last Name, Date of Birth and Member ID </li></ul><ul><li>Date of Birth entry restrictions, birth date has to be less than 19 years of age </li></ul><ul><li>Member ID entry restrictions, adult member ID must exist within the database </li></ul>
  3. 3. Add Juvenile C# code <ul><li>Code extracts the user input to see if adult member exists </li></ul><ul><li>C# code performs condition check to see if the member number entered is over the age of 18 </li></ul><ul><li>If the data entered passes all conditional tests then the juvenile is added to the database, otherwise errors are highlighted on the screen to the end user </li></ul>
  4. 4. Check Out Books Form <ul><li>Form utilized to check out books </li></ul><ul><li>End user restrictions are that member can not check out more than 4 books </li></ul><ul><li>Member’s that have an expired membership can not check out books </li></ul><ul><li>A member that has at least 1 book that is past due can not check out books </li></ul>
  5. 5. Check out Books Code <ul><li>Code first extracts user input to test weather requested item exists within the database </li></ul><ul><li>The C# code then performs a method that checks out a book </li></ul><ul><li>If the item does not exist then an error handler displays an error message to the end user </li></ul><ul><li>If an item is checked out to another user the interface then gives the end user the option to check in and check out the book </li></ul><ul><li>The code also performs additional error handling if there was an error within the check out method. </li></ul>
  6. 6. Member Information Screen <ul><li>Member Information form displays different content for adult and juvenile members. </li></ul><ul><li>Member Information form also gives the end user the ability to check in any books that are due. </li></ul>
  7. 7. Member Information code <ul><li>The code extracts end user input and performs validation to see weather or not the member exists. If the member exists the code checks to see if the end user input an adult or a juvenile member. </li></ul><ul><li>The code restricts content to the end user based on weather or not the member information requested is a juvenile or an adult member. </li></ul>
  8. 8. Business Layer Code <ul><li>The purpose of the business layer code is for the presentation layer to have the ability to access data within the database. </li></ul><ul><li>Contained within this screenshot is the business object that accesses a member’s information. </li></ul><ul><li>Error handling is added to the get member information method in instances where the member entered does not exist. </li></ul>
  9. 9. Business Layer object Get Items <ul><li>This object presented in this slide is utilized to call to the ADO.NET objects to extract items that are checked out by members that was entered in by the end user. </li></ul>
  10. 10. ADO.NET object Add Adult member <ul><li>The ADO.NET phase is the second phase of the Library Application that implement the development of ADO.NET objects and stored procedures to manipulate data. </li></ul><ul><li>This ADO.NET object establishes a connection to the library database. </li></ul><ul><li>The Add Adult ADO.NET object accepts parameters of type adult and inserts these parameters into the Member and Adult tables by utilizing a stored procedure. </li></ul><ul><li>Error condition handling is provided for any errors that occur within accessing or updating the database. </li></ul>
  11. 11. Check out Item ADO.NET object <ul><li>Object displayed is utilized to check out an item for a library member. </li></ul><ul><li>The code accepts 3 parameters, forms a database connection and then runs a stored procedure to check out a book. </li></ul><ul><li>Error handling is provided for any errors generated during the accessing of data or updating of the database table. </li></ul>
  12. 12. Stored Procedure for Adding Adult member <ul><li>This displayed stored procedure is utilized to accept input parameters to add a new adult member to the database. </li></ul><ul><li>The stored procedure contains error handling that provides conditions for the input parameters. </li></ul>
  13. 13. Check Out Book Stored Procedure <ul><li>Check out Book stored procedure inserts data into the loan table and updates the copy table. </li></ul><ul><li>Rollback transactions are provided within the code to handle any exception handling of the manipulation of data. </li></ul>
  14. 14. ASP.NET Add new Adult Member <ul><li>ASP.NET phase of the Library Application represents the third phase of the Library Application, which implements URL Web Pages to interact with the library database. </li></ul><ul><li>This ASP.NET web page utilized to Add a new adult to the library database. </li></ul><ul><li>This web page has mandatory entry fields for First Name, Last Name, Street, City, State and Zip. </li></ul><ul><li>Error messages are displayed to the end user upon incorrect data entries into the text boxes. </li></ul>
  15. 15. Add Adult Web Page code <ul><li>Code within the Add Adult web page utilized to add an adult member to the database table. </li></ul><ul><li>Error handling is contained within the code to handle any exception errors encountered upon accessing or updating the database table. </li></ul>