Nj 09 T2 David Frischknecht

532 views
468 views

Published on

My portfolio of the ongoing project I did while at SetFocus.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
532
On SlideShare
0
From Embeds
0
Number of Embeds
20
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Nj 09 T2 David Frischknecht

  1. 1. <ul><li>.NET Portfolio </li></ul><ul><li>David A. Frischknecht </li></ul><ul><li>[email_address] </li></ul><ul><li>Home - 973-702-8025 </li></ul><ul><li>Cell – 570-228-6547 </li></ul>
  2. 2. <ul><li>Library System Overview </li></ul><ul><li>Design Highlights </li></ul><ul><li>Windows Forms Sample </li></ul><ul><li>ASP.NET Web Forms Sample </li></ul><ul><li>ADO.NET Code Sample </li></ul><ul><li>Stored Procedure Sample </li></ul>
  3. 3. <ul><li>Introduction </li></ul><ul><ul><li>I designed and implemented a library system to handle day-to-day operations performed by librarians . </li></ul></ul><ul><li>Audience </li></ul><ul><ul><li>Librarians will be the primary users of this application. </li></ul></ul><ul><li>Project Goals </li></ul><ul><ul><li>Design and develop Windows and Web based applications that allow librarians to add adult and juvenile members, check in and check out books, and maintain an inventory of the library’s books. </li></ul></ul><ul><ul><li>Develop code that is easily maintainable. </li></ul></ul><ul><ul><li>Provide validation for all required fields. </li></ul></ul><ul><ul><li>Provide error handling. </li></ul></ul><ul><ul><li>Produce a user interface that is intuitive, requiring minimal training for users while minimizing resource utilization. </li></ul></ul>
  4. 4. <ul><li>3 Tiered Architecture </li></ul><ul><li>User-friendly interface developed using MDI forms with menu strip navigation and ASP.NET Web forms using Tree View navigation </li></ul><ul><li>Business rules and validations encapsulated within the Business Tier </li></ul><ul><li>ADO.NET Data Access called Stored Procedures in the SQL Server Database </li></ul><ul><li>Data transported between the layers using Entities and Strongly-Typed Collections </li></ul>
  5. 5. <ul><li>Starting point of application </li></ul><ul><li>All functions available from Library menu </li></ul>
  6. 6. <ul><li>Data entry screen </li></ul><ul><li>Flags input format errors </li></ul>
  7. 7. <ul><li>Data entry screen </li></ul><ul><li>Flags input format errors </li></ul><ul><li>Requires a valid Adult Member ID </li></ul>
  8. 8. <ul><li>Retrieves member information </li></ul><ul><li>Flags expired memberships and overdue items </li></ul><ul><li>Requires a valid Member ID </li></ul>
  9. 9. <ul><li>Lists books on loan in a Data Grid View </li></ul><ul><li>Allows check out of books </li></ul><ul><li>Non-modal confirmation message </li></ul>
  10. 10. <ul><li>Retrieves information about items </li></ul><ul><li>Allows items to be checked in </li></ul><ul><li>Non-modal message when item is already checked in </li></ul>
  11. 11. <ul><li>Requires valid username and password </li></ul>
  12. 12. <ul><li>Requires valid Member ID </li></ul><ul><li>Non-modal error message for invalid input </li></ul>
  13. 13. <ul><li>Retrieves member information </li></ul><ul><li>Flags overdue items </li></ul><ul><li>Allows checkout of additional items </li></ul>
  14. 14. <ul><li>Flags input format errors </li></ul>
  15. 15. <ul><li>Flags input format errors </li></ul><ul><li>Requires a valid Adult Member ID </li></ul><ul><li>Renews Adult Member if expired membership </li></ul>
  16. 16. <ul><li>Retrieves information about items </li></ul><ul><li>Allows items to be checked in </li></ul><ul><li>Non-modal message when item is already checked in </li></ul>
  17. 17. <ul><li>Lists books on loan </li></ul><ul><li>Allows check out of books </li></ul><ul><li>Non-modal confirmation message </li></ul><ul><li>Renews Membership if expired </li></ul>
  18. 18. <ul><li>public void CheckOutItem(short memberNum, int isbn, short copyNum) </li></ul><ul><li>{ </li></ul><ul><li>using (SqlConnection cnn = new SqlConnection(Settings.Default.LibraryConnectionString)) </li></ul><ul><li>{ </li></ul><ul><li>using (SqlCommand cmd = cnn.CreateCommand()) </li></ul><ul><li>{ </li></ul><ul><li>cmd.CommandText = &quot;CheckOutItem&quot;; </li></ul><ul><li>cmd.CommandType = CommandType.StoredProcedure; </li></ul><ul><li>cmd.Parameters.AddWithValue(&quot;@member_no&quot;, memberNum); </li></ul><ul><li>cmd.Parameters.AddWithValue(&quot;@isbn&quot;, isbn); </li></ul><ul><li>cmd.Parameters.AddWithValue(&quot;@copy_no&quot;, copyNum); </li></ul><ul><li>try </li></ul><ul><li>{ </li></ul><ul><li>cnn.Open(); </li></ul><ul><li>cmd.ExecuteNonQuery(); </li></ul><ul><li>} </li></ul><ul><li>} </li></ul><ul><li>} </li></ul><ul><li>} </li></ul>
  19. 19. <ul><li>ALTER PROCEDURE [dbo].[GetItem] </li></ul><ul><li>@isbn int, </li></ul><ul><li>@copy_no smallint </li></ul><ul><li>AS </li></ul><ul><li>BEGIN </li></ul><ul><li>SET NOCOUNT ON </li></ul><ul><li>IF NOT EXISTS (SELECT * FROM copy WHERE ((isbn = @isbn) AND (copy_no = @copy_no))) </li></ul><ul><li>BEGIN </li></ul><ul><li>RAISERROR('Item does not exist.',11,1) </li></ul><ul><li>RETURN </li></ul><ul><li>END </li></ul><ul><li>SELECT copy.isbn, copy.copy_no, title.title, title.author, loan.member_no, loan.out_date, </li></ul><ul><li>loan.due_date </li></ul><ul><li>FROM title INNER JOIN copy ON title.title_no = copy.title_no </li></ul><ul><li>INNER JOIN item ON title.title_no = item.title_no AND copy.isbn = item.isbn </li></ul><ul><li>LEFT OUTER JOIN loan ON title.title_no = loan.title_no AND copy.isbn = loan.isbn </li></ul><ul><li>AND copy.copy_no = loan.copy_no </li></ul><ul><li>WHERE (copy.isbn = @isbn) AND (copy.copy_no = @copy_no) </li></ul><ul><li>END </li></ul>

×