<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_ShopPayType, 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:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>
<asp:DropDownList id="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True"><asp:ListItem>请选择支付类型</asp:ListItem>
        <asp:ListItem Value="0">线上支付</asp:ListItem>
        <asp:ListItem Value="1">线下支付</asp:ListItem>
        </asp:DropDownList><asp:DropDownList id="DropDownList2" runat="server" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged"><asp:ListItem>请选择支付方式</asp:ListItem>
        <asp:ListItem>支付宝</asp:ListItem>
        <asp:ListItem>网银</asp:ListItem>
        <asp:ListItem>快钱</asp:ListItem>
        </asp:DropDownList>
</contenttemplate>
    </asp:UpdatePanel></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" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" DataKeyNames="TypeID">
        <Columns>
            <asp:BoundField DataField="Typeid" HeaderText="编号"  HeaderStyle-Width="4%" />
            <asp:BoundField DataField="TypeName" HeaderText="名称"  HeaderStyle-Width="20%" />
            <asp:BoundField DataField="UserName" HeaderText="会员帐号" HeaderStyle-Width="15%" />
            <asp:BoundField DataField="DisCount" HeaderText="折扣" DataFormatString="{0}%" HeaderStyle-Width="9%" />
            <asp:CheckBoxField DataField="isdisabled" HeaderText="禁用" Text="是" HeaderStyle-Width="7%" />
            <asp:CheckBoxField DataField="isdefault" HeaderText="默认" Text="是" ReadOnly="True" HeaderStyle-Width="7%" />
            <asp:TemplateField HeaderText="描述" ItemStyle-HorizontalAlign="Left">
                <ItemTemplate>
                    <asp:Literal runat="server" ID="TxtIntro" Text='<%# Eval("Intro").ToString().Replace("\n","<br/>") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField HeaderText="设为默认" ShowSelectButton="True" SelectText="设为默认" Visible="False" HeaderStyle-Width="7%" />
            <asp:TemplateField HeaderText="操作" HeaderStyle-Width="10%" >
               <ItemTemplate>
                   <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>                 
                     <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>

