第一周周三的DailyReporting——PM(李忠)

今天我们小组的任务完成的不错,所有组员任务都完成了

(1)陈伯雄(分析员):search部分已经完成了代码编写,现在只等第二组的数据库建好后,测试search模块的正确性和稳定性;

(2)刘宇翔(测试员):他已经完成了match部分的代码的编写,剩下的工作就是测试正确性和优化了,测试将会交给潘学处理,他会将测试结果返回给刘宇翔,刘宇翔进行更改,最后出来之后由我来进行优化工作;

(3)张孝祖(程序员):他今天已经编写完了母版页的用户信息的显示功能;

(4)潘学(程序员):他今天已经把各个搜索跳转中值的传递问题;

各个组员的具体工作,可以详见他们个人所做的报告。我们小组明天的工作到明天再分配,我们要等到UI设计小组给的UI。

下面是我的工作报告:

今天我完成了显示搜索结果的任务,设计好我们的母版页和SearchOfThisSite的联系。下面是成果展示:

母版页设计代码:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width:1200px;height:1000px" cellpadding="0" cellspacing="0">
            <tr>
                <td style="background-color:black;width:1200px;height:200px" align="center" valign="middle">
                    <br/><br/><br/><br/>
                    <font color="blue"><h1>欢迎使用学霸计算机学习网站!</h1></font>
                    <br/><br/><br/><br/>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <font color="blue"><asp:Label ID="Notice" runat="server"></asp:Label></font>
                    <br/>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="PersonalInfo" runat="server" OnClick="PersonalInfo_Click"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="NewUser" runat="server" OnClick="NewUser_Click"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="GoToHomePage" runat="server" Text="返回主页" OnClick="GoToHomePage_Click"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="Exit" runat="server" Text="退出" OnClick="Exit_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td style="width:1200px;height:700px" align="center" valign="middle">
                    <asp:contentplaceholder ID="MainContent" runat="server"></asp:contentplaceholder>
                </td>
            </tr>
            <tr>
                <td style="background-color:black;width:1200px;height:100px" align="center" valign="middle">
                    <font color="blue">各种版本信息(求编!)</font>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>


SearchOfThisSite设计代码:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchOfThisSite.aspx.cs" Inherits="Search_Of_This_Site_SearchOfThisSite" MasterPageFile="~/MasterPage.master"%>

<asp:Content ID="SearchOfThisSiteContent" runat="server" ContentPlaceHolderID="MainContent">
    <table style="width:1200px;height:700px" align="center" valign="middle">
        <tr>
            <td style="width:1200px;height:700px" align="center" valign="middle">
                <asp:TextBox ID="SearchWord" runat="server" TextMode="SingleLine"></asp:TextBox>
                <asp:Button ID="Search" runat="server" Text="搜索" OnClick="Search_Click"></asp:Button>
                <br/>
                <asp:CheckBox ID="Doc" runat="server" Text="word文档"></asp:CheckBox>
                <asp:CheckBox ID="PDF" runat="server" Text="PDF文档"></asp:CheckBox>
                <asp:CheckBox ID="Video" runat="server" Text="视频资料"></asp:CheckBox>
                <asp:CheckBox ID="QAPair" runat="server" Text="牛人解疑"></asp:CheckBox>
                <br/>

                <asp:LinkButton ID="FirstResult" runat="server" OnClick="FirstResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="FirstBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="SecondResult" runat="server" OnClick="SecondResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="SecondBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="ThirdResult" runat="server" OnClick="ThirdResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="ThirdBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="ForthResult" runat="server" OnClick="ForthResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="ForthBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="FifthResult" runat="server" OnClick="FifthResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="FifthBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="SixthResult" runat="server" OnClick="SixthResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="SixthBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="SeventhResult" runat="server" OnClick="SeventhResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="SeventhBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="EighthResult" runat="server" OnClick="EighthResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="EighthBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="NinthResult" runat="server" OnClick="NinthResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="NinthBasicContent" runat="server"></asp:Label>
                <br/>
                <asp:LinkButton ID="TenthResult" runat="server" OnClick="TenthResult_Click" PostBackUrl="~/Search_Of_This_Site/SearchOfThisSite.aspx"></asp:LinkButton>
                <br/>
                <asp:Label ID="TenthBasicContent" runat="server"></asp:Label>
                <br/>
                <br/>

                <asp:Button ID="PrePage" runat="server" Text="<上一页" OnClick="PrePage_Click"></asp:Button>
                &nbsp
                <asp:Button ID="NextPage" runat="server" Text="下一页>" OnClick="NextPage_Click"></asp:Button>
            </td>
        </tr>
    </table>
</asp:Content>

 

显示部分代码:

protected void display() {               //将搜索和排好序的数据重要信息显示在链接的名字(Text)上,必须将关键词、作者、发布时间和访问次数等基本信息显示在BasicContent里面
        for (int i = 0; i < 10 && ((int)Application["ResultRanking"] * 10 + i) < resultList.Count; i++)
        {
            int flag = 0;                //用于标记加入一个内容时,前面是否要加入一个换行符;初始值为0,表示不用加入换行符

            switch (i)
            {
                case 0:
                    FirstResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    FirstBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        FirstBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            FirstBasicContent.Text += "\n";
                        FirstBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        FirstBasicContent.Text += "\n";
                    FirstBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 1:
                    SecondResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    SecondBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        SecondBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            SecondBasicContent.Text += "\n";
                        SecondBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        SecondBasicContent.Text += "\n";
                    SecondBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 2:
                    ThirdResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    ThirdBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        ThirdBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            ThirdBasicContent.Text += "\n";
                        ThirdBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        ThirdBasicContent.Text += "\n";
                    ThirdBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 3:
                    ForthResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    ForthBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        ForthBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            ForthBasicContent.Text += "\n";
                        ForthBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        ForthBasicContent.Text += "\n";
                    ForthBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 4:
                    FifthResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    FifthBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        FifthBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            FifthBasicContent.Text += "\n";
                        FifthBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        FifthBasicContent.Text += "\n";
                    FifthBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 5:
                    SixthResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    SixthBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        SixthBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            SixthBasicContent.Text += "\n";
                        SixthBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        SixthBasicContent.Text += "\n";
                    SixthBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 6:
                    SeventhResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    SeventhBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        SeventhBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            SeventhBasicContent.Text += "\n";
                        SeventhBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        SeventhBasicContent.Text += "\n";
                    SeventhBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 7:
                    EighthResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    EighthBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        EighthBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            EighthBasicContent.Text += "\n";
                        EighthBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        EighthBasicContent.Text += "\n";
                    EighthBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 8:
                    NinthResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    NinthBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        NinthBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            NinthBasicContent.Text += "\n";
                        NinthBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        NinthBasicContent.Text += "\n";
                    NinthBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                case 9:
                    TenthResult.Text = resultList[(int)Application["ResultRanking"] + i].title;
                    TenthBasicContent.Text = null;
                    if (resultList[(int)Application["ResultRanking"] + i].keyWord != null)               //如果有关键词,则加入关键词信息到内容里
                    {
                        TenthBasicContent.Text += "关键词:" + resultList[(int)Application["ResultRanking"] + i].keyWord;
                        flag = 1;                       //flag置为1,如果要加入下一条内容时,要加入一个换行符
                    }
                    if (resultList[(int)Application["ResultRanking"] + i].author != null)           //如果有作者信息,则加入作者信息到内容里
                    {
                        if (flag == 1)                //判断flag是否为1,如果为1,加入一个换行符
                            TenthBasicContent.Text += "\n";
                        TenthBasicContent.Text += "作者:" + resultList[(int)Application["ResultRanking"] + i].author;
                        flag = 1;
                    }
                    if (flag == 1)            //判断flag是否为1,如果为1,加入一个换行符
                        TenthBasicContent.Text += "\n";
                    TenthBasicContent.Text += "访问次数:" + resultList[(int)Application["ResultRanking"] + i].visitNumber.ToString();         //将访问次数加入到内容里
                    break;
                default:
                    break;
            }
        }
    }

posted @ 2012-10-31 23:58  DOOM_buaascse  阅读(208)  评论(0编辑  收藏  举报