<%@ page language="C#" autoeventwireup="true" inherits="admin_model_InfoModelList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!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>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script  type="text/javascript" src="../../js/Common.js"></script>
    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
    <script src="../../js/<%=B_Lang.getLang() %>/SelectCheckBox.js"  type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 模型列表
            </td>
        </tr>
    </table>
    <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
        <tr class="title">
            <td width="40" class="t1">选择</td>
            <td width="30">
                ID
            </td>
            <td>
                模型名称
            </td>
            <td>
                表名
            </td>
            <td>
                单位
            </td>
            <td width="50%">
                操作
            </td>
        </tr>
        <asp:Repeater ID="RepInfoModel" runat="server" OnItemCommand="RepInfoModel_Delete">
            <ItemTemplate>
                <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                    <td align="center" class="t1"><asp:CheckBox ID="CheckBox1" runat="server" /></td>
                    <td align="center">
                        <asp:Literal ID="LitModelId" runat="server" Text='<%#Eval("ModelId") %>'></asp:Literal>
                    </td>
                    <td align="center">
                        <%#Eval("ModelName") %>
                    </td>
                    <td align="center">
                        <%#Eval("TableName") %>
                    </td>
                    <td align="center">
                        <%#Eval("ModelUnit") %>
                    </td>
                    <td align="center">
                        <a href="SetInfoModel.aspx?ModelId=<%#Eval("ModelId") %>">修改</a> ┊ <a href="../field/fieldlist.aspx?tableName=<%#Eval("TableName") %>">
                            字段列表</a> ┊ <a href="../field/setfield.aspx?tableName=<%#Eval("TableName") %>">添加字段</a>
                        ┊
                        <asp:LinkButton ID="LinkButton1" runat="server" Text="导出" CommandName="export" CommandArgument='<%#Eval("ModelId") %>'></asp:LinkButton>
                        ┊ <a href="javascript:WinOpenLhgDialog('复制模型','../model/CopyModel.aspx?ModelId=<%# Eval("ModelId") %>',500,220,'')">
                            复制</a> ┊
                        <asp:LinkButton ID="LinkButton2" runat="server" Text="格式化" CommandName="format" CommandArgument='<%#Eval("ModelId") %>'
                            OnClientClick="return confirm('格式化该模型将清除所有数据，确定继续操作吗?')"></asp:LinkButton>
                        ┊
                        <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="delete" CommandArgument='<%#Eval("ModelId") %>'
                            OnClientClick="return confirm('确定删除该条记录吗?')"></asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <table cellpadding="0" cellspacing="1" class="dh2" align="center">
        <tr>
            <td height="30">
                <input id="checkDel" onclick="CheckDelBox(this)" type="checkbox"><span id="ShowA">选择全部</span>
                <asp:Button ID="Button1" runat="server" Text="设置选中模型为静态" CssClass="btn" OnClick="Button1_Click"
                    Style="margin-left: 10px"></asp:Button><asp:Button ID="Button2" runat="server" Text="设置选中模型为动态" CssClass="btn" OnClick="Button1_Click"
                    Style="margin-left: 10px"></asp:Button>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
