<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="changeMidKey.aspx.cs" Inherits="ZYDN.Web.system.shop.changeMidKey" %>
<!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 id="Head1" runat="server">
   <title>无标题页</title>
   <link href="../../system/skins/CSS/main.css" rel="stylesheet" type="text/css" />
   <link href="../../system/skins/CSS/Sys.css" rel="stylesheet" type="text/css" />
   <style type="text/css">
        .tdTitleStyleCss{border-bottom:solid 1px #000000;border-right:solid 1px #000000;text-align:center;background-color:#E4E4E4;}
        .tdContentStyleCss{border-bottom:solid 1px #000000;border-right:solid 1px #000000;text-align:center;margin-left:2px;margin-right:2px;}
        .tabStyleCss{width:100%;border:solid 1px #000000;border-right:none;margin-top:10px;}
        .textStyleCss{width:130px;border:solid 1px #C00000;}
   </style>
   <script language="javascript" type="text/javascript">   
   function show(obj){
        var value = obj.options[obj.selectedIndex].value;
        var texObj = document.getElementById("TexSellID");
        if(value=="dbjy"||value=="jsdzs"||value=="jsdzd"){
            texObj.disabled = false;
            texObj.value = "";
        }else{
            texObj.disabled = "disabled";
            texObj.value = "仅支付宝系列填写";
        }
    }    
    </script>
</head>
<body style="margin:0px;">
    <form id="form1" runat="server">
    <div style="margin:2px auto; width:780px; text-align:center;">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting" HorizontalAlign="Center" Width="780px">
            <Columns>
                 <asp:TemplateField HeaderText="支付标识" SortExpression="netBank" Visible="False">
                    <EditItemTemplate>
                        <asp:Label ID="netBank" runat="server" Text='<%# Bind("netBank") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate >
                        <asp:Label ID="netBank" runat="server" Text='<%# Bind("netBank") %>'></asp:Label>
                    </ItemTemplate>                    
                    <ControlStyle Width="80px" />
                    <ItemStyle HorizontalAlign="Left" Width="80px" />
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="支付平台" SortExpression="netBankName">
                    <EditItemTemplate>
                        <asp:Label ID="LabnetBankName" runat="server" Text='<%# Bind("netBankName") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate >
                        <asp:Label ID="LabnetBankName" runat="server" Text='<%# Bind("netBankName") %>'></asp:Label>
                    </ItemTemplate>                    
                    <ControlStyle Width="150px" />
                    <ItemStyle HorizontalAlign="Left" Width="150px" />
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="商户号" SortExpression="payMid">
                    <EditItemTemplate>
                        <asp:TextBox ID="TexpayMid" runat="server" Text='<%# Bind("payMid") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LabpayMid" runat="server" Text='<%# Bind("payMid") %>'></asp:Label>
                    </ItemTemplate>
                    <ControlStyle Width="100px" />
                    <HeaderStyle HorizontalAlign="Center" Width="100px"/>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="支付密钥" SortExpression="payKey">
                    <EditItemTemplate>
                        <asp:TextBox ID="TexpayKey" runat="server" Text='<%# Bind("payKey") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LabpayKey" runat="server" Text='<%# Bind("payKey") %>'></asp:Label>
                    </ItemTemplate>
                    <ControlStyle Width="200px" />
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="卖家帐号" SortExpression="userName">
                    <EditItemTemplate>
                       <asp:TextBox ID="TexUserName" runat="server" Text='<%# Bind("userName") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LabUserName" runat="server" Text='<%# Bind("userName") %>'></asp:Label>
                    </ItemTemplate>
                    <ControlStyle Width="80px" />
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="启用" SortExpression="isUse">
                    <EditItemTemplate>
                        <asp:CheckBox ID="CheckisUse" runat="server" Checked='<%# Eval("isUse").ToString()=="1"?true:false %>' />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LabisUse" runat="server" Text='<%# Eval("isUse").ToString()=="1"?"是":"否" %>'></asp:Label>
                    </ItemTemplate>
                    <ControlStyle Width="20px" />
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <FooterStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" >
                    <FooterStyle HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:CommandField> 
            </Columns>
        </asp:GridView>
        <div id="addDiv" runat="server" style="text-align: center">
            <table border="0" cellpadding="0" cellspacing="0" class="tabStyleCss">
                <tr>
                    <td class="tdContentStyleCss" colspan="6" style="width:100%;color:#c00000;">添加商品名和数字签名</td>
                </tr>
                <tr>
                    <td class="tdTitleStyleCss" style="width:200px;">支付平台</td>
                    <td class="tdTitleStyleCss" >商户号</td>
                    <td class="tdTitleStyleCss" >支付密钥</td>
                    <td class="tdTitleStyleCss"  style="width: 121px">卖家帐号</td>
                    <td class="tdTitleStyleCss"  style="width:121px">是否启用</td>
                    <td class="tdTitleStyleCss"  style="width: 100px">操作</td>
                </tr>
                <tr>
                    <td class="tdContentStyleCss" style="width: 200px"><asp:DropDownList ID="listBankName" style="width:95%;" class="textStyleCss" runat="server" onchange="show(this)"></asp:DropDownList></td>
                    <td class="tdContentStyleCss"><asp:TextBox class="textStyleCss" ID="TexPayMid" runat="server" ToolTip="商户号"></asp:TextBox></td>
                    <td class="tdContentStyleCss"><asp:TextBox class="textStyleCss" ID="TexPayKey" runat="server" ToolTip="支付密钥"></asp:TextBox></td>
                    <td class="tdContentStyleCss" style="width: 121px"><asp:TextBox class="textStyleCss" ID="TexSellID" runat="server" Text="仅支付宝填写" Enabled="false" ToolTip="卖家账号"></asp:TextBox></td>
                    <td class="tdContentStyleCss" style="width:121px;"><asp:CheckBox ID="isUse" runat="server" Checked="true" /></td>
                    <td class="tdContentStyleCss" style="text-align:center; width: 100px;"><asp:Button ID="BtnAdd" runat="server" Text="增加" OnClick="BtnAdd_Click" Height="20px" BorderColor="Red" BorderStyle="Groove" Font-Size="12px" Width="50px" /></td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
