Lewis Chiu Portfolio

759
-1

Published on

A summary of all of my projects during the SetFocus Master\'s .Net Program

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

  • Be the first to like this

No Downloads
Views
Total Views
759
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lewis Chiu Portfolio

  1. 1. .Net Portfolio Lewis Chiu [email_address] (845) 401-3146
  2. 2. Table of Contents <ul><li>Overview & Highlights </li></ul><ul><li>Windows Form Sample </li></ul><ul><li>ADO.Net Code Sample </li></ul><ul><li>ASP.Net Web Form Sample </li></ul>
  3. 3. Overview & Highlights <ul><li>Designed & implemented a library system to handle daily operations </li></ul><ul><li>Designed applications that enabled librarians to add adult and juvenile members and check in/out books </li></ul><ul><li>Provided validation of the fields and error handling </li></ul><ul><li>Three-tiered architecture </li></ul><ul><li>Developed interface using MDI forms and ASP.NET Web forms </li></ul><ul><li>ADO.NET Data Access calling Stored Procedures from SQL Server Database </li></ul>
  4. 4. Windows Form Sample <ul><li>Displaying member information </li></ul>
  5. 5. Windows Form Sample <ul><li>Data entry screens </li></ul><ul><li>Input errors will be detected </li></ul><ul><li>Juvenile members need a valid adult member </li></ul>
  6. 6. ADO.NET Code Sample <ul><li>public SqlConnection GetConnection() </li></ul><ul><li>{ </li></ul><ul><li>string connectionString = Properties.Settings.Default.LibraryConnectionString; </li></ul><ul><li>return new SqlConnection(connectionString); </li></ul><ul><li>} </li></ul><ul><li>/// Add an adult member </li></ul><ul><li>public void AddMember(AdultMember myMember) </li></ul><ul><li>{ </li></ul><ul><li>using (SqlConnection cnn = GetConnection()) </li></ul><ul><li>{ </li></ul><ul><li>using (SqlCommand cmd = new SqlCommand(&quot;AddAdult&quot;, cnn)) </li></ul><ul><li>{ </li></ul><ul><li>cmd.CommandType = CommandType.StoredProcedure; </li></ul><ul><li>cmd.Parameters.AddWithValue(&quot;@lastName&quot;, myMember.LastName); </li></ul><ul><li>cmd.Parameters.AddWithValue(&quot;@firstName&quot;, myMember.FirstName); </li></ul><ul><li>cnn.Open(); </li></ul><ul><li>try </li></ul><ul><li>{ </li></ul><ul><li>cmd.ExecuteNonQuery(); </li></ul><ul><li>myMember.MemberID = (short)cmd.Parameters[&quot;@memberNo&quot;].Value; </li></ul><ul><li>myMember.ExpirationDate = (DateTime)cmd.Parameters[&quot;@expDate&quot;].Value; </li></ul><ul><li>} </li></ul><ul><li>catch (SqlException sqle) </li></ul><ul><li>{ </li></ul><ul><li>throw new LibraryException(ErrorCode.AddAdultFailed, sqle.Message); </li></ul><ul><li>} </li></ul><ul><li>} </li></ul><ul><li>} </li></ul><ul><li>} </li></ul>
  7. 7. Stored Procedure Samples <ul><li>USE [library] </li></ul><ul><li>GO </li></ul><ul><li>/****** Object: StoredProcedure [dbo].[AddAdult] ******/ </li></ul><ul><li>IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[AddAdult]') AND type in (N'P', N'PC')) </li></ul><ul><li>DROP PROCEDURE [dbo].[AddAdult] </li></ul><ul><li>GO </li></ul><ul><li>/****** Object: StoredProcedure [dbo].[AddJuvenile] ******/ </li></ul><ul><li>IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[AddJuvenile]') AND type in (N'P', N'PC')) </li></ul><ul><li>DROP PROCEDURE [dbo].[AddJuvenile] </li></ul><ul><li>GO </li></ul><ul><li>/****** Object: StoredProcedure [dbo].[CheckIn] ******/ </li></ul><ul><li>IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CheckIn]') AND type in (N'P', N'PC')) </li></ul><ul><li>DROP PROCEDURE [dbo].[CheckIn] </li></ul><ul><li>GO </li></ul><ul><li>/****** Object: StoredProcedure [dbo].[CheckOut] ******/ </li></ul><ul><li>IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CheckOut]') AND type in (N'P', N'PC')) </li></ul><ul><li>DROP PROCEDURE [dbo].[CheckOut] </li></ul><ul><li>GO </li></ul>
  8. 8. More Stored Procedure Samples <ul><li>/****** Object: StoredProcedure [dbo].[GetItemISBNCopyNo] ******/ </li></ul><ul><li>IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetItemISBNCopyNo]') AND type in (N'P', N'PC')) </li></ul><ul><li>DROP PROCEDURE [dbo].[GetItemISBNCopyNo] </li></ul><ul><li>GO </li></ul><ul><li>/****** Object: StoredProcedure [dbo].[GetItemsMemberNo] ******/ </li></ul><ul><li>IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetItemsMemberNo]') AND type in (N'P', N'PC')) </li></ul><ul><li>DROP PROCEDURE [dbo].[GetItemsMemberNo] </li></ul><ul><li>GO </li></ul><ul><li>/****** Object: StoredProcedure [dbo].[GetMemberISBNCopyNo] ******/ </li></ul><ul><li>IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetMemberISBNCopyNo]') AND type in (N'P', N'PC')) </li></ul><ul><li>DROP PROCEDURE [dbo].[GetMemberISBNCopyNo] </li></ul><ul><li>GO </li></ul><ul><li>/****** Object: StoredProcedure [dbo].[GetMemberMemNo] ******/ </li></ul><ul><li>IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetMemberMemNo]') AND type in (N'P', N'PC')) </li></ul><ul><li>DROP PROCEDURE [dbo].[GetMemberMemNo] </li></ul><ul><li>GO </li></ul><ul><li>USE [library] </li></ul><ul><li>GO </li></ul>
  9. 9. ASP.NET Web Form Sample <ul><li>Displaying member information </li></ul>
  10. 10. ASP.NET Web Form Sample <ul><li>Data entry screen </li></ul><ul><li>Input errors will be detected </li></ul><ul><li>Juvenile members need a valid adult member </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×