<%@ Page Title="" Language="C#" MasterPageFile="~/Car/car.Master" AutoEventWireup="true" CodeBehind="Audit3.aspx.cs" Inherits="Car.Car.Audit3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    
    <div class="well">

        <asp:CheckBox runat="server" ID="cb_showall" Text="显示所有申请"  AutoPostBack="true"    />

      

    </div>
    
 <asp:ListView ID="lv_lists" runat="server"     ItemContainerID="layoutTableTemplate"  
    DataKeyNames="id"   onitemdatabound="lv_lists_ItemDataBound" 
 >
 
 
    <LayoutTemplate>
 
   <table  class="table">
      <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
    </table>
  </LayoutTemplate>
     
  
   
    <ItemTemplate>
     
 
	   			
    <tr style="background-color:#f2f2f2">
    	 <td colspan=6 align="right"> 
    				
    	 </td> 	
     </tr>
    
    
    
    
     <tr  align="left">
			 <td  width="33%"   colspan="2"><b>申请ID:</b> <%# Eval("id")%>
             (<span style=" font-size:10px">Create Date <%# DateTime.Parse(Eval("createdate").ToString()).ToString("yyyy-MM-dd HH:mm")%></span>)
			  </td>
			 <td  width="33%" colspan="2"><b>申请者:</b> <%# Eval("appusername")%> </td>
			  <td  width="33%" colspan="2"> 
			     

                   <a target="_blank" href='details.aspx?id=<%# Eval("id")%>' class="btn btn-flat bg-green btn-sm">查看</a>  
     		

                  <span  <%#Eval("carid").ToString()=="0"?" style=''":" style='display:none'" %> >
                   <a href='#' 
                        id="_a_<%#Eval("id") %>" 
                     onclick="Pop('audit3_audit.aspx?id=<%# Eval("id")%>',530,420,'指派车辆');return false;"
                     class="btn btn-flat btn-danger btn-sm">指派</a> 
                    
                </span>
        	
                 
			  </td>
	 </tr>
							
	  
         
       <tr  >
			 <td      colspan="2"><b>车辆/司机：：</b><%# Eval("carname")%> / <%# Eval("dusername")%></td>
			 <td   colspan="4"><b>用车原因：：</b><div  style=" word-break:break-all; display:inline-block"><%# Eval("reason")%></div></td>
	 </tr>
	
	
	 
         
         
       <tr  align="left">
			 <td      colspan="3"><b>来回时间：</b><font color=#006699><%#DateTime.Parse(Eval("begintime").ToString()).ToString("yyyy-MM-dd HH:mm")%> ~ <%#DateTime.Parse(Eval("endtime").ToString()).ToString("yyyy-MM-dd HH:mm")%></font></td>
			 <td    colspan="3"><b>来回地址：</b><font color=#006699> <b>去：</b> <%#Eval("from1")%> ~  <%#Eval("to1")%>     &nbsp;&nbsp;      <b>回：</b>  <%#Eval("from2")%> ~  <%#Eval("to2")%></font></td>
	 	</tr>
	   		
	   		
	   		 
          
	   		
	   		
    </ItemTemplate>


  

</asp:ListView>   




<div>
 <asp:DataPager ID="DataPager1"   class="btn-group btn-group-sm" EnableViewState="false"
      QueryStringField="Page" PagedControlID="lv_lists" runat="server" PageSize=10>
 <Fields>
           
     
            <asp:NextPreviousPagerField 
                PreviousPageText="<" 
                FirstPageText="|<" 
                ShowPreviousPageButton="true"
                ShowFirstPageButton="true" 
                ShowNextPageButton="false" 
                ShowLastPageButton="false"
                ButtonCssClass="btn btn-default" 
                RenderNonBreakingSpacesBetweenControls="false" 
                RenderDisabledButtonsAsLabels="false" />

            <asp:NumericPagerField 
                ButtonType="Link" 
                CurrentPageLabelCssClass="btn btn-primary disabled"  
                RenderNonBreakingSpacesBetweenControls="false"
                NumericButtonCssClass="btn btn-default" 
                ButtonCount="10" 
                NextPageText="..." 
                NextPreviousButtonCssClass="btn btn-default" />
            
           <asp:NextPreviousPagerField 
               NextPageText=">" 
               LastPageText=">|" 
               ShowNextPageButton="true"
               ShowLastPageButton="true" 
               ShowPreviousPageButton="false" 
               ShowFirstPageButton="false"
               ButtonCssClass="btn btn-default" 
               RenderNonBreakingSpacesBetweenControls="false" 
               RenderDisabledButtonsAsLabels="false"/>
      

  </Fields> 
</asp:DataPager>
</div>

</asp:Content>
