<%@ page language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_Client_AnnalManage, WebApp_deploy" title="联系记录管理" %>

<asp:Content ID="cphContent" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="TabText">
        <%--列表信息 begin--%>
        <asp:Panel ID="pnlManage" runat="server">
            <table class="nick" id="table_item" runat="server">
                <tr>
                    <td class="tit left1">
                        &nbsp;&nbsp;<asp:Literal ID="ltrTitle" runat="server">联系记录管理</asp:Literal>
                    </td>
                </tr>
            </table>
            <table class="nick">
                <tr>
                    <td colspan="4" class="tit">
                        &nbsp;查询：
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        具体时间：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtBeginTime" runat="server" onfocus="WdatePicker()" CssClass="Wdate"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtEndTime" runat="server"
                            onfocus="WdatePicker()" CssClass="Wdate"></asp:TextBox>
                    </td>
                    <td class="ltd">
                        客户名称：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtSearchClientName" runat="server" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        联系方式：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:DropDownList ID="ddlSearchRelationType" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td class="ltd">
                        联系记录时间：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:DropDownList ID="ddlDate" runat="server" AutoPostBack="true" OnSelectedIndexChanged="SeachBut_Click">
                            <asp:ListItem Value="">全部</asp:ListItem>
                            <asp:ListItem Value="today">今天</asp:ListItem>
                            <asp:ListItem Value="week">本周</asp:ListItem>
                            <asp:ListItem Value="weeklast">上周</asp:ListItem>
                            <asp:ListItem Value="month">本月</asp:ListItem>
                            <asp:ListItem Value="monthlast">上月</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="rtd" colspan="3">
                        &nbsp;
                        <asp:Button ID="SeachBut" runat="server" Text="查询" OnClick="SeachBut_Click" />
                    </td>
                </tr>
            </table>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:GridView ID="gvManage" CssClass="adminlist" runat="server" AutoGenerateColumns="false"
                        AllowPaging="True" OnRowDataBound="gvManage_RowDataBound" OnPageIndexChanging="gvManage_PageIndexChanging"
                        PageSize="10">
                        <Columns>
                            <asp:BoundField HeaderText="联系时间" DataField="RelationTime" />
                            <asp:BoundField HeaderText="拥有者" DataField="ownerName" />
                            <asp:BoundField HeaderText="客户名称" DataField="ClientName" />
                            <asp:TemplateField HeaderText="联系方式">
                                <ItemTemplate>
                                    <%# GetDictionaryTitle(Eval("RelationType").ToString().Trim()) %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="记录内容" DataField="AnnalContent">
                                <ItemStyle Width="36%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="记录人" DataField="Inputer" />
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlCheckInfo" runat="server" Text="详细" NavigateUrl='<%# "Admin_Client_AnnalManage.aspx?MenuID=2&MenuName=客户管理&FileName=联系记录详细信息&action=checkinfo&annalID="+Eval("ClientAnnalID") %>'></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            <table class="adminlist" width="100%">
                                <tr>
                                    <th>
                                        联系时间
                                    </th>
                                    <th>
                                        拥有者
                                    </th>
                                    <th>
                                        客户名称
                                    </th>
                                    <th>
                                        联系方式
                                    </th>
                                    <th>
                                        记录内容
                                    </th>
                                    <th>
                                        记录人
                                    </th>
                                    <th>
                                        操作
                                    </th>
                                </tr>
                                <td colspan="7" style="text-align: center">
                                    没有符合条件的联系人数据！
                                </td>
                            </table>
                        </EmptyDataTemplate>
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
            <div class="page">
                <asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal>
            </div>
        </asp:Panel>
        <%--列表信息 end--%>
        <%--详细信息 begin--%>
        <asp:Panel ID="pnlCheckInfo" runat="server">
            <table class="nick">
                <tr>
                    <td class="tit" colspan="2">
                        &nbsp;联系记录的详细信息
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        客户名称：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblClientName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        联系方式：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblRelationType" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        客户方联系人：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblContacter" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        联系时间：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblRelationTime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        记录信息：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblAnnalContent" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        记录人：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblInputer" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="text-align: center">
                        <input type="button" id="btn" onclick="history.back()" value="返回" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <%--详细信息 end--%>
    </div>
</asp:Content>
