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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script>
    function OpenWin() {

        OpenRadioDialog('/Dialog/CustomerDialog.aspx', '选择客户', CallbackFun);

        return false;
    }

    function CallbackFun(text, value) {
        $('#<%=lblCustomerName.ClientID %>').val(text);
        $('#<%=txtCustomerID.ClientID %>').val(value);

    }     
</script>
    <div class="form" style="width: 350px; padding: 10px;">
        <table cellpadding="0" cellspacing="0" border="0" class="table_form">
            <tr>
                <td class="right">
                    客户名称：
                </td>
                <td>
                    <asp:TextBox ID="lblCustomerName" runat="server" Text="" Enabled="false"  CssClass="text"></asp:TextBox>
                    <asp:Button ID="btnOpen" runat="server" Text="选择" CssClass="btn_77px" OnClientClick="OpenWin();return false;" />
                </td>
            </tr>
            <tr>
                <td class="right">
                    方式：
                </td>
                <td>
                    <asp:DropDownList ID="ddlType" runat="server">
                    <asp:ListItem Value="1">存入</asp:ListItem>
                    <asp:ListItem Value="0">支出</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="right">
                    金额：
                </td>
                <td>
                    <asp:TextBox ID="txtIncome" runat="server" CssClass="text width200">
                    </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    支付方式：
                </td>
                <td>
                    <asp:DropDownList ID="ddlPayWay_id" runat="server">
                    <asp:ListItem Value="0">请选择</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="right">
                    收款人：
                </td>
                <td>
                    <asp:DropDownList ID="ddlUser" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>

             <tr id="trPaidTime" runat="server">
                <td class="right">
                    收款时间
                </td>
                <td>
                    <asp:TextBox ID="txtPaid_Time" runat="server" CssClass="text width200"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
                    </asp:TextBox>
                </td>
            </tr>

            <tr>
                <td class="right">
                    备注：
                </td>
                <td>
                    <asp:TextBox ID="txtRemark" TextMode="MultiLine" runat="server" CssClass="text width200"
                        Height="98px" Width="197px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnChange" runat="server" Text="提 交" OnClick="btnChange_Click" CssClass="btn_77px" />
                    <input id="btnClose" type="button" value=" 返 回 " onclick="art.dialog.close();return false;"
                        class="btn_77px" />
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="txtCustomerID" runat="server" />
    </div>
</asp:Content>
