<%@ Page Title="" Language="C#" MasterPageFile="~/helpdesk/helpdesk.master" AutoEventWireup="true" CodeBehind="PC_detail.aspx.cs" Inherits="helpdesk.helpdesk.PC_detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="margin:20px">
        <style>
        .img_line {
            border-bottom:solid 1px #ddd;
            width:100%; height:1px;
             margin:15px;
             margin-left:0px;
        }
            .bd {
             font-weight:bold;
            }
    </style>
    
  
   
    <div class="well">
            <div class="pull-left">查看资产（ID：<%=id%>）</div>

            <div class="pull-right"> 
          
       	<asp:Button runat="server" ID="btn_delete"  class="btn btn-flat btn-danger btn-sm" Text="删除" onclick="btn_delete_Click" />
       <input type="button" name="Button1" value="关闭" class="btn btn-flat  bg-green btn-sm"  onclick="window.close()" />

            </div>
            <div class="clearfix"></div>
        </div>

         


          <asp:Panel runat="server" ID="pnl_contents">

        
          <div class="panel panel-default">
              <div class="panel-heading">
                  基本信息
              </div>

  <div class="panel-body">

            <div class="row">
             <div class="col-md-2 bd">机器名</div>
            <div class="col-md-4"><asp:TextBox ID="txt_pcname" runat="server" Width="300px"  CssClass="form-control" ></asp:TextBox> </div>
            <div class="col-md-2 bd">资产编号 </div>
            <div class="col-md-4">
                <asp:TextBox ID="txt_assettag" runat="server"   Width="300px"  CssClass="form-control" ></asp:TextBox> </div>

        </div>

        <div class="img_line"></div>


        <div class="row">
             <div class="col-md-2 bd">机器型号 </div>
            <div class="col-md-4">     <asp:DropDownList ID="ddl_spec"   Width="300px"  CssClass="form-control" runat="server">
              </asp:DropDownList> </div>
            <div class="col-md-2 bd">序列号</div>
            <div class="col-md-4"> <asp:TextBox ID="txt_serial" Width="300px"  CssClass="form-control" runat="server"></asp:TextBox> </div>

        </div>
         <div class="img_line"></div>





      
        <div class="row">
             <div class="col-md-2 bd">使用者 </div>
            <div class="col-md-4">       <asp:TextBox ID="txt_enduser"  Width="300px"  CssClass="form-control" runat="server" ></asp:TextBox> </div>
            <div class="col-md-2 bd">使用部门</div>
            <div class="col-md-4">   
           <asp:DropDownList ID="ddl_dept" Width="300px"  CssClass="form-control"  runat="server">
           </asp:DropDownList> </div>

        </div>
         <div class="img_line"></div>




         
        <div class="row">
             <div class="col-md-2 bd">机器用途 </div>
            <div class="col-md-4">       <asp:DropDownList ID="ddl_usetype" Width="300px"  CssClass="form-control"  runat="server">
           </asp:DropDownList>  </div>
            <div class="col-md-2 bd">使用状态</div>
            <div class="col-md-4">  
                    <asp:DropDownList ID="ddl_usestatus" CssClass="form-control" Width="300px" runat="server">
              </asp:DropDownList> 
           </div>

        </div>
         <div class="img_line"></div>




              <div class="row">
             <div class="col-md-2 bd">操作系统 </div>
            <div class="col-md-4">           <asp:DropDownList ID="ddl_os" CssClass="form-control" Width="300px" runat="server">
              </asp:DropDownList>  </div>
            <div class="col-md-2 bd">Office</div>
            <div class="col-md-4">  
                   
                 <asp:DropDownList ID="ddl_office" CssClass="form-control" Width="300px" runat="server">
              </asp:DropDownList>
           </div>

        </div>
         <div class="img_line"></div>






      

              <div class="row">
             <div class="col-md-2 bd">购买时间 </div>
            <div class="col-md-4">           <asp:TextBox ID="txt_buydate" runat="server" onClick="javascript:ShowCalendar(this)"  CssClass="form-control" Width="300" ></asp:TextBox></div>
            <div class="col-md-2 bd">保修到期日</div>
            <div class="col-md-4">  
                   
               <asp:TextBox  CssClass="form-control" Width="300" ID="txt_expiredate" runat="server" onClick="javascript:ShowCalendar(this)" ></asp:TextBox>
	
           </div>

        </div>
         <div class="img_line"></div>





      
              <div class="row">
             <div class="col-md-2 bd">显示器 </div>
            <div class="col-md-4">           <asp:TextBox ID="txt_display"  CssClass="form-control" Width="300"  runat="server"   ></asp:TextBox>  </div>
            <div class="col-md-2 bd">主板号</div>
            <div class="col-md-4">  
                   
               <asp:TextBox  CssClass="form-control" Width="300" ID="txt_mainboardserialno" runat="server" onClick="javascript:ShowCalendar(this)" ></asp:TextBox>
	
           </div>

        </div>
         <div class="img_line"></div>






      
      
              <div class="row">
             <div class="col-md-2 bd">主板制造商 </div>
            <div class="col-md-4">           <asp:TextBox ID="txt_mainboardmanufacture"  CssClass="form-control" Width="300"  runat="server"   ></asp:TextBox>  </div>
            <div class="col-md-2 bd">存放位置</div>
            <div class="col-md-4">  
                   
               <asp:TextBox  CssClass="form-control" Width="300" ID="txt_storeplace" runat="server" onClick="javascript:ShowCalendar(this)" ></asp:TextBox>
	
           </div>

        </div>
         <div class="img_line"></div>




      
              <div class="row">
             <div class="col-md-2 bd">IP地址 </div>
            <div class="col-md-4">           <asp:TextBox ID="txt_ip"  CssClass="form-control" Width="300"  runat="server"   ></asp:TextBox>  </div>
            <div class="col-md-2 bd">预留字段1</div>
            <div class="col-md-4">  
                   
               <asp:TextBox  CssClass="form-control" Width="300" ID="txt_prezver1" runat="server" onClick="javascript:ShowCalendar(this)" ></asp:TextBox>
	
           </div>

        </div>
         <div class="img_line"></div>



      
              <div class="row">
             <div class="col-md-2 bd">预留字段2 </div>
            <div class="col-md-4">           <asp:TextBox ID="txt_prezver2"  CssClass="form-control" Width="300"  runat="server"   ></asp:TextBox>  </div>
            <div class="col-md-2 bd"></div>
            <div class="col-md-4">  
                   
            
           </div>

        </div>
         <div class="img_line"></div>

      




      
              <div class="row">
             <div class="col-md-2 bd">备注 </div>
            <div class="col-md-10">       
                   <asp:TextBox ID="txt_note" Width="500px" CssClass="form-control" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
        
           </div>

        </div>
       

</div>
              </div>



         </asp:Panel>
        
          
          
           
             
             
              

        
          <div class="panel panel-default">
              <div class="panel-heading">
                  硬件名称与型号配置
              </div>

  <div class="panel-body">

       
 

<div id="hardware">
     
    
         <asp:table runat="server" ID="tb_hardware"    class="table table-hover"    >
         </asp:table>  
           
       
</div>
</div>
 </div>

               
                   
        
        
        
        
        
        
          

        
          <div class="panel panel-default">
              <div class="panel-heading">
                  软件名称与序列号配置
              </div>

  <div class="panel-body">
        
         <asp:table runat="server" ID="tb_software" class="table table-hover"   >
         </asp:table>  
        
      </div>
</div>
 

<asp:Button runat="server" ID="btn_update" Text="保存" onclick="btn_update_Click" />

 </div>
    
    
    
     
    <asp:GridView ID="GridView1" runat="server" AllowPaging="false"  Width="100%"
         AutoGenerateColumns="False" DataKeyNames="id"   Visible="false"
         >
        <Columns>
      
                <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="Ticket_view.aspx?id={0}" DataTextField="id" Target="_blank" />
                
            <asp:BoundField DataField="pcname" HeaderText="机器名" 
                SortExpression="pcname"  />
                
                   <asp:BoundField DataField="createdate" HeaderText="提交时间" 
                SortExpression="createdate" DataFormatString="{0:yyyy-MM-dd}"/>
                
                      <asp:HyperLinkField DataNavigateUrlFields="id"  HeaderText="问题主题"  DataNavigateUrlFormatString="Ticket_view.aspx?id={0}" DataTextField="title" Target="_blank" />
          
 
        
            <asp:BoundField DataField="contactdept" HeaderText="联系部门" 
                SortExpression="contactdept" />
            <asp:BoundField DataField="contactname" HeaderText="联系人" 
                SortExpression="contactname" />
                
            <asp:BoundField DataField="handleby" HeaderText="最后处理人" 
                SortExpression="handleby" />
            <asp:BoundField DataField="handledate" HeaderText="最后处理时间" 
                SortExpression="handledate" DataFormatString="{0:yyyy-MM-dd}" />
                
            <asp:BoundField DataField="hour" HeaderText="花费时间" 
                SortExpression="hour" />
           
           
            
            
            
        </Columns>
        
          <HeaderStyle BackColor="#E0E0E0" Font-Bold="True" HorizontalAlign="Center" />
    <AlternatingRowStyle BackColor="#F2F2F2" />
      <RowStyle BackColor="#ffffff"  Height="28"/>
    <PagerSettings Mode="NumericFirstLast" />    
    
    </asp:GridView>

 




</asp:Content>
