<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Messages.aspx.cs" Inherits="Pages_sxt_Messages" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin:12px;">
    <asp:GridView Caption="我的呼叫中心" ID=GridView1 runat=server OnRowDeleting=Gridview1_RowDeleting OnPageIndexChanging=GridView1_PageIndexChanging>
        <Columns>
            <asp:TemplateField HeaderText="序号" ItemStyle-HorizontalAlign=Center ItemStyle-Width=60>
                <ItemTemplate><%#Container.DataItemIndex+1%></ItemTemplate>
            </asp:TemplateField>
            <%--<asp:TemplateField HeaderText="客户名称">
                <ItemTemplate>
                    <%#CRM.Common.InitData.GetSalesName(Eval("eid").ToString()) %>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="语音文本" HeaderText="语音文本" ItemStyle-Wrap=true />
            <asp:BoundField DataField="短信文本" HeaderText="短信文本" ItemStyle-Wrap=true />
            <asp:TemplateField HeaderText="呼叫结果" ItemStyle-Width=140>
                <ItemTemplate>
                    已发送：<%#Eval("已发送").ToString()%>；未发送：<%#Eval("未发送").ToString()%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="详单下载" ItemStyle-Width=60 ItemStyle-HorizontalAlign=Center>
                <ItemTemplate>
                    <%#Eval("呼叫详单").ToString() == "" ? "线路呼叫中" : "<a href='../../" + Eval("呼叫详单").ToString() + "' target=_blank>详单下载</a>"%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="创建时间" HeaderText="创建时间" HtmlEncode=false DataFormatString="{0:yyyy-MM-dd HH:MM}" ItemStyle-HorizontalAlign=Center ItemStyle-Width=100 />
            <asp:CommandField ShowDeleteButton=true DeleteText="删除" HeaderText="操作" ItemStyle-HorizontalAlign=Center ItemStyle-Width=40 />
        </Columns>
        <EmptyDataTemplate>
            无呼叫信息
        </EmptyDataTemplate>
    
    </asp:GridView>
    </div>
    </form>
</body>
</html>
