<%@ Page Language="c#" CodeBehind="DefaultReport.aspx.cs" AutoEventWireup="True"
    Inherits="SWTraining.Report.DefaultReport" Title="分析-报表设计-默认报表设置" ValidateRequest="false" %>

<%@ Import Namespace="SWTraining" %>
<%@ Register Src="../UserCol/CodeBox.ascx" TagName="CodeBox" TagPrefix="uc1" %>
<!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 id="Head1" runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <script language="javascript" type="text/javascript">
        function checkIssueType(source, args) {
            var chkListaTipoModificaciones = document.getElementById('cblSetGroup');
            var chkLista = chkListaTipoModificaciones.getElementsByTagName("input");
            for (var i = 0; i < chkLista.length; i++) {
                if (chkLista[i].checked) {
                    args.IsValid = true;
                    return;
                }
            }
            args.IsValid = false;
        }
    </script>
    <script type="text/javascript">
        function Print() {
            if (reportid == null || keyid == null) {
                alert("请先保存报表！");
            }
            else {
                document.frames.PrintWeb.location = "../Report/Print.aspx?ReportID=" + reportid + "&KeyID=" + keyid;
            }
        }

        var h = 300;
        function AddHeight(num) {
            var div = document.getElementById("tbxContent_div_HtmlBox");
            if (num < 0 && h < 300) {

            } else {
                h += num;
            }

            if (h > 0) {
                div.style.height = h + "px";
            }

            document.getElementById("codeboxheight").value = h;
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="divpanel" style="margin-bottom: 120px">
        <table class="table" cellspacing="0">
            <tr>
                <th colspan="2">
                    默认报表设置
                </th>
            </tr>
            <tr>
                <td align="right" style="width: 120px">
                    消费单默认报表：
                </td>
                <td>
                    <asp:DropDownList ID="ddlReports1" runat="server" DataTextField="ReportName" DataValueField="ReportID">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 120px">
                    充值单默认报表：
                </td>
                <td>
                    <asp:DropDownList ID="ddlReports2" runat="server" DataTextField="ReportName" DataValueField="ReportID">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 120px">
                    考勤小票报表：
                </td>
                <td>
                    <asp:DropDownList ID="ddlReports3" runat="server" DataTextField="ReportName" DataValueField="ReportID">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 120px">
                </td>
                <td>
                    <label class="lab_buttom">
                        <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click"></asp:Button>
                    </label>
                    <label class="lab_buttom">
                        <input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
    <input id="codeboxheight" name="codeboxheight" type="hidden" value="300" />
    </form>
</body>
</html>
