<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pc_login_scan_hardware.aspx.cs" Inherits="Helpdesk.Helpdesk.pc_login_scan_hardware" %>

<!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="Style/Style.css" type="text/css" rel="stylesheet" />
</head>
<body style=" font-family:Verdana; font-size:12px;">
    <form id="form1" runat="server">
     <div>
   
   <font color=red>注意：必须先配置客户端 </font>  <a href="scan_help.htm" target="_blank">
  客户端配置帮助
    </a>
    
    &nbsp;&nbsp;&nbsp;&nbsp;
    
    <a href="pc_login_scan_hardware_export.aspx" target="_blank">导出扫描结果</a>
    <br /><br />
    
 <div style="   ">

    <asp:GridView runat="server" ID="gv_list" AllowPaging="True" 
            AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" />
            <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" 
                ReadOnly="True" SortExpression="id" />
            <asp:BoundField DataField="pcname" HeaderText="机器名" 
                SortExpression="pcname" />
            <asp:BoundField DataField="loginname" HeaderText="登录名" 
                SortExpression="loginname" />
            <asp:BoundField DataField="ip" HeaderText="IP地址" SortExpression="ip" />
            <asp:BoundField DataField="bios_manufacturer" HeaderText="BIOS制造商" 
                SortExpression="bios_manufacturer" />
            <asp:BoundField DataField="bios_serialnumber" HeaderText="BISO序列化" 
                SortExpression="bios_serialnumber" />
            <asp:BoundField DataField="bios_smbiosbiosversion" 
                HeaderText="BIOS版本" SortExpression="bios_smbiosbiosversion" />
            
            <asp:BoundField DataField="os_caption" HeaderText="操作系统" 
                SortExpression="os_caption" />
          
            <asp:BoundField DataField="os_totalvirtualmemorysize" 
                HeaderText="内存" 
                SortExpression="os_totalvirtualmemorysize" />
          
            <asp:BoundField DataField="createdate" HeaderText="扫描时间" 
                SortExpression="createdate" />
  
                    </Columns>
                
  
                  <HeaderStyle BackColor="#E0E0E0" Font-Bold="True" Height="30" HorizontalAlign="Center" />
    <AlternatingRowStyle BackColor="#F2F2F2" />
      <RowStyle BackColor="#ffffff"  Height="28"/>
    <PagerSettings Mode="NumericFirstLast" />    
     
       
        </asp:GridView>
     </div>
        <br />
        
        
        <asp:SqlDataSource ID="SqlDataSource1"
         ConnectionString="<%$ ConnectionStrings:connectionstring %>"
         runat="server" 
            DeleteCommand="DELETE FROM [helpdesk_loginscan_hardware] WHERE [id] = @id" 
            InsertCommand="INSERT INTO [helpdesk_loginscan_hardware] ([pcname], [loginname], [ip], [bios_manufacturer], [bios_serialnumber], [bios_smbiosbiosversion], [bios_version], [bios_caption], [board_caption], [board_manufacturer], [board_serialnumber], [board_tag], [board_product], [os_caption], [os_installdate], [os_lastbootuptime], [os_serialnumber], [os_totalvirtualmemorysize], [os_version], [os_windowsdirectory], [createdate], [os_csdversion]) VALUES (@pcname, @loginname, @ip, @bios_manufacturer, @bios_serialnumber, @bios_smbiosbiosversion, @bios_version, @bios_caption, @board_caption, @board_manufacturer, @board_serialnumber, @board_tag, @board_product, @os_caption, @os_installdate, @os_lastbootuptime, @os_serialnumber, @os_totalvirtualmemorysize, @os_version, @os_windowsdirectory, @createdate, @os_csdversion)" 
            ProviderName="System.Data.SqlClient" 
            SelectCommand="SELECT * FROM [helpdesk_loginscan_hardware] ORDER BY [pcname]" 
            UpdateCommand="UPDATE [helpdesk_loginscan_hardware] SET [pcname] = @pcname, [loginname] = @loginname, [ip] = @ip, [bios_manufacturer] = @bios_manufacturer, [bios_serialnumber] = @bios_serialnumber, [bios_smbiosbiosversion] = @bios_smbiosbiosversion, [bios_version] = @bios_version, [bios_caption] = @bios_caption, [board_caption] = @board_caption, [board_manufacturer] = @board_manufacturer, [board_serialnumber] = @board_serialnumber, [board_tag] = @board_tag, [board_product] = @board_product, [os_caption] = @os_caption, [os_installdate] = @os_installdate, [os_lastbootuptime] = @os_lastbootuptime, [os_serialnumber] = @os_serialnumber, [os_totalvirtualmemorysize] = @os_totalvirtualmemorysize, [os_version] = @os_version, [os_windowsdirectory] = @os_windowsdirectory, [createdate] = @createdate, [os_csdversion] = @os_csdversion WHERE [id] = @id">
            <DeleteParameters>
                <asp:Parameter Name="id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="pcname" Type="String" />
                <asp:Parameter Name="loginname" Type="String" />
                <asp:Parameter Name="ip" Type="String" />
                <asp:Parameter Name="bios_manufacturer" Type="String" />
                <asp:Parameter Name="bios_serialnumber" Type="String" />
                <asp:Parameter Name="bios_smbiosbiosversion" Type="String" />
                <asp:Parameter Name="bios_version" Type="String" />
                <asp:Parameter Name="bios_caption" Type="String" />
                <asp:Parameter Name="board_caption" Type="String" />
                <asp:Parameter Name="board_manufacturer" Type="String" />
                <asp:Parameter Name="board_serialnumber" Type="String" />
                <asp:Parameter Name="board_tag" Type="String" />
                <asp:Parameter Name="board_product" Type="String" />
                <asp:Parameter Name="os_caption" Type="String" />
                <asp:Parameter Name="os_installdate" Type="String" />
                <asp:Parameter Name="os_lastbootuptime" Type="String" />
                <asp:Parameter Name="os_serialnumber" Type="String" />
                <asp:Parameter Name="os_totalvirtualmemorysize" Type="String" />
                <asp:Parameter Name="os_version" Type="String" />
                <asp:Parameter Name="os_windowsdirectory" Type="String" />
                <asp:Parameter Name="createdate" Type="DateTime" />
                <asp:Parameter Name="os_csdversion" Type="String" />
                <asp:Parameter Name="id" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="pcname" Type="String" />
                <asp:Parameter Name="loginname" Type="String" />
                <asp:Parameter Name="ip" Type="String" />
                <asp:Parameter Name="bios_manufacturer" Type="String" />
                <asp:Parameter Name="bios_serialnumber" Type="String" />
                <asp:Parameter Name="bios_smbiosbiosversion" Type="String" />
                <asp:Parameter Name="bios_version" Type="String" />
                <asp:Parameter Name="bios_caption" Type="String" />
                <asp:Parameter Name="board_caption" Type="String" />
                <asp:Parameter Name="board_manufacturer" Type="String" />
                <asp:Parameter Name="board_serialnumber" Type="String" />
                <asp:Parameter Name="board_tag" Type="String" />
                <asp:Parameter Name="board_product" Type="String" />
                <asp:Parameter Name="os_caption" Type="String" />
                <asp:Parameter Name="os_installdate" Type="String" />
                <asp:Parameter Name="os_lastbootuptime" Type="String" />
                <asp:Parameter Name="os_serialnumber" Type="String" />
                <asp:Parameter Name="os_totalvirtualmemorysize" Type="String" />
                <asp:Parameter Name="os_version" Type="String" />
                <asp:Parameter Name="os_windowsdirectory" Type="String" />
                <asp:Parameter Name="createdate" Type="DateTime" />
                <asp:Parameter Name="os_csdversion" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
