<%@ page language="C#" autoeventwireup="true" inherits="GroupFlyProduce_ProduceAdmin_ProduceOnLineService_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<!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>Untitled Page</title>
    <link rel="stylesheet" type="text/css" href="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" language="javascript" src="../../js/CommonJS.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTtitle" runat="server" Text="在线客服管理"></asp:Label></div>
            <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" runat="server" AddSequenceColumn="False"
                AllowMultiColumnSorting="False" AutoGenerateColumns="False" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                Edit="False" TableName="" Width="100%" AllowSorting="True" DataSourceID="ObjectDataSourceDate"
                AllowPaging="True" GridLines="None" CellSpacing="1" CellPadding="0" FixHeader="False"
                GridViewSortDirection="Ascending" PagingStyle="None" BorderWidth="0px" Style="margin-left: 0px;">
                <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                </HeaderStyle>
                <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <input id="checkboxItem" value='<%# Eval("Guid") %>' type="checkbox" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="在线客服名称" DataField="Name" />
                    <asp:BoundField HeaderText="在线客服账号" DataField="ServiceAccount" />
                    <asp:TemplateField HeaderText="是否显示">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# ChangeIsShow(DataBinder.Eval(Container, "DataItem(IsShow)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="排序号" DataField="OrderID" />
                </Columns>
            </cc1:GroupFlyGridView>
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonAdd" runat="server" Text="添加" CssClass="bnt1" OnClick="ButtonAdd_Click"
            OnClientClick="return GetCheckedBoxValues()" />
        <asp:Button ID="ButtonEdite" runat="server" Text="编辑" CssClass="bnt1" OnClientClick="return EditButton()"
            OnClick="ButtonEdite_Click" />
        <asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" Text="删除" CssClass="bnt1"
            OnClientClick="return DeleteButton()" OnClick="ButtonDelete_Click" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
        <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="GetOnlineServiceInfo"
            TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_OnlineService_Action"
            OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
                <asp:ControlParameter ControlID="ProduceMemLoginID" DefaultValue="" Name="ProduceMemLoginID"
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
        <asp:HiddenField ID="ProduceMemLoginID" runat="server" Value="0" />
    </div>
    </form>
</body>
</html>
