<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="overview.aspx.cs" Inherits="Web.sb.show.overview" %>

<!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 id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('../../css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
                    <td style ="width :720px; height :34px;  background-image: url('../../css/images/atghtj.png');	background-repeat: no-repeat;
                	background-position: left top;"><div id="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	设备管理首页
                      	
                	</div></td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
            
<!--栏目开始 -->
              <asp:Panel ID="plPreLend" runat="server">
            <table style ="width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
               <tr>
                    <td style ="font-weight:bolder;background-image: url('../../css/images/asdfrsg.png'); height :33px; padding-left :20px">
                    <!--这里添加栏目标题 -->
                    预借设备列表
                    
                     &gt;&gt;</td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); width :103px"></td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); width :64px"></td>
                    <td  style ="background-image: url('../../css/images/asdfrsg.png'); width :76px" ></td>
                </tr>
                <tr>
                    <td height="10" colspan="4" style="font-weight:bolder;"></td>
                </tr>
            </table>
            <!--这里添加内容 -->
            <asp:GridView ID="gvPreLend" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                            onrowdatabound="GV_RowDataBound" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                  <Columns>
                    <asp:BoundField DataField="lenddate" HeaderText="预借时间" ReadOnly="True" />
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                                        <asp:TemplateField HeaderText="配置">
                        <EditItemTemplate>
                            <asp:Label ID="configuration_e" runat="server" Text='<%# Eval("configuration") %>'></asp:Label>&nbsp;
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="configuration_v" runat="server"></asp:Label>
                            <asp:Label ID="configuration_notv" runat="server" Text='<%# Bind("configuration") %>'  Visible ="false" ></asp:Label>&nbsp;
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="unit" HeaderText="计量单位" ReadOnly="True" />
                    <asp:TemplateField HeaderText="借用数量">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("lendnumber") %>' 
                                Width="40px"></asp:TextBox>
                            库存:<asp:Label ID="Label2" runat="server" Text='<%#Bind("sumactualinventory") %>'></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="数量不能为空。"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                ValidationExpression="^\+?[1-9][0-9]*$"></asp:RegularExpressionValidator>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                                ControlToValidate="TextBox1" ErrorMessage="请输入合适的数量" 
                                MaximumValue='<%# Bind("sumactualinventory") %>' MinimumValue="<%# 0 %>" 
                                Display="Dynamic" Type="Integer"></asp:RangeValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("lendnumber") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                                       <asp:TemplateField HeaderText="借用说明">
                         <EditItemTemplate>
                             <asp:Label ID="lendnote_e" runat="server" Text='<%# Eval("lendnote") %>'></asp:Label>&nbsp;
                         </EditItemTemplate>
                         <ItemTemplate>
                             <asp:Label ID="lendnote_v" runat="server"></asp:Label>
                             <asp:Label ID="lendnote_notv" runat="server" Text='<%# Eval("lendnote") %>' Visible ="false" ></asp:Label>&nbsp;
                         </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="计划归还时间">
                        <EditItemTemplate>
                          &nbsp;  <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("plansreturndate") %>'></asp:TextBox>&nbsp;
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="归还时间不能为空。"></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                           &nbsp; <asp:Label ID="Label3" runat="server" Text='<%# Bind("plansreturndate") %>'></asp:Label>&nbsp;
                        </ItemTemplate>
                    </asp:TemplateField>

                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
</asp:Panel> 
<!--栏目结束 -->
               
<!--栏目开始 -->
<asp:Panel ID="plPreGet" runat="server">
                <table style =" width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
                     <tr>
                         <td style ="font-weight:bolder;background-image: url('../../css/images/asdfrsg.png'); width :497px; height :33px; padding-left :20px">
                             <!--这里添加栏目标题 -->
                             预领设备列表 
                             &gt;&gt;</td>
                         <td style ="background-image: url('../../css/images/asdfrsg.png'); width :103px"></td>
                         <td style ="background-image: url('../../css/images/asdfrsg.png'); width :64px"></td>
                         <td  style ="background-image: url('../../css/images/asdfrsg.png'); width :76px" ></td>
                    </tr>
                    <tr>
                         <td height="10" colspan="4" style="font-weight:bolder;"></td>
                    </tr>
                </table>
                        <!--这里添加内容 -->
                        <asp:GridView ID="gvPreGet" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                            onrowdatabound="GV_RowDataBound" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                  <Columns>
                    <asp:BoundField DataField="getdate" HeaderText="预领时间" ReadOnly="True" />
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                                            <asp:TemplateField HeaderText="配置">
                        <EditItemTemplate>
                            <asp:Label ID="configuration_e" runat="server" Text='<%# Eval("configuration") %>'></asp:Label>&nbsp;
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="configuration_v" runat="server"></asp:Label>
                            <asp:Label ID="configuration_notv" runat="server" Text='<%# Bind("configuration") %>'  Visible ="false" ></asp:Label>&nbsp;
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="unit" HeaderText="计量单位" ReadOnly="True" />
                    <asp:TemplateField HeaderText="领用数量">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("getnumber") %>' 
                                Width="40px"></asp:TextBox>
                            库存:<asp:Label ID="Label2" runat="server" Text='<%#Bind("sumactualinventory") %>'></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="数量不能为空。"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                ValidationExpression="^\+?[1-9][0-9]*$"></asp:RegularExpressionValidator>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                                ControlToValidate="TextBox1" ErrorMessage="请输入合适的数量" 
                                MaximumValue='<%# Bind("sumactualinventory") %>' MinimumValue="<%# 0 %>" 
                                Display="Dynamic" Type="Integer"></asp:RangeValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("getnumber") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    

                                             <asp:TemplateField HeaderText="领用说明">
                         <EditItemTemplate>
                             <asp:Label ID="lendnote_e" runat="server" Text='<%# Eval("getnote") %>'></asp:Label>&nbsp;
                         </EditItemTemplate>
                         <ItemTemplate>
                             <asp:Label ID="lendnote_v" runat="server"></asp:Label>
                             <asp:Label ID="lendnote_notv" runat="server" Text='<%# Eval("getnote") %>' Visible ="false" ></asp:Label>&nbsp;
                         </ItemTemplate>
                    </asp:TemplateField>


                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
      </asp:Panel>                   
<!--栏目结束 -->
<!--栏目开始 -->
<asp:Panel ID="plPreReturn" runat="server"> 
            <table style ="width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
               <tr>
                    <td style ="font-weight:bolder;background-image: url('../../css/images/asdfrsg.png'); height :33px; padding-left :20px">
                    <!--这里添加栏目标题 -->
                    归还中设备列表
                    
                     &gt;&gt;</td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); width :103px"></td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); width :64px"></td>
                    <td  style ="background-image: url('../../css/images/asdfrsg.png'); width :76px" ></td>
                </tr>
                <tr>
                    <td height="10" colspan="4" style="font-weight:bolder;"></td>
                </tr>
            </table>
            <!--这里添加内容 -->
            <asp:GridView ID="gvPreReturn" runat="server" onrowdatabound="GV_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                                         <asp:TemplateField HeaderText="配置">
                        <EditItemTemplate>
                            <asp:Label ID="configuration_e" runat="server" Text='<%# Eval("configuration") %>'></asp:Label>&nbsp;
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="configuration_v" runat="server"></asp:Label>
                            <asp:Label ID="configuration_notv" runat="server" Text='<%# Bind("configuration") %>'  Visible ="false" ></asp:Label>&nbsp;
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="unit" HeaderText="计量单位" ReadOnly="True" />
                    <asp:BoundField DataField="returnnumber" HeaderText="归还数量" ReadOnly="True" />
                                             <asp:TemplateField HeaderText="归还说明">
                         <EditItemTemplate>
                             <asp:Label ID="lendnote_e" runat="server" Text='<%# Eval("returnnote") %>'></asp:Label>&nbsp;
                         </EditItemTemplate>
                         <ItemTemplate>
                             <asp:Label ID="lendnote_v" runat="server"></asp:Label>
                             <asp:Label ID="lendnote_notv" runat="server" Text='<%# Eval("returnnote") %>' Visible ="false" ></asp:Label>&nbsp;
                         </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="returnnote" HeaderText="归还说明" ReadOnly="True" />
                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
</asp:Panel> 
<!--栏目结束 -->
               
<!--栏目开始 -->
<asp:Panel ID="plLendexpire" runat="server">
                <table style =" width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
                     <tr>
                         <td style ="font-weight:bolder;background-image: url('../../css/images/asdfrsg.png'); width :497px; height :33px; padding-left :20px">
                             <!--这里添加栏目标题 -->
                             超过借用期设备列表 
                             &gt;&gt;</td>
                         <td style ="background-image: url('../../css/images/asdfrsg.png'); width :103px"></td>
                         <td style ="background-image: url('../../css/images/asdfrsg.png'); width :64px"></td>
                         <td  style ="background-image: url('../../css/images/asdfrsg.png'); width :76px" ></td>
                    </tr>
                    <tr>
                         <td height="10" colspan="4" style="font-weight:bolder;"></td>
                    </tr>
                </table>
                        <!--这里添加内容 -->
                        <asp:GridView ID="gvLendexpire" runat="server" onrowdatabound="GV_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                    <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="True" />
                    <asp:BoundField DataField="lendnumber" HeaderText="借用数量" ReadOnly="True" />
                    <asp:BoundField DataField="returnnumber" HeaderText="已还数量" ReadOnly="True" />
                    <asp:BoundField DataField="lenderid" HeaderText="借用人编号" ReadOnly="True" />
                    <asp:BoundField DataField="lender" HeaderText="借用人" ReadOnly="True" />
                    <asp:BoundField DataField="lenddate" HeaderText="借用时间" ReadOnly="True" />
                    <asp:BoundField DataField="iouid" HeaderText="借用凭证" ReadOnly="True" />
                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
            </asp:Panel>             
<!--栏目结束 -->
<div style ="text-align :left ">
      <asp:Label ID="lbPreLend" runat="server" ForeColor="Red" ></asp:Label>
      <asp:Label ID="lbPreGet" runat="server" ForeColor="Red" ></asp:Label>
      <asp:Label ID="lbPreReturn" runat="server" ForeColor="Red" ></asp:Label> 
      <asp:Label ID="lbLendexpire" runat="server" ForeColor="Red" ></asp:Label>  
</div>  



                </div>
            </div>
        </form>
    </body>
</html>
