<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_PayOrder, WebApp_deploy" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" src="../Js/jquery/jquery.js"></script>
  <div class="pageTitle">订 单 支 付</div>
  <table class="ShopOrderStyle" >
      <tr>
          <td class="OrderTitle">支付内容：</td>
          <td>
                <table>
                    <tr >
                        <td>订单编号：</td>
                        <td><asp:Label ID="LabOrderNum" runat="server" /></td>
                    </tr>
                    <tr>
                       <td>订单金额：</td>
                       <td><asp:Label ID="LabTotalMoney" runat="server" /> 元
                       </td>
                    </tr>
                    <tr>
                        <td>已 付 款：</td>
                        <td><asp:Label ID="LabPayedMoney" runat="server"/> 元</td>
                    </tr>
                </table>
          </td>
      </tr>
      <tr>
          <td class="OrderTitle">付款方式：</td>
          <td>
                <asp:RadioButtonList ID="PayTypeList" runat="server" RepeatDirection="Vertical" DataTextField="TypeName" DataValueField="TypeID" AppendDataBoundItems="true">
                    <asp:ListItem Selected="True" Value="0">商城帐户支付</asp:ListItem>
                </asp:RadioButtonList>
          </td>
      </tr>
      <tr>
          <td class="OrderTitle">收款日期：</td>
          <td><asp:TextBox ID="ReceiptDate" Enabled="false" runat="server" /></td>
      </tr>
      <tr>
          <td class="OrderTitle">手续费：</td>
          <td>
            <input id="TxtPoundage" value="0" runat="Server" readonly="readonly" style="width:40px" /> %
             <asp:HiddenField ID="hfPoundage" runat="server" Value="0" />
             
             </td>
      </tr>
      <tr>
          <td class="OrderTitle">付款金额：</td>
          <td>
                <asp:TextBox ID="Money" runat="server" EnableViewState="true" />元 
                <asp:RangeValidator ID="Rav1" runat="server" ControlToValidate="Money"  Display="None" ErrorMessage="格式不对" MaximumValue="9999999999" MinimumValue="0.0001" Type="Double"/>
                <asp:RequiredFieldValidator ID="Req1" runat="server" ControlToValidate="Money"  Display="None"  ErrorMessage="不可以是空值"/>
                <span id="spanToolMonery" style="display:none;color:Red">使用商城帐支付时：总金额 = 付款金额 + 付款金额 * 手续费</span>
          </td>
      </tr>
      <tr>
          <td class="OrderTitle">备注：</td>
          <td><asp:TextBox ID="Remark" Text="支付订单" runat="server" MaxLength="300" Width="300px" Height="50px" TextMode="MultiLine"/>
          </td>
      </tr>
      <tr>
          <td class="OrderTitle">通知会员：</td>
          <td>
                <asp:CheckBox ID="CheckSendMobileMesToCus" runat="server" Text="同时发送手机短信通知" /><br />
                <asp:CheckBox ID="CheckSendMesMesToCus" runat="server" Checked="True" Text="同时使用站内短信通知" /><br />
                <asp:CheckBox ID="CheckSendEmailMesToCus" runat="server" Text="同时使用Email通知" /><br />
          </td>
      </tr>
      <tr>
          <td colspan="2" align="center" style="text-align:center;">                   
              <asp:Button ID="butSubmit" runat="server" Text=" 确认提交 " OnClick="Button1_Click" OnClientClick="return confirm('确认无误并支付吗？')" />
              <asp:Button ID="Button2" runat="server" Text=" 取消返回 " OnClientClick="history.back();return false;" CausesValidation="False" />
          </td>
      </tr>
    </table>
    <script type="text/javascript">
        function setPoundage(val){
            var TxtPoundage=$('#<%=TxtPoundage.ClientID %>');
            if(val=="0"){
                TxtPoundage.val($('#<%=hfPoundage.ClientID %>').val());
                $('#spanToolMonery').css('display',"");
            }
            else{
                TxtPoundage.val("0");
                $('#spanToolMonery').css('display',"none");
            }
        }
        $(document).ready(function(){
            var objs=$('input[type="radio"]');
            objs.bind('click',function(){setPoundage(this.value)});
            
            if( $('#<%=TxtPoundage.ClientID %>').val()!="0" )
                $('#spanToolMonery').css('display',"");
        });
        
    </script>
</asp:Content>

