Lewis Chiu Portfolio
Upcoming SlideShare
Loading in...5
×
 

Lewis Chiu Portfolio

on

  • 905 views

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

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

Statistics

Views

Total Views
905
Views on SlideShare
898
Embed Views
7

Actions

Likes
0
Downloads
0
Comments
0

2 Embeds 7

http://www.linkedin.com 6
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Lewis Chiu Portfolio Lewis Chiu Portfolio Presentation Transcript

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