<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_HowavePayType, WebApp_deploy" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="adminheading">
     <tr>
        <th valign="middle" class="shoppage"  align="left">商城支付方式管理<asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager></th>                  
        <td align="right"><div style="width:100px">
        <a href="Admin_HowaveUpdatePaytype.aspx?Action=add"></a>
        </div>
        </td>
        <td class="rtdw"></td>
     </tr>
 </table> 
 
<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="编号" ReadOnly="True" >
                <ItemStyle Width="40px" />
            </asp:BoundField>
            <asp:BoundField DataField="TypeName" HeaderText="名称" />
            <asp:BoundField DataField="UserName" HeaderText="会员帐号">
                <ItemStyle Width="150px" />
            </asp:BoundField>
            <asp:BoundField DataField="DisCount" HeaderText="折扣" DataFormatString="{0}%">
                <ItemStyle Width="60px" />
            </asp:BoundField>
            <asp:CheckBoxField DataField="isdisabled" HeaderText="禁用" Text="是">
                <ItemStyle Width="50px" />
            </asp:CheckBoxField>
            <asp:CheckBoxField DataField="isdefault" HeaderText="默认" Text="是" ReadOnly="True" >
                <ItemStyle Width="40px" />
            </asp:CheckBoxField>
            <asp:TemplateField HeaderText="描述">
                <ItemTemplate>
                    <asp:Literal runat="server" ID="TxtIntro" Text='<%# Eval("Intro").ToString().Replace("\n","<br/>") %>' />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:CommandField HeaderText="设为默认" ShowSelectButton="True" SelectText="设为默认" Visible="False">
                <ItemStyle Width="80px" />
            </asp:CommandField>
            <asp:TemplateField HeaderText="删除">
               <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>
                <ItemStyle Width="100px" />
            </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>

