Click here to Skip to main content
15,891,136 members
Articles / Web Development / ASP.NET

A Task Management System using Three Layer Architecture

,
Rate me:
Please Sign up or sign in to vote.
4.27/5 (15 votes)
9 Apr 2010CPOL5 min read 64.5K   3.5K   54  
This describes a three Layer Architecture with examples
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Task
/// </summary>
public class Task
{
	 private string taskId;
    private string taskName;
    private string taskDescription;
    private string taskStartDate;
    private string taskEstimatedEndDate;
    private string taskStatus;
    private string task_ProjectId;
    
    /// <summary>
    /// default constructor for creating task
    /// </summary>
	public Task()
	{
    }
   /// <summary>
    /// constructor for creating task
   /// </summary>
   /// <param name="taskId"></param>
   /// <param name="taskName"></param>
   /// <param name="taskDescription"></param>
   /// <param name="taskStartDate"></param>
   /// <param name="taskEstimatedEndDate"></param>
   /// <param name="taskProjectId"></param>
    public Task(string taskId, string taskName, string taskDescription, string taskStartDate, string taskEstimatedEndDate, string taskProjectId)
        : this()
    {
        this.taskId = taskId;
        this.taskName = taskName;
        this.taskDescription = taskDescription;
        this.taskStartDate = taskStartDate;
        this.taskEstimatedEndDate = taskEstimatedEndDate;
        this.taskStatus = "Running";
        this.task_ProjectId = taskProjectId;
        
    }
    /// <summary>
    /// sets and gets task id
    /// </summary>
    public string TaskId
    {
        set { taskId = value; }
        get { return taskId; }
    }
  
    /// <summary>
    /// sets and gets task name
    /// </summary>
    public string TaskName
    {
        set { taskName = value; }
        get { return taskName; }
    }
    /// <summary>
    /// sets and gets task description
    /// </summary>
    public string TaskDescription
    {
        set { taskDescription = value; }
        get { return taskDescription; }
    }
    /// <summary>
    /// sets and gets task start date
    /// </summary>
    public string TaskStartDate
    {
        set { taskStartDate = value; }
        get { return taskStartDate; }
    }
    /// <summary>
    /// sets and gets task estimated end date
    /// </summary>
    public string TaskEstimatedEndDate
    {
        set { taskEstimatedEndDate = value; }
        get { return taskEstimatedEndDate; }
    }
    /// <summary>
    /// sets and gets task status
    /// </summary>
    public string TaskStatus
    {
        set { taskStatus = value; }
        get { return taskStatus; }
    }
    /// <summary>
    /// sets and gets task project id
    /// </summary>
    public string Task_ProjectId
    {
        set { task_ProjectId = value; }
        get { return task_ProjectId; }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Waveroamer Solutions, Advanced ERP(BD) LTD
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Written By
Software Developer WaveRoamer Solution Ltd
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions