<%@ Page Language="VB" AutoEventWireup="false" Inherits="work_plan_web_deploy.department_behavior" Codebehind="department_behavior.aspx.vb" %>
<%@ Import namespace="work_plan_web_deploy"%>
<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 -->
    <script type="text/javascript">
        function postBackByObject() {
            if (document.activeElement.type == "checkbox") {
                __doPostBack("", "");
            }
        }
</script>
</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">
                                  类型<asp:DropDownList ID="classid" runat="server" AutoPostBack="True">
                                      <asp:ListItem Value="0">所有</asp:ListItem>
                                  </asp:DropDownList>
                                  &nbsp;所属部门<asp:TextBox ID="dpmid" runat="server" 
                                      onclick="showDIV(this,dwtree);" ReadOnly="True" style="width:125px;" 
                                      Width="125px">所有部门|000000000</asp:TextBox>
                                  &nbsp;行为人<asp:TextBox ID="ac" runat="server" onclick="showDIV(this,admintree);" 
                                      ReadOnly="True" style="width:89px;" Width="89px">点击选择</asp:TextBox>
                                  &nbsp;加扣分<asp:DropDownList ID="fz" runat="server" AutoPostBack="True">
                                      <asp:ListItem Value="所有">所有</asp:ListItem>
                                      <asp:ListItem Value="加分">加分</asp:ListItem>
                                      <asp:ListItem Value="扣分">扣分</asp:ListItem>
                                      <asp:ListItem Value="零分">零分</asp:ListItem>
                                  </asp:DropDownList>
                                  &nbsp; <asp:CheckBox ID="fasjpx" runat="server" AutoPostBack="True" Text="行为日期降序" />
                                  &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>2000</asp:ListItem>
                                      <asp:ListItem>5000</asp:ListItem>
                                      <asp:ListItem>10000</asp:ListItem>
                                      <asp:ListItem>所有</asp:ListItem>
                                  </asp:DropDownList>
                                  &nbsp; 搜索<asp:DropDownList ID="how" runat="server">
                                      <asp:ListItem Value="sy">事由</asp:ListItem>
                                      <asp:ListItem Value="id">编号</asp:ListItem>
                                      <asp:ListItem Value="fz">加扣分</asp:ListItem>
                                      <asp:ListItem Value="bz">备注</asp:ListItem>
                                  </asp:DropDownList>
                                  关键词<asp:TextBox ID="key" runat="server" style="width:88px;" Width="88px"></asp:TextBox>
                                  
                                
               </div>         
<div class="btn-toolbar">
    <asp:Button ID="Button6" runat="server" Text="新增记录" class="btn btn-primary"/>
    <asp:Button ID="Button1" runat="server" CausesValidation="False" Text="当页全选" class="btn"/>
    <asp:Button ID="Button2" runat="server" CausesValidation="False" Text="取消选择" class="btn"/>
    <asp:Button ID="Button3" runat="server" CausesValidation="False" 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:CheckBox ID="CheckBox1" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="id" HeaderText="编号" ReadOnly="True" />
                                         <asp:TemplateField HeaderText="行为日期">
                                            <ItemTemplate>
                                                <asp:Label ID="Label3" runat="server" 
                                                    Text='<%# c_date(DataBinder.Eval(Container, "DataItem.fssj")）%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                         <asp:TemplateField HeaderText="行为类型">
                                            <ItemTemplate>
                                                <asp:Label ID="Label0" runat="server" 
                                                    Text='<%# getbehaviorclassmc(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:BoundField DataField="sy" HeaderText="事由" />
                                         <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="fz" HeaderText="加扣分" />
                                          <asp:BoundField DataField="bz" HeaderText="备注" />
                                        <asp:TemplateField HeaderText="记录人">
                                            <ItemTemplate>
                                                <asp:Label ID="Label6" runat="server" 
                                                     Text='<%# getadminname(DataBinder.Eval(Container, "DataItem.jlr"))%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="记录时间">
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" 
                                                    Text='<%# c_date_d(DataBinder.Eval(Container, "DataItem.jlsj"))%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:CommandField HeaderText="修改" SelectText="修改" ShowSelectButton="True" />
                                    </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>
			<!--隐藏结束-->
            <!--隐藏开始-->
			<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>
