Click here to Skip to main content
15,896,269 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.6K   3.5K   54  
This describes a three Layer Architecture with examples
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage.master" MaintainScrollPositionOnPostback="true" CodeFile="TaskDetails.aspx.cs" Inherits="UI_TaskDetails" %>
<%@ MasterType VirtualPath="~/Master/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <%--<script type="text/javascript" src="../../Javascript/PageBackJScript.js">
    </script>
--%>
    <div>
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Medium" Font-Underline="False"
            Text="Task Details :" Width="148px"></asp:Label>
        <hr />   
        <table style="width: 445px; height: 390px;">
            <tr>
                <td style="width: 80px">
                    <asp:Label ID="Label2" runat="server" Text="Task Id"></asp:Label></td>
                <td style="width: 10px">
                    <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Size="Large" Text=":"></asp:Label></td>
                <td>
                    <asp:TextBox ID="taskIdTextBox" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 80px">
                    <asp:Label ID="Label3" runat="server" Text="Project Name" Width="104px"></asp:Label></td>
                <td style="width: 10px">
                    <asp:Label ID="Label11" runat="server" Font-Bold="True" Font-Size="Large" Text=":"></asp:Label></td>
                <td>
                    <asp:TextBox ID="projectNameTextBox" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 80px">
                    <asp:Label ID="Label6" runat="server" Text="Task Name"></asp:Label></td>
                <td style="width: 10px">
                    <asp:Label ID="Label12" runat="server" Font-Bold="True" Font-Size="Large" Text=":"></asp:Label></td>
                <td>
                    <asp:TextBox ID="taskNameTextBox" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 80px" valign="top">
                    <asp:Label ID="Label4" runat="server" Text="Task Description" Width="122px"></asp:Label></td>
                <td style="width: 10px" valign="top">
                    <asp:Label ID="Label13" runat="server" Font-Bold="True" Font-Size="Large" Text=":"></asp:Label></td>
                <td>
                    <asp:TextBox ID="taskDescriptionTextBox" runat="server" TextMode="MultiLine" Width="213px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 80px">
                    <asp:Label ID="Label5" runat="server" Text="Task Creation Date" Width="145px"></asp:Label></td>
                <td style="width: 10px">
                    <asp:Label ID="Label14" runat="server" Font-Bold="True" Font-Size="Large" Text=":"></asp:Label></td>
                <td>
                    <asp:TextBox ID="creationDateTextBox" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 80px">
                    <asp:Label ID="Label7" runat="server" Text="Task End Date" Width="105px"></asp:Label></td>
                <td style="width: 10px">
                    <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Size="Large" Text=":"></asp:Label></td>
                <td>
                    <asp:TextBox ID="endDateTextBox" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 80px; height: 26px;">
                    <asp:Label ID="Label8" runat="server" Text="Task Owner"></asp:Label></td>
                <td style="width: 10px; height: 26px;">
                    <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Size="Large" Text=":"></asp:Label></td>
                <td style="height: 26px">
                    <asp:TextBox ID="taskOwnerTextBox" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="Label9" runat="server" Text="Comments"></asp:Label>
                    <hr />
                </td>
            </tr>
            <tr>
                <td colspan="3" rowspan="2" style="height: 130px">
                    <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" DataSourceID="commentObjectDataSource" Width="435px">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#999999" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField DataField="CommentBody" HeaderText="Comment" SortExpression="CommentBody" />
                            <asp:BoundField DataField="CommentBy" HeaderText="Comment By" SortExpression="CommentBy" />
                            <asp:BoundField DataField="CommentDate" HeaderText="Comment Date" SortExpression="CommentDate" />
                            <asp:HyperLinkField DataNavigateUrlFields="Attachment" DataNavigateUrlFormatString="~/UI/Download.aspx?attachment={0}"
                                NavigateUrl="~/UI/Download.aspx" Target="_blank" Text="Download Attachment" />
                        </Columns>
                    </asp:GridView>
                    <asp:ObjectDataSource ID="commentObjectDataSource" runat="server" SelectMethod="SelectComments"
                        TypeName="CommentBLL">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="taskId" QueryStringField="taskId" Type="String" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    <asp:LinkButton ID="createCommentLinkButton" runat="server" OnClick="createCommentLinkButton_Click">Create Comment</asp:LinkButton></td>
            </tr>
            <tr>
                
                 <td colspan="3">
                     <asp:Panel ID="ContainerPanel" runat="server" Height="50px" Width="125px">
                     <div>
                     <asp:TextBox ID="commntTextBox" runat="server" Height="71px" TextMode="MultiLine"
                        Width="409px"></asp:TextBox>
                     <asp:FileUpload ID="FileUpload1" runat="server" />
                    <asp:Button ID="createCommentButton" runat="server" Text="Comment" Width="82px" OnClick="createCommentButton_Click" />
                     </div>
                     </asp:Panel>
                    
               </td>
             </tr>
             <tr>
                
                 <td colspan="3">
                     <asp:Label ID="Label17" runat="server" Text="Forward To"></asp:Label>
                     <asp:Label ID="Label18" runat="server" Text=":" Font-Bold="True" Font-Size="Large"></asp:Label>&nbsp;<asp:DropDownList
                         ID="DropDownList1" runat="server" DataSourceID="projectUserObjectDataSource"
                         DataTextField="UserId" DataValueField="UserId">
                     </asp:DropDownList><asp:ObjectDataSource ID="projectUserObjectDataSource" runat="server"
                         SelectMethod="SelectUserOfProject" TypeName="ProjectBLL">
                         <SelectParameters>
                             <asp:ControlParameter ControlID="Label19" Name="projectId" PropertyName="Text" Type="String" />
                         </SelectParameters>
                     </asp:ObjectDataSource>
                 <asp:Button ID="forwardTaskButton" runat="server" Text="Forward Task" OnClick="forwardTaskButton_Click" />
                     <asp:Label ID="Label19" runat="server" Visible="False"></asp:Label></td>
                 </tr>
                 <tr>
                 <td colspan="3" align="center">
                     &nbsp;<asp:Label ID="statusLabel" runat="server" ForeColor="Red"></asp:Label>
                 </td>
                     
                 </tr>
                 <tr>
                 <td colspan="3" align="center">
                     <asp:Button ID="endTaskButton" runat="server" Text="End Task" Width="110px" />
                 </td>
                 </tr>
        </table>
    
    </div>
  </asp:Content>

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