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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="form" style="width: 500px; padding: 10px;">
        <table border="0" cellspacing="0" cellpadding="0" class="table_form">
            <tr>
                <td class="right ">
                    收货人：
                </td>
                <td>
                    <asp:TextBox ID="txtShipTo" runat="server" CssClass="text "></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right ">
                    手机：
                </td>
                <td>
                    <asp:TextBox ID="txtMobile" runat="server" CssClass="text "></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right ">
                    电话：
                </td>
                <td>
                    <asp:TextBox ID="txtTelePhone" runat="server" CssClass="text "></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right ">
                    电子邮件：
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="text "></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right ">
                    邮编：
                </td>
                <td>
                    <asp:TextBox ID="txtZipCode" runat="server" CssClass="text "></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right ">
                    地址：
                </td>
                <td>
                    <asp:DropDownList ID="ddlProvince" runat="server">
                        <asp:ListItem Value="0">省份</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlCity" runat="server">
                        <asp:ListItem Value="0">城市</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:TextBox ID="txtAddress" runat="server" CssClass="text width200"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <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 () {
            $("#<%=ddlProvince.ClientID %>").change(function () {
                ProvinceCtiyCounty(this.value, 'LoadCityJson', '<%=ddlCity.ClientID %>');
            })

            $("#btnSave").click(function () {
                $("#aspnetForm").ajaxSubmit({
                    url: "/crm/orders/OrderShipEdit.aspx?op=Save&Id=<%=Id %>&r=" + Math.random(),
                    success: function (result) {
                        if (result == "ok") {
                            alert("保存成功");
                            CloseReload();
                        } else {
                            alert(result);
                        }
                    }
                });
                return false;
            })
        });
    </script>
</asp:Content>
