<%@ Page Title="" Language="C#" MasterPageFile="Main.Master" AutoEventWireup="true" CodeFile="Reports.aspx.cs" Inherits="eFrameWork.Manage.Reports" %>
<%@ Import Namespace="EKETEAM.FrameWork" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="nav">您当前位置：<a href="Default.aspx">首页</a> -> 报表<a id="btn_add" style="float:right;margin-top:4px;<%=(act == "" ? "" : "display:none;" )%>" class="button" href="<%=edt.getAddURL()%>"><span><i class="add">添加</i></span></a></div>
<%if (eRegisterInfo.Base == 0 && eRegisterInfo.Loaded)
  { %>
    <div style="margin:6px;line-height:25px;font-size:13px;">
<div class="tips" style="margin-bottom:6px;"><b>未授权提示</b><br><a href="http://frame.eketeam.com/getSerialNumber.aspx" style="color:#ff0000;" target="_blank">申请临时授权</a>,享更多功能。</div>
   </div>
 <%} %>


<%
    if (act == "add" || act == "edit" || act == "copy")
{
%>
<div style="margin:6px;">
    <asp:PlaceHolder ID="eFormControlGroup" runat="server">
	<form name="frmaddoredit" id="frmaddoredit" method="post" action="<%=edt.getSaveURL()%>">
	<input name="id" type="hidden" id="id" value="<%=edt.ID%>">
    <input name="act" type="hidden" id="act" value="save">  
	<input name="fromurl" type="hidden" id="fromurl" value="<%=edt.FromURL%>">  
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="eDataView">

      <tr>
        <td width="126" class="title"><ins>*</ins>名称：</td>
        <td class="content"><span class="eform">
		 <ev:eFormControl ID="f1" Field="MC" width="600" notnull="true" fieldname="名称" runat="server" />
		</span></td>
      </tr>
	 
        <tr>
          <td class="title">报表类型：</td>
          <td class="content"><span class="eform">
		  <ev:eFormControl ID="f2" ControlType="radio" Field="ControlType" DefaultValue="table" Options="[{text:表格报表,value:table},{text:折线图,value:line},{text:柱状图,value:column},{text:条形图,value:bar},{text:饼图,value:pie},{text:环图,value:donut},{text:仪表盘,value:gauge},{text:玫瑰图,value:rose},{text:面积图,value:area}]" runat="server" /> 
		  </span></td>
        </tr>
    <tr>
          <td class="title">数据源：</td>
          <td class="content"><span class="eform">
		   <ev:eFormControl ID="f3" ControlType="select" Field="DataSourceID" FieldType="uniqueidentifier" BindObject="a_eke_sysDataSources" BindValue="DataSourceID" BindText="MC" BindCondition="delTag=0" Options="[{text:主库,value:NULL}]" DefaultValue="NULL" BindOrderBy="addTime desc" runat="server" />
		   </span></td>
        </tr>

  		<tr>
          <td class="title">说明：</td>
          <td class="content"><span class="eform">
		   <ev:eFormControl ID="f4" ControlType="textarea" Field="SM" width="600" height="60" runat="server" />
		   </span></td>
        </tr>
        <tr>
       <td colspan="2" class="title"  style="text-align:left;padding-left:100px;padding-top:10px;padding-bottom:10px;">		
		<a class="button" href="javascript:;" onclick="if(frmaddoredit.onsubmit()!=false){frmaddoredit.submit();}" style="di3splay:none;"><span><i class="save">保存</i></span></a>
		<a class="button" href="javascript:;" onclick="ajaxSubmit(frmaddoredit);" style="display:none;"><span><i class="save">保存</i></span></a>
		<a class="button" href="javascript:;" style="margin-left:30px;" onclick="history.back();"><span><i class="back">返回</i></span></a>
		</td>
	   </tr>
	 
    </table>
	 </form>
</asp:PlaceHolder>
	 </div>
<%}%>
<div style="margin:6px;overflow-x:auto;overflow-y:hidden;">
<asp:Repeater id="Rep" runat="server">
<headertemplate>
<table id="eDataTable" class="eDataTable" border="0" cellpadding="0" cellspacing="1" width="100%">
<thead>
<tr bgcolor="#f2f2f2">
<td width="300">编号</td>
<td>名称</td>
<td>报表类型</td>
<td>说明</td>
<td width="150">添加时间</td>
<td width="120">操作</td>
</tr>
</thead>
</headertemplate>
<itemtemplate>
<tr<%# ((Container.ItemIndex+1) % 2 == 0 ? " class=\"alternating\" eclass=\"alternating\"" : " eclass=\"\"") %>>
<td height="32"><%# Eval("ReportID")%></td>
<td><a href="ReportItems.aspx?ReportID=<%# Eval("ReportID").ToString()%>"><%# Eval("MC")%></a></td>
<td><%# Eval("ControlType").ToString().Replace("table","表格报表").Replace("line","折线图").Replace("column","柱状图").Replace("bar","条形图").Replace("pie","饼图").Replace("donut","环图").Replace("gauge","仪表盘").Replace("rose","玫瑰图").Replace("area","面积图")%></td>
<td><%# Eval("SM").ToString()%></td>
<td><%# Eval("addTime","{0:yyyy-MM-dd HH:mm:ss}") %></td>
<td>
<a href="?act=copy&id=<%#  Eval("ReportID").ToString()%>">复制</a>
<a href="?act=edit&id=<%#  Eval("ReportID").ToString()%>">修改</a>
<a href="?act=del&id=<%#  Eval("ReportID").ToString()%>" onclick="javascript:return confirm('确认要删除吗？');">删除</a>
</td>
</tr>
</itemtemplate>
<footertemplate></table></footertemplate>
</asp:Repeater>
</div>
<div style="margin:6px;"><ev:ePageControl ID="ePageControl1" PageSize="20" PageNum="9" runat="server" /></div>
</asp:Content>