<%@ Page Title="" Language="C#" MasterPageFile="~/BackCenter/Home/Index.master" AutoEventWireup="true" CodeFile="InstruIndex.aspx.cs" Inherits="BackCenter_Instru_InstruIndex" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContextPlaceHolder" Runat="Server">

<!--My97DatePicker日期控件-->

    <script src="/App_Themes/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">

<div class="r_top_line">
        <cite style="float: right">
            <img src="/App_Themes/BackCenter/images/right_tr.gif" /></cite></div>
    <div class="r_tit">
        <%--<cite class="fr menu01"><a href='/BackCenter/Data/DataEdit.aspx?ClassId=<%=Request["ClassId"] %>'>新增数据</a></cite>--%>
        <p class="home">
            位置：后台中心 >> 设备预约管理
        </p>
    </div>
    <div class="bd">
        <div class="search">
            <h2 class="search_tit">
                <span>查询</span></h2>
            <div class="search_list">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab_style2">
                    <tr>
                        <td class="n1">标题：
                        </td>
                        <td class="n2">
                        <asp:TextBox ID="txt_Title" runat="server"></asp:TextBox>
                        </td>
                        <td class="n1">
                        预约人账号：
                        </td>
                        <td class="n2">
                        <asp:TextBox ID="txt_Account" runat="server"></asp:TextBox>
                        </td>
                        <td class="n1">
                        预约状态：
                        </td>
                        <td class="n2">
                        <asp:DropDownList ID="ddl_Audit" runat="server">
                            <asp:ListItem Value="">请选择</asp:ListItem>
                            <asp:ListItem Value="0">审核中</asp:ListItem>
                            <asp:ListItem Value="1">预约成功</asp:ListItem>
                            <asp:ListItem Value="2">预约失败</asp:ListItem>
                            <asp:ListItem Value="3">已取消</asp:ListItem>
                        </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr style="height:40px;">
                        <td class="n1">时间：
                        </td>
                        <td class="n2">
                        <asp:TextBox ID="txt_Time" runat="server" onclick="WdatePicker()"></asp:TextBox>
                        </td>
                        <td class="n1">
                        </td>
                        <td class="n2">
                        </td>
                        <td class="n1">
                        </td>
                        <td class="n2">
                        </td>
                    </tr>
                </table>
                <div class="s_menu">
                <asp:Button ID="btnSearch" CssClass="menu_b" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>     
                 </div>
            </div>
        </div>

        <div class="tit_xs">
            <h2>设备预约管理列表 </h2>
        </div>
        
        <asp:GridView ID="GridView1" GridLines="None" runat="server" Width="100%" 
          DataKeyNames="Id" AutoGenerateColumns="False"
            CssClass="tab_style">
            <Columns>
            <asp:BoundField DataField="iid" HeaderText="编号" ItemStyle-HorizontalAlign="Center"
                    HeaderStyle-Width="40px">
                    <HeaderStyle Width="40px"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Title" HeaderText="标题"  
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="StartTime" HeaderText="开始时间" 
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="EndTime" HeaderText="结束时间" 
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="AddTime" HeaderText="预约时间">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="预约状态">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# GetAudit(Eval("Audit").ToString()) %>'></asp:Label>
                    </ItemTemplate>
                    
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="操作" HeaderStyle-Width="250px">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnUpdate" CommandArgument='<%# Eval("iid") %>' runat="server" OnCommand="btnUpdate_Command" Text="[审核]" CommandName='<%# Eval("Audit") %>'></asp:LinkButton>
                        <asp:LinkButton ID="btnCancel" CommandArgument='<%# Eval("iid") %>' runat="server" OnCommand="btnCancel_Command" Text="[取消]" CommandName='<%# Eval("Audit") %>'></asp:LinkButton>
                        <asp:LinkButton ID="btnDetails" CommandArgument='<%# Eval("iid") %>' runat="server" OnCommand="btnDetails_Command" Text="[详细]"></asp:LinkButton>
                        <asp:LinkButton ID="btnDelete" CommandArgument='<%# Eval("iid") %>' runat="server" OnCommand="btnDelete_Command" Text="[删除]" OnClientClick="JavaScript:return confirm('确定要删除该记录吗？')"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂无相关数据!
            </EmptyDataTemplate>
        </asp:GridView>
                
        <div class="sabrosus">
        <webdiyer:AspNetPager ID="AspNetPager1" PageSize="10" HorizontalAlign="Center" Font-Bold="true"
                    CssClass="" runat="server" Width="100%" CenterCurrentPageButton="True"
                    OnPageChanging="AspNetPager1_PageChanging" ShowPageIndexBox="Never" FirstPageText="首页"
                    PrevPageText="上一页" NextPageText="下一页" LastPageText="尾页" PageIndexBoxType="TextBox"
                    CurrentPageButtonTextFormatString="{0:[0]}" AlwaysShow="false" ShowNavigationToolTip="True"
                    CustomInfoHTML="记录总数：%RecordCount%" ShowCustomInfoSection="Left">
                </webdiyer:AspNetPager>
        </div>
    </div>

</asp:Content>

