<%@ page language="C#" autoeventwireup="true" inherits="Admin_Payment_Operate, ShopNum1Deploy" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="uc1" %>

<!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 type="text/css" rel="Stylesheet" href="css/index.css" /> 
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
     <div class="navigator">  <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="新增支付方式"></asp:Label>  </div>
     <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
       
            <tr>
                <td width="20%" >
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelPaymentType" runat="server" Text="支付方式类型："></asp:Label>
                </td>
                <td align="left" >
                    <asp:DropDownList ID="DropDownListPaymentType" runat="server" 
                        onselectedindexchanged="DropDownListPaymentType_SelectedIndexChanged" 
                         AutoPostBack="True" CssClass="select2">
                        <asp:ListItem Value="Alipay.aspx">支付宝</asp:ListItem>
                        <asp:ListItem Value="Xpay.aspx">易付通</asp:ListItem>
                        <asp:ListItem Value="Allbuy.aspx">好购(AllBuy)</asp:ListItem>
                        <asp:ListItem Value="Yeepay.aspx">易宝(YeePay)</asp:ListItem>
                        <asp:ListItem Value="YeepaySZX.aspx">易宝(YeePay)神州行</asp:ListItem>
                        <asp:ListItem Value="TenpayMed.aspx">财付通中介保护</asp:ListItem>
                        <asp:ListItem Value="DeliveryPay.aspx">货到付款</asp:ListItem>
                        <asp:ListItem Value="Alipay2.aspx">支付宝标准双向接口</asp:ListItem>
                        <asp:ListItem Value="BankTransfer.aspx">银行转帐</asp:ListItem>
                        <asp:ListItem Value="PreDeposits.aspx">预存款支付</asp:ListItem>
                    </asp:DropDownList>
                            <asp:Label ID="Label1" runat="server" Text="*" ForeColor="red"></asp:Label>
                    <asp:CompareValidator ID="CompareValidatorPaymentType" runat="server" 
                            ControlToValidate="DropDownListPaymentType" Display="Dynamic" ErrorMessage="该值必需选择" 
                            Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelName" runat="server" Text="支付方式名称："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxName" runat="server" CssClass="input2"></asp:TextBox>
                            <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" 
                            runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" 
                        runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                        ErrorMessage="支付方式最多100个字符" ValidationExpression="^[\s\S]{0,100}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelMerchantCode" runat="server" Text="商户号："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxMerchantCode" runat="server" CssClass="input2"></asp:TextBox>
                            <asp:Label ID="Label8" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorMerchantCode" 
                            runat="server" ControlToValidate="TextBoxMerchantCode" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorMerchantCode" 
                        runat="server" ControlToValidate="TextBoxMerchantCode" Display="Dynamic" 
                        ErrorMessage="商户号最多150个字符" ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelSecretKey" runat="server" Text="商户密钥："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxSecretKey" runat="server" CssClass="input2"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorSecretKey" 
                        runat="server" ControlToValidate="TextBoxSecretKey" Display="Dynamic" 
                        ErrorMessage="密匙最多150个字符" ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelSecondKey" runat="server" Text="商户密钥2："></asp:Label>
                </td>
               <td align="left" >
                    <asp:TextBox ID="TextBoxSecondKey" runat="server" CssClass="input2"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorSecondKey" 
                        runat="server" ControlToValidate="TextBoxSecondKey" Display="Dynamic" 
                        ErrorMessage="密匙最多150个字符" ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="Pwd" runat="server" Text="商户密码："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxPwd" runat="server" CssClass="input2"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorPwd" 
                        runat="server" ControlToValidate="TextBoxPwd" Display="Dynamic" 
                        ErrorMessage="密码最多150个字符" ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
              <td align="right" >
                    <asp:Label ID="LabelCharge" runat="server" Text="手续费："></asp:Label>
                </td>
               <td align="left" >
                    <asp:TextBox ID="TextBoxCharge" runat="server" CssClass="input2"></asp:TextBox>
                            <asp:Label ID="Label4" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorName2" 
                            runat="server" ControlToValidate="TextBoxCharge" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorCharge" 
                        runat="server" ControlToValidate="TextBoxCharge" Display="Dynamic" 
                        ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
              <td align="right"  >
                    <asp:Label ID="LabelIsPercent" runat="server" Text="手续费是否按百分比计算："></asp:Label>
                </td>
                <td align="left" >
                    <asp:CheckBox ID="CheckBoxIsPercent" runat="server" Text="是" />
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelEmail" runat="server" Text="电子邮箱："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxEmail" runat="server" CssClass="input2"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle5" 
                        runat="server" ControlToValidate="TextBoxEmail" Display="Dynamic" 
                        ErrorMessage="标题最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
               <td align="right" >
                    <asp:Label ID="LabelMemo" runat="server" Text="支付方式详细价绍："></asp:Label>
                </td>
                 <td align="left" >
                    <asp:TextBox ID="TextBoxMemo" runat="server"  TextMode="MultiLine" 
                       width="440" Height="60"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle6" 
                        runat="server" ControlToValidate="TextBoxMemo" Display="Dynamic" 
                        ErrorMessage="详细介绍最多4000个字符" ValidationExpression="^[\s\S]{0,4000}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelIsCOD" runat="server" Text="是否支付货到付款："></asp:Label>
                </td>
                <td align="left" >
                    <asp:CheckBox ID="CheckBoxIsCOD" runat="server" Text="是" />
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelOrderID" runat="server" Text="排序号："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxOrderID" runat="server" CssClass="input2"></asp:TextBox>
                            <asp:Label ID="Label7" runat="server" Text="*" ForeColor="red"></asp:Label>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorOrderID" 
                        runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                        ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" 
                            runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle7" 
                        runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                        ErrorMessage="排序号最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    &nbsp;</td>
                <td align="left" >
                    &nbsp;</td>
       </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right" >
                 &nbsp;</td>
                <td align="left" >
                     <div style="width:60%;margin:4px;">
        <asp:Button ID="ButtonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
            class="bt2" ToolTip="Submit" />
                         <input ID="inputReset" runat="server"  type="reset" value="重置" class="bt2"/>
                         <a href="Payment_List.aspx"><img src="images/back.png" border="0" align="top" /></a>
                         
                         <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                         
                         </div>
                </td>  
            </tr>
 </table>
   
                    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
