<%@ Page Title="" Language="C#" MaintainScrollPositionOnPostback="true"  MasterPageFile="~/Portal/default.Master" AutoEventWireup="true" CodeBehind="appform_myform_lists.aspx.cs" Inherits="Portal.Portal.Myform_lsits" %>
<%@ Register src="../UserControls/Menu.ascx" tagname="Menu" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style>
        .inline {
         display:inline-block
        }
    </style>

 <uc1:Menu ID="Menu1" runat="server" />


 <div class="appform_body">
 <div style=" margin-left:5px">
   
 
    
    <fieldset style=" padding:10px;">
    <legend style="font-size:13px; font-weight:bold "> 添加搜索 </legend>

     ID号<asp:TextBox ID="txt_id" Width="50px" CssClass="form-control inline" runat="server"></asp:TextBox>
  &nbsp;&nbsp;流水号<asp:TextBox ID="txt_orderid"  CssClass="form-control inline"  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_dept"  Visible="false" CssClass="form-control inline"  Width="100px"  runat="server"></asp:TextBox>
&nbsp;&nbsp;姓名<asp:TextBox ID="txt_name"  Visible="false" CssClass="form-control inline"  Width="100px"  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" />


    </fieldset>
  
      <br />
      <fieldset style=" padding:10px;">
    <legend style="font-size:13px; font-weight:bold "> 操作 </legend>
   <asp:Button ID="btn_del" runat="server"  OnClientClick="if(isselect()) return true; return false;" Text="批量删除" class="btn btn-danger ben-sm"  onclick="btn_del_Click" />
   
 </fieldset>
 

 <asp:ListView ID="lv_lists" runat="server"      ItemContainerID="layoutTableTemplate"  
  DataKeyNames="id" 
  onitemcommand="lv_lists_ItemCommand" 
 
            onpagepropertieschanging="lv_lists_PagePropertiesChanging" onitemdeleting="lv_lists_ItemDeleting" OnItemDataBound="lv_lists_ItemDataBound"
            >
 
 
    <LayoutTemplate>
 
   <table class="table table-hover">
	<tr   >
      <th scope="col" width="55px">  
      <input type="checkbox" onclick="selectall(this)"  id="selall"/>
          ID


      </th>

             <th scope="col" width="80px">状态</th>

	   <th scope="col" width="80px">审批</th>
	  

	   <th scope="col" width="85px">流水号</th>
	   <th scope="col">表单名称</th>
	 
	   <th scope="col" width="125px">建立时间</th>
       	 
      
    
	   
		<th   align="center" scope="col" 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='AppformDetail.aspx?id=<%#Eval("id") %>&treeid=<%#Eval("treeid")%>&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>    
     
      
Total:<asp:Label runat="server" ID="lbl_total"></asp:Label>  &nbsp;&nbsp;
<asp:DataPager ID="DataPager1" PagedControlID="lv_lists" runat="server" 
        PageSize="20"    >

    <Fields>
            <asp:numericpagerfield ButtonCount="10" NextPageText="" 
                PreviousPageText=""   />
       <asp:nextpreviouspagerfield FirstPageText="首页" LastPageText="尾页"  ButtonCssClass="btn" 
                NextPageText="下一页" PreviousPageText="上一页"   ButtonType="Button" />
        </Fields>


</asp:DataPager>

</div>

</div>



<script>
    SetC("L2");



 
</script>



 

    <input type="hidden" name="hf_ids" id="hf_ids"   />
</asp:Content>
