<%@ Page Language="C#" MasterPageFile="Main.Master" AutoEventWireup="true" CodeFile="Model.aspx.cs" Inherits="eFrameWork.Application.Model" %>
<%@ Import Namespace="EKETEAM.FrameWork" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<%if (!Ajax){ %>
<div class="nav">您当前位置：<a href="Default.aspx">首页</a>&nbsp;->&nbsp;<%= (mode.Length > 0 ? "<a href=\"?AppItem=" + AppItem + "\">" + model.ModelInfo["MC"].ToString() + "</a>&nbsp;->&nbsp;回收站" : model.ModelInfo["MC"].ToString())%>
<%
if(model.Action.Value=="")
{%>
    <% if (model.Power["Add"].ToString().ToLower() == "true"){%>
    <a id="btn_add" style="float:right;margin-top:10px;margin-left:20px;" class="button" href="<%=model.eForm.getAddURL()%>"><span><i class="add"><%=model.ModelInfo["AddText"].ToString()%></i></span></a>
    <%}%>


    <%if (model.Power.Table.Columns.Contains("Export") && model.Power["Export"].ToString().ToLower() == "true"){%>
    <a style="float:right;margin-top:10px;margin-left:20px;" class="button" href="<%=eBase.getExportURL()%>" target="_blank"><span><i class="export">导出</i></span></a>
    <%}%>

    <%if (model.Power.Table.Columns.Contains("Import") && model.Power["Import"].ToString().ToLower() == "true") {%>
    <a style="float:right;margin-top:10px;margin-left:20px;" class="button" href="javascript:;" onclick="excel_import('<%=UserArea %>');"><span><i class="export">导入</i></span></a>
    <%}%>
<%}%>


<%
if (model.Action.Value == "view" && model.viewActionBotton)
{%>
    <% if (model.Power["Del"].ToString().ToLower() == "true"){%>
    <a style="float:right;margin-top:10px;margin-left:20px;" class="button" href="<%=eParameters.ReplaceAction("del")%>" onclick="javascript:return confirm('确认要删除吗？');"><span><i class="del">删除</i></span></a> 
    <%}%>
    <% if (model.Power["Edit"].ToString().ToLower() == "true"){%>
    <a style="float:right;margin-top:10px;margin-left:20px;" class="button" href="<%=eParameters.ReplaceAction("edit")%>"><span><i class="edit">编辑</i></span></a> 
    <%}%>
<%}%>

</div>
<%}%>
<asp:Literal ID="LitBody" runat="server" />
</asp:Content>
