<%@ Page Language="C#" AutoEventWireup="true" CodeFile="instrumanage.aspx.cs" Inherits="system_Instru_instrumanage" %>

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



<!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>
<link href="/App_Themes/SystemCSS/css/core.css" rel="stylesheet" type="text/css" />
<link href="/App_Themes/SystemCSS/css/base.css" rel="stylesheet" type="text/css" />
<script src="/App_Themes/SystemCSS/js/jquery-1.4.3.min.js" type="text/javascript"></script>
</head>
<body style="background:#fff;">
    <form id="form1" runat="server">
    <div class="right" id="RightHighSet">
  <div class="r_tit">
    <h2>设备预约管理</h2>
  </div>
  <div class="t_h48"></div>
  <!--留空48PX-->
  <div class="tab_bd">


<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="40px">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnDetails" CommandArgument='<%# Eval("iid") %>' 
                            runat="server" OnCommand="btnDetails_Command" Text="[详细]"></asp:LinkButton>
                    </ItemTemplate>

<HeaderStyle Width="40px"></HeaderStyle>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="取消" HeaderStyle-Width="40px">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnUpdate" CommandArgument='<%# Eval("iid") %>' 
                            runat="server" OnCommand="btnUpdate_Command" Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要取消预约吗？')&quot;>[取消]</div>" CommandName='<%# Eval("Audit") %>'></asp:LinkButton>
                    </ItemTemplate>

<HeaderStyle Width="40px"></HeaderStyle>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="删除" HeaderStyle-Width="40px" Visible="false">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnDelete" CommandArgument='<%# Eval("iid") %>' 
                            runat="server" OnCommand="btnDelete_Command" Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>"></asp:LinkButton>
                    </ItemTemplate>

<HeaderStyle Width="40px"></HeaderStyle>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂无相关数据!
            </EmptyDataTemplate>
        </asp:GridView>

<div style="margin:20px 0px 20px 0px;">
    <table align='center' style='clear:both;'><tr><td><webdiyer:aspnetpager id="AspNetPager1" horizontalalign="Center" font-bold="true"
                    runat="server" width="100%" centercurrentpagebutton="True" onpagechanging="AspNetPager1_PageChanging"
                    firstpagetext="首页" prevpagetext="上一页" nextpagetext="下一页" lastpagetext="尾页" pageindexboxtype="TextBox"
                    currentpagebuttontextformatstring="{0:[0]}" alwaysshow="false" shownavigationtooltip="True"
                    pagesize="10">
                </webdiyer:aspnetpager></td></tr></table>
        </div>
</div>
</div>
<script language="javascript"> 
 
var MS = "IE";
if(navigator.userAgent.indexOf("Firefox") > 0) {
    MS = "FF";
}
if (document.getElementById("RightHighSet")!=null) {
    if (document.documentElement.clientHeight > 200) {
        document.getElementById("RightHighSet").style.height = document.documentElement.clientHeight + "px";
    }
}
 
var t = 0;
 
window.onresize = function() {
    var now = new Date();
    now = now.getTime();
    if (now - t > 30) {
        if (document.getElementById("RightHighSet")!=null) {
            if (document.documentElement.clientHeight > 200) {
                document.getElementById("RightHighSet").style.height = document.documentElement.clientHeight + "px";
            }
            t = now;
        }
    }
}
</script>
    </form>
</body>
</html>
