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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="form" style="width: 600px;">
        <table cellpadding="0" cellspacing="0" border="0" class="table_form">
            <tr>
                <td class="data_title" style="padding: 0px 10px;">
                    导入字段映射 &nbsp;
                    <br />
                    包含标题行的数据文件，再导入字段下拉中会显示该文件的标题，不存在则显示顺序号。
                </td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="1" border="0" class="table_form2">
            <tr>
                <td>
                    系统字段
                </td>
                <td>
                    导入字段
                </td>
            </tr>
            <%=CreateMapHtml() %>
            <tr>
                <td colspan="2">
                    <asp:DropDownList ID="ddlClueClassId" runat="server">
                        <asp:ListItem Value="0">请选择分类</asp:ListItem>
                    </asp:DropDownList>
                    <input id="btnStart" type="button" value=" 开始导入 " class="btn_77px" />
                    <input id="btnReturn" type="button" value=" 上一步 " class="btn_77px" onclick="window.location.href='ClueImportFileUpload.aspx'" />
                    <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 () {
            $("#btnStart").click(function () {
                //生成遮罩
                CreateZhezao($(".form"), "zhezhao");
                FormPostAjax("/crm/clues/ClueImportFieldMap.aspx?op=Import&p=<%=FileName %>&s=<%=SignType %>&sign=<%=Sign %>&e=<%=Encoding %>&t=<%=(ExistTitle?'1':'0') %>",
                 "ok",
                 CloseReload,
                 function () {
                     $("#zhezhao").remove();
                 });
            });
        })
    </script>
</asp:Content>
