<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_ShopDeliverType, mallz" title="送货方式" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 
<table class="nick">
<tr>
    <td class="ltd">会员帐号：</td>
    <td class="rtd" style="width:35%">
    <asp:TextBox ID="TextBox1" runat="server" /></td>
    <td class="ltd">物流名称：</td>
    <td class="rtd" style="width:35%">
        <asp:TextBox ID="txtDeliverTypeName" runat="server" /></td>
</tr>
<tr>
    <td colspan="4" class="btm">
        <asp:Button ID="btn_cearchType" runat="server" OnClick="btn_cearchType_Click" Text="搜 索" /></td>
</tr>
</table>

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" PageSize="15" CssClass="adminlist" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="TypeID">
        <Columns>
            <asp:BoundField DataField="Typeid" HeaderText="编号" HeaderStyle-Width="4%" />
            <asp:HyperLinkField DataNavigateUrlFields="TypeID" DataNavigateUrlFormatString="Admin_ShowDeliverType.aspx?TypeID={0}" DataTextField="TypeName" HeaderText="名称" ItemStyle-HorizontalAlign="Left" ItemStyle-Font-Bold="true" />
            <asp:BoundField DataField="UserName" HeaderText="会员帐号" HeaderStyle-Width="18%" />
            <asp:CheckBoxField DataField="isdisabled" HeaderText="禁用" Text="是" HeaderStyle-Width="10%" />
            <asp:CheckBoxField DataField="isdefault" HeaderText="默认" Text="是" ReadOnly="True" HeaderStyle-Width="10%" />
            <asp:TemplateField HeaderText="操作" HeaderStyle-Width="10%">
               <ItemTemplate>
                   <asp:HyperLink runat="server" ID="x" NavigateUrl='<%# "Admin_ShowDeliverType.aspx?TypeID=" + Eval("TypeID") %>' Text="详细" />
                   <asp:LinkButton ID="lb_enable" runat="server" CommandArgument='<%# Eval("TypeID") %>' OnCommand="lb_enable_Command" Text='<%# (bool)Eval("IsDisabled")?"启用":"禁用" %>'></asp:LinkButton>&nbsp;
                   <asp:LinkButton ID="cl" CommandArgument='<%# Eval("TypeID") %>' OnClientClick="if(confirm('确定删除吗？'))return true;return false;" OnCommand="Delete_ButtonClick" runat="server" Text="删除" />
               </ItemTemplate>
            </asp:TemplateField>
        </Columns>
         <EmptyDataTemplate >                   
                 <tr>
                     <th>编号</th>
                     <th>名称</th>
                     <th>会员帐号</th>
                     <th>禁用</th>
                     <th>默认</th>
                     <th>操作</th>
                 </tr>
                 <tr><td colspan="10" style="text-align:center">暂无信息！</td></tr>            
            </EmptyDataTemplate>
    </asp:GridView>
    <div class="page">
    <asp:Label ID="PagePanel" runat="server" />
    </div>
</asp:Content>

