Mi 09 N4 Theodore Columbus Portfolio

Post on 12-Jul-2015

164 views 0 download

Tags:

Transcript of Mi 09 N4 Theodore Columbus Portfolio

.NET Portfolio

Theodore L Columbus

tlcolumbus432@yahoo.com

989-284-6616

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.

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

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.

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

Project Sample

Project Sample

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.

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

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

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.

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.

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

Library Windows Project

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

Library Windows Project

Library Windows Project

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.

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.

Library ADO Project

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.

Library ADO Project

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

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.

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.

Library ASP Project

Library ASP Project

• Add a book to the database:

• Book name

• Author

• Type of cover

• The language the book is in

• ISBN

Library ASP Project

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

Library ASP Project