nj 09 t2 david frischknecht
DESCRIPTION
My portfolio of the ongoing project I did while at SetFocus.TRANSCRIPT
![Page 2: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/2.jpg)
• Library System Overview• Design Highlights• Windows Forms Sample• ASP.NET Web Forms Sample• ADO.NET Code Sample• Stored Procedure Sample
![Page 3: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/3.jpg)
• Introduction• I designed and implemented a library system to handle day-to-day operations
performed by librarians.
• Audience• Librarians will be the primary users of this application.
• Project Goals• 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.
• Develop code that is easily maintainable.• Provide validation for all required fields.• Provide error handling.• Produce a user interface that is intuitive, requiring minimal training for users while
minimizing resource utilization.
![Page 4: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/4.jpg)
• 3 Tiered Architecture• User-friendly interface developed using MDI forms with
menu strip navigation and ASP.NET Web forms using Tree View navigation
• Business rules and validations encapsulated within the Business Tier
• ADO.NET Data Access called Stored Procedures in the SQL Server Database
• Data transported between the layers using Entities and Strongly-Typed Collections
![Page 5: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/5.jpg)
Starting point of application All functions available from Library menu
![Page 6: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/6.jpg)
Data entry screen Flags input format errors
![Page 7: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/7.jpg)
Data entry screen Flags input format errors Requires a valid Adult Member ID
![Page 8: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/8.jpg)
Retrieves member information Flags expired memberships and overdue items Requires a valid Member ID
![Page 9: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/9.jpg)
Lists books on loan in a Data Grid View Allows check out of books Non-modal confirmation message
![Page 10: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/10.jpg)
Retrieves information about items Allows items to be checked in Non-modal message when item is already checked in
![Page 11: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/11.jpg)
Requires valid username and password
![Page 12: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/12.jpg)
Requires valid Member ID Non-modal error message for invalid input
![Page 13: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/13.jpg)
Retrieves member information Flags overdue items Allows checkout of additional items
![Page 14: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/14.jpg)
Flags input format errors
![Page 15: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/15.jpg)
Flags input format errors Requires a valid Adult Member ID Renews Adult Member if expired membership
![Page 16: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/16.jpg)
Retrieves information about items Allows items to be checked in Non-modal message when item is already checked in
![Page 17: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/17.jpg)
Lists books on loan Allows check out of books Non-modal confirmation message Renews Membership if expired
![Page 18: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/18.jpg)
ubl i c voi d CheckOut I t em(short memberNum, i nt i sbn, short copyNum)
usi ng (Sql Connect i on cnn = new Sql Connect i on(Set t i ngs. Def aul t . Li braryConnect i onSt r i ng) )
{
usi ng (Sql Command cmd = cnn. Creat eCommand( ) )
{
cmd. CommandText = " CheckOut I t em" ;
cmd. CommandType = CommandType. St oredProcedure;
cmd. Paramet ers. AddWi t hVal ue( " @member_no" , memberNum) ;
cmd. Paramet ers. AddWi t hVal ue( " @i sbn" , i sbn) ;
cmd. Paramet ers. AddWi t hVal ue( " @copy_no" , copyNum) ;
t ry
{
cnn. Open( ) ;
cmd. Execut eNonQuery( ) ;
}
}
}
![Page 19: Nj 09 T2 David Frischknecht](https://reader035.vdocument.in/reader035/viewer/2022081404/559466871a28ab6a4a8b46c2/html5/thumbnails/19.jpg)
ALTER PROCEDURE [dbo] . [Get I t em]@i sbn i nt ,@copy_no smal l i nt
ASBEGI N
SET NOCOUNT ONI F NOT EXI STS (SELECT * FROM copy WHERE ( ( i sbn = @i sbn) AND (copy_no = @copy_no) ) )BEGI N
RAI SERROR( ' I t em does not exi st . ' , 11, 1)RETURN
ENDSELECT copy. i sbn, copy. copy_no, t i t l e. t i t l e, t i t l e. aut hor, l oan. member_no, l oan. out _dat e,
l oan. due_dat eFROM t i t l e I NNER JOI N copy ON t i t l e. t i t l e_no = copy. t i t l e_no
I NNER JOI N i t em ON t i t l e. t i t l e_no = i t em. t i t l e_no AND copy. i sbn = i t em. i sbnLEFT OUTER JOI N l oan ON t i t l e. t i t l e_no = l oan. t i t l e_no AND copy. i sbn = l oan. i sbnAND copy. copy_no = l oan. copy_no
WHERE (copy. i sbn = @i sbn) AND (copy. copy_no = @copy_no)END