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

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

<!--
'' ============================================================================================
'' 项目名称：风越项目范例ASPX普通三层结构
'' 项目版本：V1.0
'' 项目描述：风越项目范例，用于建立ASPX普通三层结构
'' 文件名称：ChengShi_search.aspx
'' 文件描述：信息搜索文件 （城市）
'' 公司名称：中极网盛
'' 开发人员：刘怒
'' 创建日期：2008-12-25 20:23:50
'' 修订日期：2009-01-14 12:12:23
'' 版权信息：Copyright (C) 2008

'' 项目升级时需读取以下生成工具的版权信息
'' 生成工具：风越代码生成器 [FireCode Creator]
'' 当前版本：通用版 V1.5
'' 官方网站：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="100%" border="1" cellpadding="4" cellspacing="1" class="tableStyleSolidLine" style="text-align:center">
        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_CITY_ID" runat="server" Text="CITY_ID"></asp:Label>

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

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

        <td class="tableContent001">

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

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_PROVINCE_ID" runat="server" Text="PROVINCE_ID"></asp:Label>

        

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

        <td class="tableContent001">

        

        

        

        

        

        

        

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

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_CITY_CN" runat="server" Text="CITY_CN"></asp:Label>

        

        
        </td>

        <td class="tableContent001">

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

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_CITY_EN" runat="server" Text="CITY_EN"></asp:Label>

        

        
        </td>

        <td class="tableContent001">

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

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_CITY_AREA_CODE" runat="server" Text="CITY_AREA_CODE"></asp:Label>

        

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

        <td class="tableContent001">

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

        

        

        

        

        

        

        

        

        
        </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="100%" PageSize="20"
        AutoGenerateColumns="False" AllowPaging="True" CellPadding="4" ShowFooter="True"
        DataKeyNames="CITY_ID"
        OnPageIndexChanging="GridView1_PageIndexChanging"
        OnRowDataBound="GridView1_RowDataBound"



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

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_CITY_ID_Show" runat="server" Text='<%# Eval("CITY_ID")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="PROVINCE_ID" FooterText="PROVINCE_ID" SortExpression="PROVINCE_ID">
                <ItemTemplate>
                <asp:Label ID="lab_PROVINCE_ID_Show" runat="server" Text='<%# Eval("PROVINCE_ID")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_PROVINCE_ID_Show" runat="server" Text='<%# Eval("PROVINCE_ID")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="CITY_CN" FooterText="CITY_CN" SortExpression="CITY_CN">
                <ItemTemplate>
                <asp:Label ID="lab_CITY_CN_Show" runat="server" Text='<%# Eval("CITY_CN")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_CITY_CN_Show" runat="server" Text='<%# Eval("CITY_CN")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="CITY_EN" FooterText="CITY_EN" SortExpression="CITY_EN">
                <ItemTemplate>
                <asp:Label ID="lab_CITY_EN_Show" runat="server" Text='<%# Eval("CITY_EN")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_CITY_EN_Show" runat="server" Text='<%# Eval("CITY_EN")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="CITY_AREA_CODE" FooterText="CITY_AREA_CODE" SortExpression="CITY_AREA_CODE">
                <ItemTemplate>
                <asp:Label ID="lab_CITY_AREA_CODE_Show" runat="server" Text='<%# Eval("CITY_AREA_CODE")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_CITY_AREA_CODE_Show" runat="server" Text='<%# Eval("CITY_AREA_CODE")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                


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



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


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



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