⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reportview.aspx

📁 一个酒店管理的前台销售系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="ReportView.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp; &nbsp;&nbsp;<asp:LinkButton ID="LinkButton1" runat="server" BorderStyle="Outset"
            PostBackUrl="~/subject.aspx" Style="font-size: large; left: 678px; color: #6699cc;
            font-family: 华文琥珀; position: relative; top: -8px; background-color: #ffff66">返回主页</asp:LinkButton>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;
            height: 100%">
            <tr>
                <td align="center" style="width: 814px; height: 100px; text-align: center">
                    <asp:Label ID="Label1" runat="server" Height="31px" Style="font-size: xx-large; left: -5px;
                        font-family: 黑体; position: relative; top: -3px; background-color: #ccff66" Text="用餐结帐单"
                        Width="780px"></asp:Label></td>
            </tr>
            <tr>
                <td align="center" style="width: 814px; height: 243px">
                    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="417px" Width="790px" DocumentMapWidth="100%" SkinID="Red" ShowBackButton="True">
            <LocalReport ReportPath="Report2.rdlc">
                <DataSources>
                    <rsweb:ReportDataSource DataSourceId="AccessDataSource4" Name="DataSet2_DataTable1" />
                </DataSources>
            </LocalReport>
        </rsweb:ReportViewer>
                    <asp:AccessDataSource ID="AccessDataSource4" runat="server" DataFile="~/DB.mdb" SelectCommand="SELECT [NUMBER], [PAYMODE], [PRICE], [MENUNAME], [TABLEID] FROM [SALEDETAIL]">
                    </asp:AccessDataSource>
                    &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 814px; height: 4px;">
                </td>
            </tr>
        </table>
        <br />
        &nbsp;
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/DB.mdb" OnSelecting="AccessDataSource1_Selecting"
            SelectCommand="SELECT * FROM [SALEREPORT]"></asp:AccessDataSource>
        <asp:Label ID="Label2" runat="server" Style="left: 488px; position: relative; top: -132px"
            Text="客户签字:"></asp:Label>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData"
            TypeName="DataSet2TableAdapters.DataTable1TableAdapter" OnSelecting="ObjectDataSource1_Selecting"></asp:ObjectDataSource>
        <asp:Button ID="Button1" runat="server" Style="font-size: large; left: 486px; position: relative;
            top: -80px" Text="打印" Width="56px" />
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -