<%@ Page Language="C#" AutoEventWireup="true" CodeFile="YongHuXinXi_search.aspx.cs" Inherits="YongHuXinXi_search" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
'' ============================================================================================
'' 项目名称：风越项目范例ASPX单层框架
'' 项目版本：V1.0
'' 项目描述：
'' 文件名称：YongHuXinXi_search.aspx
'' 文件描述：信息搜索文件 （用户信息）
'' 公司名称：中极网盛
'' 开发人员：刘怒
'' 创建日期：2008-8-7 21:34:32
'' 修订日期：2009-03-10 09:10:28
'' 版权信息：Copyright (C) 2008

'' 项目升级时需读取以下生成工具的版权信息
'' 生成工具：风越代码生成器 [FireCode Creator]
'' 当前版本：通用版 V1.8
'' 官方网站：http://www.sino8848.com
'' ============================================================================================
-->

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>信息搜索</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="js/js_page.js"></script>
    <script language="javascript" type="text/javascript" src="js/js_string.js"></script>
    <script language="javascript" type="text/javascript" src="js/js_regex.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        
        <asp:ValidationSummary ID="ValidationSummary_Input" runat="server" ShowMessageBox="True" ShowSummary="False"  ValidationGroup="search"/>

        <table id="tabSearch" width="98%" border="1" cellpadding="4" cellspacing="1" class="tableStyleSolidLine" style="margin-left:auto;margin-right:auto;">
        
        <tr>
        <td class="tableTitle1" style="width:15%">
        <asp:Label ID="lab_USER_ID" runat="server" Text="编号"></asp:Label>

        
            <asp:RegularExpressionValidator ID="checkLen__USER_ID" runat="server" ControlToValidate="USER_ID" ErrorMessage="所输入 [编号]" ValidationExpression="^[\s\S]{1,10}$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_ID" runat="server" ControlToValidate="USER_ID" ErrorMessage="[编号]：仅允许整数" ValidationExpression="^[\d]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        
        <asp:TextBox ID="USER_ID" runat="server" CssClass="textBox" Width="99%" MaxLength="10" Rows="10"></asp:TextBox>
        

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1" style="width:15%">
        <asp:Label ID="lab_USER_NAME" runat="server" Text="姓名"></asp:Label>

        
            <asp:RegularExpressionValidator ID="checkLen__USER_NAME" runat="server" ControlToValidate="USER_NAME" ErrorMessage="所输入 [姓名]" ValidationExpression="^[\s\S]{2,200}$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_NAME" runat="server" ControlToValidate="USER_NAME" ErrorMessage="[姓名]：仅中文字符" ValidationExpression="^[\u4e00-\u9fa5]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        
        <asp:TextBox ID="USER_NAME" runat="server" CssClass="textBox" Width="99%" MaxLength="200" Rows="10"></asp:TextBox>
        

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1" style="width:15%">
        <asp:Label ID="lab_USER_PWD" runat="server" Text="密码"></asp:Label>

        
            <asp:RegularExpressionValidator ID="checkLen__USER_PWD" runat="server" ControlToValidate="USER_PWD" ErrorMessage="所输入 [密码]" ValidationExpression="^[\s\S]{6,50}$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_PWD" runat="server" ControlToValidate="USER_PWD" ErrorMessage="[密码]：非特殊字符" ValidationExpression="^[a-zA-Z0-9_\-\u4e00-\u9fa5]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        

        

        
        <asp:TextBox ID="USER_PWD" runat="server" CssClass="textBox" Width="99%" MaxLength="50" TextMode="Password"></asp:TextBox>
        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1" style="width:15%">
        <asp:Label ID="lab_USER_COMPANY" runat="server" Text="公司"></asp:Label>

        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_COMPANY" runat="server" ControlToValidate="USER_COMPANY" ErrorMessage="[公司]：仅允许整数" ValidationExpression="^[\d]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        

        

        

        

        

        

        

        
        
        
        
        <asp:DropDownList ID="USER_COMPANY" runat="server" CssClass="dropDownList" OnSelectedIndexChanged="USER_COMPANY_SelectedIndexChanged" AutoPostBack="True"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:DropDownList>
        
        
        
        
        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1" style="width:15%">
        <asp:Label ID="lab_USER_DEPT" runat="server" Text="部门"></asp:Label>

        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_DEPT" runat="server" ControlToValidate="USER_DEPT" ErrorMessage="[部门]：仅允许整数" ValidationExpression="^[\d]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        

        

        

        

        

        

        

        
        
        
        
        
        <asp:DropDownList ID="USER_DEPT" runat="server" CssClass="dropDownList"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:DropDownList>
        
        

        

        
        </td>
        </tr>

        

        <tr>
        <td class="tableTitle1"></td>
        <td class="tableContent001">
        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="搜索" ValidationGroup="search" CssClass="btn001"/>
        </td>
        </tr>
        </table>
        

        <asp:GridView ID="GridView1" runat="server" CssClass="tableStyleSolidLine" Width="98%" PageSize="20"
        AutoGenerateColumns="False" AllowPaging="True" CellPadding="4" ShowFooter="True"
        DataKeyNames="USER_ID,USER_NAME"
        OnPageIndexChanging="GridView1_PageIndexChanging"
        OnRowDataBound="GridView1_RowDataBound"



    
    
        OnRowDeleting="GridView1_RowDeleting"
    

        >
            <HeaderStyle CssClass="tableTitle1" Wrap="False" HorizontalAlign="Center"/>
            <RowStyle CssClass="tableContent001" Wrap="False" />
            <AlternatingRowStyle CssClass="tableContentAlternating001" Wrap="False" />
            <SelectedRowStyle Wrap="False" />
            <EditRowStyle Wrap="False" />
            <FooterStyle CssClass="tableTitle1" Wrap="False" HorizontalAlign="Center"/>
            <PagerStyle Wrap="False" />
            <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="尾页" NextPageText="下页" PageButtonCount="3" PreviousPageText="上页"/>
            <Columns>
                
                <asp:TemplateField HeaderText="编号" FooterText="编号" SortExpression="USER_ID">
                <ItemTemplate>
                <asp:Label ID="lab_USER_ID_Show" runat="server" Text='<%# Eval("USER_ID")%>'></asp:Label>
                </ItemTemplate>

                

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="姓名" FooterText="姓名" SortExpression="USER_NAME">
                <ItemTemplate>
                <asp:Label ID="lab_USER_NAME_Show" runat="server" Text='<%# Eval("USER_NAME")%>'></asp:Label>
                </ItemTemplate>

                

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="密码" FooterText="密码" SortExpression="USER_PWD">
                <ItemTemplate>
                <asp:Label ID="lab_USER_PWD_Show" runat="server" Text='<%# Eval("USER_PWD")%>'></asp:Label>
                </ItemTemplate>

                

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="公司" FooterText="公司" SortExpression="USER_COMPANY">
                <ItemTemplate>
                <asp:Label ID="lab_USER_COMPANY_Show" runat="server" Text='<%# Eval("USER_COMPANY")%>'></asp:Label>
                </ItemTemplate>

                

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="部门" FooterText="部门" SortExpression="USER_DEPT">
                <ItemTemplate>
                <asp:Label ID="lab_USER_DEPT_Show" runat="server" Text='<%# Eval("USER_DEPT")%>'></asp:Label>
                </ItemTemplate>

                

                </asp:TemplateField>
                



                <asp:TemplateField 
                HeaderText="" 
                FooterText=""
                >
                


                    <ItemTemplate>
                        <asp:HyperLink ID="LinkButton_View" NavigateUrl='<%# "YongHuXinXi_detail.aspx?USER_ID=" + this.Server.UrlEncode(Convert.ToString(Eval("USER_ID"))) + "&USER_NAME=" + this.Server.UrlEncode(Convert.ToString(Eval("USER_NAME")))%>' Target="_blank" runat="server">查看</asp:HyperLink>


                
                        <asp:HyperLink ID="LinkButton_Modify" NavigateUrl='<%# "YongHuXinXi_add.aspx?USER_ID=" + this.Server.UrlEncode(Convert.ToString(Eval("USER_ID"))) + "&USER_NAME=" + this.Server.UrlEncode(Convert.ToString(Eval("USER_NAME")))%>' Target="_blank" runat="server">修改</asp:HyperLink>

                    

                    
                        <asp:LinkButton ID="LinkButton_Del" runat="server" CausesValidation="False" CommandName="Delete" CommandArgument='<%#Eval("USER_ID") + "|||" + Eval("USER_NAME")%>'
                            Text="删除"></asp:LinkButton>
                    

                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>



    </div>
    </form>
</body>
</html>