Click here to Skip to main content
15,885,546 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.3K   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 TaskBLL
/// </summary>
public class TaskBLL
{
	public TaskBLL()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public string AddNewTask(string taskId, string taskName, string taskProjectId, string taskDescription, string taskCreationDate, string taskEndDate, string taskStatus)
    {
        Task taskObj = new Task();
        taskObj.TaskId = taskId;
        taskObj.TaskName = taskName;
        taskObj.Task_ProjectId = taskProjectId;
        taskObj.TaskDescription = taskDescription;
        taskObj.TaskStartDate = taskCreationDate;
        taskObj.TaskEstimatedEndDate = taskEndDate;
        taskObj.TaskStatus = taskStatus;
        TaskGateWay taskGateWayObj = new TaskGateWay();
        return taskGateWayObj.InsertNewTask(taskObj);
    }
    public bool AddUserToTask(string taskId, string projectId, string userId, string userStartDate, string userEndDate)
    {
        TaskDetails taskDetailsObj = new TaskDetails();
        taskDetailsObj.TaskId = taskId;
        taskDetailsObj.ProjectId = projectId;
        taskDetailsObj.UserId = userId;
        taskDetailsObj.UserStartDate = userStartDate;
        taskDetailsObj.UserEndDate = userEndDate;
        TaskGateWay taskGateWayObj = new TaskGateWay();
        return taskGateWayObj.InserUserToTask(taskDetailsObj);
    }
    public DataTable SelectTaskInformationOfUser(string userId)
    {
        TaskGateWay taskGateWayObj = new TaskGateWay();
        return taskGateWayObj.SelectTaskOfOwnerUser(userId);
    }
    public DataTable SelectTaskInformation(string taskId)
    {
        TaskGateWay taskGateWayObj = new TaskGateWay();
        return taskGateWayObj.SelectAllTaskData(taskId);
    }
    public void ForwardTask(string taskId, string userId)
    {
        TaskGateWay taskGateWayObj = new TaskGateWay();
        taskGateWayObj.ForwardTask(taskId, userId);

    }
}

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