<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModelItems_bindObject.aspx.cs" Inherits="eFrameWork.Manage.ModelItems_bindObject" %><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <title><%=eConfig.manageName() %></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9;IE=8;IE=7;" />
	<meta http-equiv="X-UA-Compatible" content="edge" /><!--标准模式-->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="renderer" content="webkit"><!--极速模式-->
	<meta name="renderer" content="webkit|ie-comp|ie-stand"> <!--极速模式，兼容模式，IE模式打开-->
	<meta http-equiv="imagetoolbar" content="no" />
    <link href="../Plugins/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet">  
    <link href="../Plugins/dripiconsv2/css/icons.min.css" rel="stylesheet">  
    <link href="../Plugins/layui226/css/layui.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" />     
    <link href="../Plugins/eControls/default/style.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" />   
    <link href="../Plugins/Theme/default/style.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" />   
	<link href="../Plugins/Theme/manage/style.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" />
    <link href="../Plugins/eViewer/eViewer.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" /><!--图片查看-->  
	<script src="../Scripts/Init.js?ver=<%=Common.Version %>"></script>
    <script>
        function setModelCondition(obj, ModelConditionID, Item, value)
        {
            $(parent.bindobjbar).parent().attr("title", value);
            $(parent.bindobjbar).parent().find("p").text(value);
            parent.setModelCondition(parent.bindobjbar, ModelConditionID, Item, value);
            parent.layer.close(parent.arrLayerIndex.pop());
        }
        function setModelItem(obj, ModelItemID, Item, value)
        {
            $(parent.bindobjbar).parent().attr("title", value);
            $(parent.bindobjbar).parent().find("p").text(value);
            parent.setModelItem(parent.bindobjbar, ModelItemID, Item, value);
            parent.layer.close(parent.arrLayerIndex.pop());
        }
    </script>
</head>
<body>
<div style="margin:10px;">
<form id="frmsearch" name="frmsearch" method="post" action="">
<table class="eDataView" width="100%" cellspacing="0" cellpadding="0" border="0">
<colgroup>
<col width="120">
<col>
</colgroup>
<tbody><tr>
<td class="title">表或视图编码：</td>
<td class="content"><span class="eform"><input etype="text" type="text" name="s1" id="s1" value="<%=s1 %>" class="text" style="width:200px;" autocomplete="off">
    <a class="button" href="javascript:;" onclick="if(frmsearch.onsubmit()!=false){frmsearch.submit();}"><span><i class="search">搜索</i></span></a>
    </span>
</td>
</tr>
</tbody>
</table>
    </form>

<asp:Repeater id="Repeater1" runat="server">
<HeaderTemplate>
<table id="eDataTable" class="eDataTable" border="0" cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr>
<td width="60">序号</td>
<td>名称</td>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
<tr onclick="<%# (type=="1" ? "setModelCondition(this,'"+ id +"','bindobject','"+ Eval("value").ToString() +"');" : "setModelItem(this,'"+ id +"','bindobject','"+ Eval("value").ToString() +"');") %>">
<td height="35"><%#Container.ItemIndex+1 %> </td>
<td><%# Eval("text").ToString() %></td>
</tr>
</ItemTemplate>
<FooterTemplate>
 </tbody>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
</body>
</html>