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

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

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="width:45%; margin:12px; float:left;">        
        <asp:GridView ID=GridView1 runat=server Caption="省份列表"
             OnSelectedIndexChanging=GridView1_SelectedIndexChanging
             OnPageIndexChanging=GridView1_PageIndexChanging
             OnRowDeleting=GridView1_RowDeleting >
            <Columns>
                <asp:BoundField DataField=名称 HeaderText="名称" />
                <asp:BoundField DataField="序号" HeaderText="序号" />
                <asp:CommandField SelectText="选择" HeaderText="选择" ShowSelectButton=true ItemStyle-Width=30 />
                <asp:CommandField DeleteText="删除" HeaderText="删除" ShowDeleteButton=true ItemStyle-Width=30  />
            </Columns>
        </asp:GridView>
        <table border=1 width=100% style="margin-top:24px;">
            <tr>
                <td width=40>名称</td><td width=120><asp:TextBox ID=txtProvinceName runat=server /></td>
                <td width=40>序号</td><td><asp:TextBox ID=txtProvinceNo runat=server />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="序号为1-3位整数" ControlToValidate="txtProvinceNo" ValidationExpression="\d{1,3}" Display=Dynamic></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td colspan=4 style="text-align:center;"><asp:Button ID=Button1 runat=server Text="增加" OnClick=Button1_Click />
                              <asp:Button ID=Button2 runat=server Text="修改" OnClick=Button2_Click /></td>
            </tr>
        </table>
        </div>
        
        <div style="width:45%; margin:12px; float:right;">
            <asp:GridView ID=GridView2 runat=server Caption=地区列表 
                        OnSelectedIndexChanging=GridView2_SelectedIndexChanging
                        OnPageIndexChanging=GridView2_PageIndexChanging
                        OnRowDeleting=GridView2_RowDeleting >
                <Columns>
                    <asp:BoundField DataField=名称 HeaderText="名称" />
                    <asp:BoundField DataField="序号" HeaderText="序号" />
                    <asp:CommandField SelectText="选择" HeaderText="选择" ShowSelectButton=true ItemStyle-Width=30 />
                    <asp:CommandField DeleteText="删除" HeaderText="删除" ShowDeleteButton=true ItemStyle-Width=30  />
                </Columns>
            </asp:GridView>
            <table border=1 width=100% style="margin-top:24px;">
                <tr>
                    <td width=40>名称</td><td width=120><asp:TextBox ID=txtCityName runat=server /></td>
                    <td width=40>序号</td><td><asp:TextBox ID=txtCityNo runat=server />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtCityNo"
                            ErrorMessage="序号为1-3位整数" ValidationExpression="\d{1,3}"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td colspan=4 style="text-align:center;"><asp:Button ID=Button3 runat=server Text="增加" OnClick=Button3_Click />
                                  <asp:Button ID=Button4 runat=server Text="修改" OnClick=Button4_Click /></td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
