<%@ Page Language="VB" AutoEventWireup="false" Inherits="work_plan_web_deploy.my_behavior" Codebehind="my_behavior.aspx.vb" %>
<%@ 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/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>
                                &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="行为日期降序" />
                                    <br />
                                <b>搜索</b>：<asp:DropDownList ID="how" runat="server">
<asp:ListItem Value="id">编号</asp:ListItem>
<asp:ListItem Value="sy">事由</asp:ListItem>
<asp:ListItem Value="fz">加扣分</asp:ListItem>
<asp:ListItem Value="bz">备注</asp:ListItem>


                                    </asp:DropDownList>
                                <asp:TextBox ID="key" runat="server" Width="88px" style="width:88px;"></asp:TextBox>
                                <asp:Button ID="Button4" runat="server" Text="搜索" Width="46px" />
                                <asp:Button ID="Button5" runat="server" Text="退出搜索" />
                                </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" EnableModelValidation="True">
                                    <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:TemplateField HeaderText="行为日期">
                                            <ItemTemplate>
                                                <asp:Label ID="Label3" runat="server" 
                                                    Text='<%# left(c_date_c(DataBinder.Eval(Container, "DataItem.fssj")）,11)%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                         <asp:TemplateField HeaderText="行为类型">
                                            <ItemTemplate>
                                                <asp:Label ID="Label0" runat="server" 
                                                    Text='<%# gogo_behaviorclass(DataBinder.Eval(Container, "DataItem.classid"))%>'></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_c(DataBinder.Eval(Container, "DataItem.jlsj"))%>'></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>

          		</form>
	</body>
</HTML>