<%@ page language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_Client_ServiceManage, 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:DropDownList ID="ddlSearchServiceType" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td class="ltd">
                        服务方式：
                    </td>
                    <td class="rtd">
                        &nbsp;
                        <asp:DropDownList ID="ddlSearchServiceMode" runat="server">
                        </asp:DropDownList>
                    </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;<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker()"
                            CssClass="Wdate"></asp:TextBox>
                    </td>
                    <td class="ltd">
                        服务结果：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:DropDownList ID="ddlSearchServiceResult" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        客户名称：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtSearchClientName" runat="server" Width="120px"></asp:TextBox>
                    </td>
                    <td class="ltd">
                        服务主题：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtSearchServiceTitle" runat="server" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        服务记录时间：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:DropDownList ID="ddlDate" runat="server" AutoPostBack="true" OnSelectedIndexChanged="SeachBut_Click"
                            Width="100px" Height="20px">
                            <asp:ListItem Value="">全部</asp:ListItem>
                            <asp:ListItem Value="10">十天内</asp:ListItem>
                            <asp:ListItem Value="30">一个月内</asp:ListItem>
                            <asp:ListItem Value="month">本月</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td colspan="2">
                        &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="ServiceTime" />
                            <asp:BoundField HeaderText="客户名称" DataField="ClientName" />
                            <asp:BoundField HeaderText="主题" DataField="ServiceTitle" />
                            <asp:TemplateField HeaderText="服务类型">
                                <ItemTemplate>
                                    <%#GetDictionaryTitle(Eval("ServiceType").ToString().Trim())%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="服务方式">
                                <ItemTemplate>
                                    <%#GetDictionaryTitle(Eval("ServiceMode").ToString().Trim())%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="服务结果">
                                <ItemTemplate>
                                    <%#GetDictionaryTitle(Eval("ServiceResult").ToString().Trim())%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlCheckInfo" runat="server" Text="详细" NavigateUrl='<%# "Admin_Client_ServiceManage.aspx?MenuID=2&MenuName=客户管理&FileName=服务记录详细信息&action=checkinfo&serviceItemID="+Eval("ItemID")%>'></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="lblServiceTitle" runat="server"></asp:Label>
                    </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="lblContacter" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        服务类型：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblServiceType" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        服务方式：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblServiceMode" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        服务时间：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblServiceTime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        花费时间：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblTakeTime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        服务内容 ：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblServiceContent" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        服务结果：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblServiceResult" 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 class="ltd">
                        备注：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblRemark" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <input type="button" id="btn" value="返回" onclick="history.back(-1)" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <%--详细信息 end--%>
    </div>
</asp:Content>
