Mi 09 N4 Theodore Columbus Portfolio

30
.NET Portfolio Theodore L Columbus [email protected] 989-284-6616

Transcript of Mi 09 N4 Theodore Columbus Portfolio

Page 1: Mi 09 N4 Theodore Columbus Portfolio

.NET Portfolio

Theodore L Columbus

[email protected]

989-284-6616

Page 2: Mi 09 N4 Theodore Columbus Portfolio

Project 1 Framework

• Introduction:

• Building parts of the business tier for a retail company.

• The first assembly is a class library project called Foundation.

• It will contain various interfaces and base classes as needed.

• The second assembly is a class library project called Foundation.

• It will contain various entity, collection, and exception classes used by other business processes.

Page 3: Mi 09 N4 Theodore Columbus Portfolio

Foundation Project

• The Foundation tier:• Create interface ICompanyContact.

• Create properties for the following variables.• Company Name• Contact Name• Contact Title• ID

• Create interface IAddress. • Create properties for the following variables.

• Address• City• Postal Code• Region

• Create interface ICountryPhone. • Create properties for the following variables.

• Country• Fax• Phone Number

Page 4: Mi 09 N4 Theodore Columbus Portfolio

Foundation Project

• The Foundation tier:• Create interface IContactInfo.

• Will consolidate the following interfaces.• ICompanyContact• Iaddress• ICountryPhone

• Create interface ICustomCollection. • Create properties for the following variables.

• Count• This

• Create methods for the following. • Add – Adds new item to collection.• Clear – Clears all items from collection.• Contains – See if item is in collection.• Copy To – Copy collection to new container.• Index of – Returns the index of an item.• Insert – Inserts an item at an index.• Remove – Removes last item from collection.• Remove At – Removes item at index.

Page 5: Mi 09 N4 Theodore Columbus Portfolio

Foundation Project

• Create Foundation Tier :

• Create Abstract class Contact.

• Will create fields for the properties created earlier.

• Create code for the properties from IContactInfo.

• Create constructors for the class.• Default

• Parameterized

Page 6: Mi 09 N4 Theodore Columbus Portfolio

Project Sample

Page 7: Mi 09 N4 Theodore Columbus Portfolio

Project Sample

Page 8: Mi 09 N4 Theodore Columbus Portfolio

AppTypes Project

• The AppTypes tier:

• Create attribute DeveloperInfoAttribute.

• Create fields for the following variables.• Name – Positional Argument.

• Date – Named Argument.

• Title – Named Argument.

• Create attribute CustomDescriptionAttribute.

• Create fields for the following variables.• Description – Positional Argument.

Page 9: Mi 09 N4 Theodore Columbus Portfolio

AppType Project

• Create Product class• Create constructors for the class.

• Default

• Parameterized

• Create private fields for entering data• CategoryID

• ProductName

• SupplierID

• Create properties for the fields• Code for validation for each property

• Test code to insure everything is working

Page 10: Mi 09 N4 Theodore Columbus Portfolio

AppType Project

• Create AppType Tier :• Create Products class.

• Create constructors for the class.• Default

• Parameterized

• Create fields and properties.• ProductsCollection

• List Class collection

• To store data in products class

• Count

• Will keep track of the number in the collection

Page 11: Mi 09 N4 Theodore Columbus Portfolio

AppType Project

• Create AppType Tier :• Create Products class.

• Create methods for the class.• Add

• Adds products into collection

• Clear

• Will clear the collection

• Contains

• Looks to see if item is in the collection

• IndexOf

• Will return the index of an item.

• Insert

• Will insert an item at a given index.

Page 12: Mi 09 N4 Theodore Columbus Portfolio

Library Windows Project

• Introduction:

• Building a front – end application for a library.

• Create the forms for each function.• Customer Information

• Add and adult

• Add a juvenile

• Check-in a book

• Check-out a book

• Build all validation needed on each form.

Page 13: Mi 09 N4 Theodore Columbus Portfolio

Library Windows Project

• Create the Customer Info form:

• Layout the labels and textboxes for items needed.

• Create DataGridView for form.

• Will hold all the columns for customer information.• ISBN

• Copy Number

• Title

• Author

• Check-out date

Page 14: Mi 09 N4 Theodore Columbus Portfolio

Library Windows Project

Page 15: Mi 09 N4 Theodore Columbus Portfolio

Library Windows Project

• Create the Customer Info code:

• Check validation for input field.

• Check for null inputs

• Check to make sure only numbers are used

• Check to see how many books user has on loan.

• If user has no books on loan.• Disable the check in book button

• If user has four books on loan.• Disable the check out book button

Page 16: Mi 09 N4 Theodore Columbus Portfolio

Library Windows Project

Page 17: Mi 09 N4 Theodore Columbus Portfolio

Library Windows Project

Page 18: Mi 09 N4 Theodore Columbus Portfolio

Library ADO Project

• Introduction:

• Building a back – end application for a library.

• Create the Data Access Layer.• Create methods for each stored procedure

• Write code in ADO.NET to perform each method.

• Create the Business Layer.• Create a link for the front end to access the data layer.

• Create methods for each stored procedure to access the data layer methods.

Page 19: Mi 09 N4 Theodore Columbus Portfolio

Library ADO Project

• Create the Data Access Layer:

• Create method to get customer information.

• Use a sqlConnection object

• Use a sqlCommand object

• Use a sqlReader object

• Return the customer information back to the business layer.

Page 20: Mi 09 N4 Theodore Columbus Portfolio

Library ADO Project

Page 21: Mi 09 N4 Theodore Columbus Portfolio

Library ADO Project

• Create the Business Layer:

• Create method to get customer information.

• Allow front end to talk with the data access layer• Conforms to multi-tiered design

• Allows many applications to reuse the same data layer.

Page 22: Mi 09 N4 Theodore Columbus Portfolio

Library ADO Project

Page 23: Mi 09 N4 Theodore Columbus Portfolio

Library ASP Project

• Introduction:

• Building a front – end Web application.

• Create the pages for each of the windows forms.• Get customer information

• Add adult

• Add juvenile

• Check in book

• Check out book

• Add book

Page 24: Mi 09 N4 Theodore Columbus Portfolio

Library ASP Project

• Create Customer Information page:

• Create table for proper placement.

• Place all labels and text boxes in table.

• Place grid view on page

• Place buttons in to perform functions.

Page 25: Mi 09 N4 Theodore Columbus Portfolio

Library ASP Project

• Check for validation using AJAX controls:

• Use Regex controls

• Use Required Field Validator

• Use Range Validator

• Use of control panel to limit post backs:

• Limits certain sections not to post back

• Increases speed of page load.

Page 26: Mi 09 N4 Theodore Columbus Portfolio

Library ASP Project

Page 27: Mi 09 N4 Theodore Columbus Portfolio

Library ASP Project

• Add a book to the database:

• Book name

• Author

• Type of cover

• The language the book is in

• ISBN

Page 28: Mi 09 N4 Theodore Columbus Portfolio

Library ASP Project

Page 29: Mi 09 N4 Theodore Columbus Portfolio

Library ASP Project

• Create code behind for add book page:

• Fill drop down boxes with needed data

• Languages book written in

• Is the book loanable or not

• Is it hard cover or soft

• Assign a copy number to the new book:

• Check to see if ISBN exits

• If it does then find last copy number and add one to it

• If it does not then give it copy number 1

Page 30: Mi 09 N4 Theodore Columbus Portfolio

Library ASP Project