<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog/DialogMaster.Master" AutoEventWireup="true"
    CodeBehind="PaymentConfirm.aspx.cs" Inherits="OAWeb.crm.orders.PaymentConfirm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="form" style="width: 720px; padding: 10px;">
        <table cellpadding="0" cellspacing="0" border="0" class="table_form">
            <tr>
                <td class="right">
                    订单号:
                </td>
                <td>
                    <asp:Literal ID="ltlOrderSN" runat="server"></asp:Literal>
                </td>
                <td class="right">
                    下单客户:
                </td>
                <td>
                    <asp:Literal ID="ltlCustomerName" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="right">
                    订单总金额:
                </td>
                <td>
                    ￥<span class="red"><asp:Literal ID="ltlOrderTotal" runat="server" Text="0.00"></asp:Literal></span>
                </td>
                <td class="right">
                    已收金额:
                </td>
                <td>
                    ￥<span class="red"><asp:Literal ID="ltlPayedAmount" runat="server" Text="0.00"></asp:Literal></span>
                    <asp:Label ID="lblPaymentAmount" runat="server" CssClass="red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="right">
                    付款时间:
                </td>
                <td>
                    <asp:TextBox ID="txtPayDate" Text="" runat="server" CssClass="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>
                </td>
                <td class="right ">
                    <span class="red">*</span> 付款金额:
                </td>
                <td>
                    <asp:TextBox ID="txtAmount" runat="server" CssClass="text" Text=""></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    付款方式:
                </td>
                <td>
                    <asp:RadioButtonList ID="rdoPayType" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0">在线支付</asp:ListItem>
                        <asp:ListItem Value="1" Selected="True">线下支付</asp:ListItem>
                        <asp:ListItem Value="2">预存款支付</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="right">
                    支付方式:
                </td>
                <td>
                    <asp:DropDownList ID="ddlPayMothod" runat="server" onchange="">
                        <asp:ListItem Value="">请选择支付方式</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="right ">
                    是否开票:
                </td>
                <td>
                    <asp:Literal ID="ltlIsInvoice" runat="server" Text="是"></asp:Literal>
                </td>
                <td class="right">
                    负责人:
                </td>
                <td>
                    <asp:TextBox ID="txtTrackUserName" runat="server" CssClass="text" ReadOnly="True"></asp:TextBox>&nbsp;<input
                        id="btnSelect" type="button" value="选择" onclick="OpenRadioDialog('/Dialog/EmploySelectDialog.aspx?user=0','选择负责人',CallRadioFun);" />
                </td>
            </tr>
            <tr>
                <td class="right">
                    备注:
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtRemark" runat="server" CssClass="text width400" TextMode="MultiLine"
                        Height="90px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    <asp:HiddenField ID="hdfTrackUserID" runat="server" />
                    <input id="btnSave" type="button" value=" 确 认 " class="btn_77px" />
                    <input id="btnClose" type="button" value=" 返 回 " onclick="art.dialog.close();return false;"
                        class="btn_77px" />
                </td>
            </tr>
        </table>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnSave").click(function () {
                $("#btnSave").add("disabled", "disabled");
                $("#aspnetForm").ajaxSubmit({
                    url: "/crm/orders/PaymentConfirm.aspx?op=Save&Id=<%=Id %>",
                    success: function (result) {
                        if (result == "ok") {
                            alert("保存成功");
                            CloseReload();
                        } else {
                            alert(result);
                        }
                    }
                });
                return false;
            })
        });
        function CallRadioFun(text, value) {
            $('#<%=txtTrackUserName.ClientID %>').val(text);
            $('#<%=hdfTrackUserID.ClientID %>').val(value);
        }
    </script>
</asp:Content>
