<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="tasklog.aspx.vb" Inherits="gogo_mechanism.tasklog" %>
<%@ Import namespace="gogo_mechanism"%>
<html>
	<head id="head1"  runat="server">
    <title><%=pagename %></title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="stylesheets/theme.css">
    <link rel="stylesheet" href="lib/font-awesome/css/font-awesome.css">
    <link href="site_css2.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="js/DatePicker/WdatePicker.js" language="javascript"></script>
    <script type="text/javascript" src="js/myjs.js" language="javascript"></script>
    <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="lib/bootstrap/js/bootstrap.js" type="text/javascript"></script>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- Le fav and touch icons -->
</head>
  <body class=""> 
     <!--<![endif]-->
    <form id="Form1" runat="server">
    <div class="content">
        
        <div class="header">
<div class="stats">
    <p class="stat">数量 <span class="number"><asp:label id="Label1" runat="server"></asp:label></span></p>
</div>
            <h1 class="page-title"><%=pagename %></h1>
        </div>
        
                <ul class="breadcrumb">
            <li><a href="info.aspx">系统首页</a> <span class="divider">/</span></li>
            <li class="active"><%=pagename %></li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
               <div class="search-toolbar">
                                  <i class="icon-search"></i> 单位<asp:TextBox ID="dpmid" onclick="showDIV(this,dwtree);" 
                                    runat="server" ReadOnly="True" Width="170px"></asp:TextBox>
                                <asp:CheckBox ID="yc" runat="server" AutoPostBack="True" Text="只显示异常记录" />
                                &nbsp;<asp:DropDownList ID="px" runat="server" AutoPostBack="True">
                                    <asp:ListItem Value="1">按任务开始时间降序</asp:ListItem>
                                    <asp:ListItem Value="2">按处理网页总量升序</asp:ListItem>
                                    <asp:ListItem Value="3">按网页抓取尝试量升序</asp:ListItem>
                                    <asp:ListItem Value="4">按网页抓取失败量降序</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;显示量<asp:DropDownList ID="xsl" runat="server" AutoPostBack="True">
                                    <asp:ListItem>100</asp:ListItem>
                                    <asp:ListItem>200</asp:ListItem>
                                    <asp:ListItem>500</asp:ListItem>
                                    <asp:ListItem>1000</asp:ListItem>
                                    <asp:ListItem>所有</asp:ListItem>
                                </asp:DropDownList>
                            &nbsp;搜索<asp:DropDownList ID="how" runat="server">
<asp:ListItem Value="gogo_task.id">任务编号</asp:ListItem>
<asp:ListItem Value="gogo_task.mc" Selected="True">任务名称</asp:ListItem>
 <asp:ListItem Value="taskbs">任务标识</asp:ListItem>
</asp:DropDownList>
关键词<asp:TextBox ID="key" runat="server" Width="100px"></asp:TextBox>
                             
                                
							

               &nbsp;删除截止日期<asp:TextBox 
                                    ID="deldate" runat="server" Width="100px" AutoPostBack="True" onfocus="WdatePicker();"></asp:TextBox>
                                <asp:regularexpressionvalidator id="RegularExpressionValidator6" runat="server" 
                                    ControlToValidate="deldate" ErrorMessage="时间格式必须为2009-01-05"
								
                                    ValidationExpression="(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)"></asp:regularexpressionvalidator>
                                
               </div>         
<div class="btn-toolbar">
<asp:Button ID="Button1" runat="server" Text="执行删除" class="btn btn-danger"/>
<asp:Button ID="Button4" runat="server" Text="执行搜索" class="btn"/>
<asp:Button ID="Button5" runat="server" Text="退出搜索"  class="btn"/>
</div>
<div class="btn-group"></div>
<div class="well">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"  AutoGenerateColumns="False" GridLines="None" PageSize="15" Width="100%" CssClass="table">
          <Columns>
                                        <asp:TemplateField HeaderText="所属部门">
                                            <ItemTemplate>
                                                <asp:Label ID="Label5" runat="server" Text='<%# getdepartmentname(DataBinder.Eval(Container, "DataItem.dpmid"))%>'>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="id" HeaderText="编号" ReadOnly="True" />
                                        <asp:HyperLinkField DataNavigateUrlFields="id" 
                                            DataNavigateUrlFormatString="edit_task.aspx?id={0}" DataTextField="mc" 
                                            DataTextFormatString="{0}" HeaderText="任务名称" Target="_blank" />
                                        <asp:BoundField DataField="time1" HeaderText="开始时间" />
                                        <asp:BoundField DataField="time2" HeaderText="结束时间" />
                                        <asp:BoundField DataField="hs" HeaderText="耗时" />
                                        <asp:BoundField DataField="sml" HeaderText="处理量" />
                                        <asp:BoundField DataField="zql" HeaderText="抓取尝试" />
                                        <asp:BoundField DataField="zqsbl" HeaderText="抓取失败" />
                                        <asp:TemplateField HeaderText="失败率">
                                            <ItemTemplate>
                                                <%# bfb(DataBinder.Eval(Container, "DataItem.zqsbl"), DataBinder.Eval(Container, "DataItem.zql"))%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="taskbs" HeaderText="任务标识" />
                                        <asp:BoundField DataField="qtsm" HeaderText="其他说明" />
                                    </Columns>
        <PagerStyle CssClass="pagerclass" />
        <EmptyDataTemplate>
            暂无任务日志！
        </EmptyDataTemplate>
        </asp:GridView>
</div>
                  
            </div>
        </div>
    </div>
                <!--隐藏开始-->
			<div class="menudiv" id="dwtree">
            <asp:TreeView ID="fidTreeView" runat="server" ImageSet="XPFileExplorer" 
        NodeIndent="15" ShowLines="True">
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <NodeStyle Font-Names="Tahoma" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </div>
			<!--隐藏结束-->
    </form>
</body>
</html>