<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="task_reminder.aspx.vb" Inherits="work_plan_web_deploy.task_reminder" %>
<%@ Import namespace="work_plan_web_deploy"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD id="HEAD1" runat="server">
		<title>工作提醒记录</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<LINK href="site_css.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 type="text/javascript">
    function postBackByObject() {
        if (document.activeElement.type == "checkbox") {
            __doPostBack("", "");
        }
    }
</script>
	</HEAD>
	<body>
		<form id="Form1" runat="server">
			<div id="title">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td align="center" height="20">工作计划 — 工作提醒记录</td>
					</tr>
				</table>
			</div>
			<div id="place">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td height="30">您当前的位置：工作计划 &gt;&gt; 工作提醒记录</td>
					</tr>
				</table>
			</div>
			<div id="contentdiv">
				<table class="maintable" cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TBODY>
						<tr>
							<td vAlign="middle" align="left" height="30">
								<STRONG>数量：<asp:label id="Label1" runat="server" ForeColor="Red">Label</asp:label>&nbsp;工作类型<asp:DropDownList 
                                    ID="classid" runat="server" AutoPostBack="True">
                                <asp:ListItem Value="0">所有</asp:ListItem>
                            </asp:DropDownList>
                                工作状态<asp:DropDownList ID="zt" runat="server" AutoPostBack="True">
                                <asp:ListItem Value="all">所有</asp:ListItem>
                                <asp:ListItem Value="0">等待接收</asp:ListItem>
                                    <asp:ListItem Value="1">等待办结</asp:ListItem>
                                    <asp:ListItem Value="2">等待终结</asp:ListItem>
                                    <asp:ListItem Value="3">任务终结</asp:ListItem>
                            </asp:DropDownList>
                                    所属部门<asp:TextBox 
                                    ID="dpmid" runat="server" ReadOnly="True" 
                                    onclick="showDIV(this,dwtree);" Width="125px" style="width:125px;">所有部门|000000000</asp:TextBox>
                                责任人<asp:TextBox ID="zzr" onclick="showDIV(this,admintree);" 
                                    runat="server" ReadOnly="True" Width="89px" style="width:89px;">点击选择</asp:TextBox>
                                    <br />
                                <b>搜索</b>：<asp:DropDownList ID="how" runat="server">
<asp:ListItem Value="gogo_task.id">工作编号</asp:ListItem>
<asp:ListItem Value="bt">工作标题</asp:ListItem>
<asp:ListItem Value="ly">工作来源</asp:ListItem>
<asp:ListItem Value="xq">工作详情</asp:ListItem>
<asp:ListItem Value="kzqk">办理情况</asp:ListItem>
<asp:ListItem Value="ldyj">领导意见</asp:ListItem>


                                    <asp:ListItem Value="info">提醒内容</asp:ListItem>


                                    </asp:DropDownList>
                                <asp:TextBox ID="key" runat="server" Width="88px" style="width:88px;"></asp:TextBox>
                                    提示日期<asp:TextBox ID="time1" runat="server" Width="72px" onfocus="WdatePicker();" style="width:72px;"></asp:TextBox>
                                -<asp:TextBox ID="time2" runat="server" Width="72px" onfocus="WdatePicker();" style="width:72px;"></asp:TextBox>
                                <asp:Button ID="Button4" runat="server" Text="搜索" Width="46px" />
                                <asp:Button ID="Button5" runat="server" Text="退出搜索" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server" 
                                ControlToValidate="time1" 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>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" 
                                ControlToValidate="time2" 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>
                                </STRONG>
                                
							</td>
						</tr>
						<tr>
							<td>
                                <asp:GridView ID="GridView1" runat="server" BackColor="White" 
                                    BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                                    Width="100%" AutoGenerateColumns="False" GridLines="Vertical" 
                                    AllowPaging="True" PageSize="15">
                                    <PagerSettings FirstPageText="&amp;lt;&amp;lt;首页" 
                                        LastPageText="尾页&amp;gt;&amp;gt;" Mode="NumericFirstLast" 
                                        NextPageText="下一页&amp;gt;" PreviousPageText="&amp;lt;上一页" />
                                    <RowStyle ForeColor="Black" BackColor="#EEEEEE" Height="20px" />
                                    <Columns>
                                        <asp:BoundField DataField="id" HeaderText="工作编号" ReadOnly="True" />
                                        <asp:HyperLinkField DataNavigateUrlFields="id" 
                                            DataNavigateUrlFormatString="view_task.aspx?id={0}" DataTextField="bt" 
                                            HeaderText="工作标题" Target="_blank" >
                                        </asp:HyperLinkField>
                                         <asp:TemplateField HeaderText="工作类型">
                                            <ItemTemplate>
                                                <asp:Label ID="Label0" runat="server" 
                                                    Text='<%# gettaskclassmc(DataBinder.Eval(Container, "DataItem.classid"))%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="所属部门">
                                            <ItemTemplate>
                                                <asp:Label ID="Label5" runat="server" 
                                                     Text='<%# getdepartmentname(DataBinder.Eval(Container, "DataItem.dpmid"))%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="工作状态">
                                            <ItemTemplate>
                                                <asp:Label ID="Label4" runat="server" 
                                                     Text='<%# gettaskzt(DataBinder.Eval(Container, "DataItem.id")，page)%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="提醒对象">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" 
                                                    Text='<%# getadminname(DataBinder.Eval(Container, "DataItem.ac"))%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                          <asp:BoundField DataField="info" HeaderText="提醒内容" />
                                          <asp:TemplateField HeaderText="提醒时间">
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" 
                                                    Text='<%# c_date_c(DataBinder.Eval(Container, "DataItem.remindtime"))%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" 
                                        CssClass="pagerclass" />
                                    <EmptyDataTemplate>
                                        暂无工作提醒记录！
                                    </EmptyDataTemplate>
                                    <SelectedRowStyle Font-Bold="False" ForeColor="Black" />
                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" 
                                        Height="20px" />
                                    <EditRowStyle Height="25px" />
                                    <AlternatingRowStyle BackColor="#DCDCDC" Height="20px" />
                                </asp:GridView>
                            </td>
						</tr>
					</TBODY></table>
			</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>
			<!--隐藏结束-->
            <!--隐藏开始-->
			<div class="menudiv" id="admintree">
            <asp:TreeView ID="adminTreeView" runat="server" ImageSet="XPFileExplorer" 
        NodeIndent="15" ShowLines="True" ShowCheckBoxes="All">
            <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>