<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowModelData.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.Accessories.ShowModelData" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择数据</title>
    <base target="_self" />
</head>
<body class="floatingIframe">
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="2" cellspacing="1">
        <tr class="tdbg">
            <td>&nbsp;
            </td>
            <td style="width: 90%" align="right">
                &nbsp; 搜索：
                <asp:DropDownList ID="DropField" runat="server">
                </asp:DropDownList>
                <asp:TextBox ID="TxtSearchKeyword" runat="server"></asp:TextBox>
                <asp:Button ID="BtnSearch" OnClick="BtnSearch_Click" CssClass="inputbutton" runat="server" Text="搜索" />
            </td>
        </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="1" border="0" class="border">
        <tr class="title" align="center">
            <%= FieldList %>
        </tr>
        <asp:Repeater ID="RptModelData" runat="server" OnItemDataBound="RptModelData_ItemDataBound" OnItemCommand="RptModelData_ItemCommand">
            <ItemTemplate>
               <pe:ExtendedLiteral ID="LitItem" runat="server" HtmlEncode="false"></pe:ExtendedLiteral>
               <div style="display:none"><textbox id="ModelDataInfo" runat="server" style="display:none;"></textbox></div>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <table border="0" align="center" cellpadding="2" cellspacing="0">
        <tr>
            <td align="center">
                <pe:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged">
                </pe:AspNetPager>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        function Return(value, obj) {
            var clientId = '#<%= Request.QueryString["ClientId"] %>';
            var referenceModelInfoClientID = '#<%= Request.QueryString["ReferenceModelInfoClientID"] %>';
            var txtReferenceModelDataName = '#<%= Request.QueryString["TxtReferenceModelDataName"] %>';
            arrvalue = value.split("|");
            if (arrvalue.length > 1) {
                window.parent.jQuery(txtReferenceModelDataName).val(arrvalue[1]);
            }

            window.parent.jQuery(clientId).val(arrvalue[0]);
            window.parent.jQuery(referenceModelInfoClientID).html(jQuery('#' + obj).html());
            window.parent.jQuery(clientId).change();
            window.parent.jQuery('.floatingDialog').hide();
            window.parent.jQuery('#jqDnrFloatDivBg').hide();
        }
    </script>
    </form>
</body>
</html>
