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



    
    
    <div class="thecontent">	 
 <!--  start  -->
   
        
    <div class="breadcrumb">
              <asp:Literal runat="server" ID="lt_bc"></asp:Literal>
   </div>

         
   
       
       <div class="item-lists-box">
      
    <div  class="item-lists news-lists">
         
    
 

          <div  class="form-inline" style="margin:10px">
     

     ID号<asp:TextBox ID="txt_id" Width="60px" CssClass="form-control" runat="server"></asp:TextBox>
  &nbsp;&nbsp;流水号<asp:TextBox ID="txt_orderid"  CssClass="form-control"  Width="100px"  runat="server"></asp:TextBox>
    &nbsp;&nbsp;表单名称<asp:TextBox ID="txt_formname" CssClass="form-control inline"   Width="150px"  runat="server"></asp:TextBox> 
 
  &nbsp;&nbsp;开始日期<asp:TextBox ID="txt_start" CssClass="form-control inline"  Width="120px" onClick="javascript:ShowCalendar(this)"   runat="server"></asp:TextBox>
  &nbsp;&nbsp;结束日期<asp:TextBox ID="txt_end" CssClass="form-control inline"  Width="120px" onClick="javascript:ShowCalendar(this)" runat="server"></asp:TextBox>

  <asp:Button ID="btn_search" runat="server" Text="搜索" class="btn btn-primary btn-sm" />
  <asp:Button ID="btn_del" runat="server"  OnClientClick="if(!isselect())  return false;" Text="批量删除" class="btn btn-danger btn-sm"  onclick="btn_del_Click" />
   

    </div>
  
       
        
  
 <asp:ListView ID="lv_lists" runat="server"     ItemContainerID="layoutTableTemplate"  
    DataKeyNames="id" 
     
      onitemcommand="lv_lists_ItemCommand" 
 
    
      OnItemDataBound="lv_lists_ItemDataBound"
       
 >
 
 
    <LayoutTemplate>
 
   <table  class="table table-hover">

        

       <tr   >
      <th  width="70px">  
      <input type="checkbox" onclick="selectall(this)"  id="selall"/> ID 
      </th>

       <th   width="90px">状态</th>

	   <th   width="100px">审批</th>
	   <th  width="85px">流水号</th>
	   <th >表单名称</th>	 
	   <th  width="125px">建立时间</th>
	   
		<th   align="center"  width="280px">
	    	 操作 
		</th>
	</tr>





      <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
    </table>
  </LayoutTemplate>
     
  
   
    <ItemTemplate>
    



        
<tr>
    
<td  >
 
 
 <input type="checkbox"  class="ck_item"
 
 <%#Eval("process").ToString()=="0"? "":" disabled=disabled" %>
    value='<%# Eval("id") %>'  /> <%# Eval("id")%>
</td>


     
<td>
<asp:Label runat="server" ID="lbl_process"></asp:Label>
</td>
<td>
 <asp:Label runat="server" ID="lbl_auditstatus"></asp:Label>
</td>
 


 <td      >
 
  <%#Eval("orderno")%> 
 
</td>
 

	<td>
 <%#Eval("title")%>  
</td> 
 <td  style="font-size:11px;">
  <%#DateTime.Parse(Eval("createdate").ToString()).ToString("yyyy-MM-dd HH:mm")%>  
</td> 
 
 
  
  
 
 <td    >  

 
       <input   type="button" value="提交审批"    class="btn btn-flat btn-sm  btn-info"   onclick="openPop('appform_auditpeople.aspx?id=<%#Eval("id") %>&treeid=<%#Eval("treeid") %>    ','提交审批'); return false;" />
  
        <a href="#"   class="btn btn-flat btn-sm bg-green" onclick="openPop('appform_auditlogs.aspx?id=<%#Eval("id") %>','查看处理进度'); return false;" >进度</a>
       


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

       <asp:Button ID="btn_del" CausesValidation="false"  class="btn btn-flat btn-danger btn-sm"   runat="server" Text="取消" CommandName="Del" CommandArgument=<%#Eval("id") %>    />

     
  	</td>  
 
</tr>  

          
	   		
    </ItemTemplate>


  

</asp:ListView>   




<div>
 <asp:DataPager ID="DataPager1"   class="btn-group btn-group-sm"  
      PagedControlID="lv_lists" runat="server" PageSize=20>
 <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>










         



</div>
    </div>


<!--  /start  -->
        </div>

</asp:Content>
