<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DQ.aspx.cs" Inherits="WorkFlow.CRMManger.SysManger.DQ" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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>
    <link href="../../FlowPage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="../../FlowPage/css/ext-all.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .button
        {
            line-height: 52px;
            margin-left: 20px;
            display: inline-block;
            background: #0589C7;
            color: #fff;
            font-family: 'OpenSansRegular';
            font-size: 16px;
            text-decoration: none;
            text-align: center;
            cursor: pointer;
            -webkit-transition: all 0.2s ease-out;
            -moz-transition: all 0.2s ease-out;
            transition: all 0.2s ease-out;
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            border-radius: 4px;
        }
        .button:hover
        {
            background-color: #045D87;
            color: #ffffff;
        }
        .button:active
        {
            background-color: #034c6e;
            color: #ffffff;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server">
    </ext:ResourceManager>
    <ext:Viewport ID="Viewport1" runat="server" Layout="border">
        <Items>
            <ext:Panel ID="Panel2" runat="server" Collapsible="true" Layout="Fit" Region="East"
                Split="true" Title="城市维护" Width="430">
                <TopBar>
                    <ext:Toolbar ID="Toolbar2" runat="server">
                        <Content>
                            <table>
                                <tr>
                                    <td style="font-weight: bold; color: White" class="button">
                                        <table>
                                            <tr>
                                                <td>
                                                    [
                                                </td>
                                                <td>
                                                    <ext:Hidden ID="hidUpdateCSId" runat="server">
                                                    </ext:Hidden>
                                                    <ext:Hidden ID="hidAddSFId" runat="server">
                                                    </ext:Hidden>
                                                    <ext:Label ID="lblSF" runat="server">
                                                    </ext:Label>
                                                </td>
                                                <td>
                                                    ]
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        名称：
                                    </td>
                                    <td>
                                        <ext:TextField ID="txtCSName" runat="server">
                                        </ext:TextField>
                                    </td>
                                    <td>
                                        <span style="color: Red">*</span>
                                    </td>
                                    <td>
                                        <ext:Button ID="Button4" runat="server" Text="保存" Icon="Disk">
                                            <DirectEvents>
                                                <Click OnEvent="AddCS_Click">
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </td>
                                    <td>
                                        <ext:ToolbarSeparator />
                                    </td>
                                    <td>
                                        <ext:Button ID="Button5" runat="server" Text="删除" Icon="Delete" ToolTip="删除所选城市">
                                            <DirectEvents>
                                                <Click OnEvent="CSDelete_Click">
                                                    <Confirmation ConfirmRequest="true" Message="删除后不可恢复,确定删除所选的城市吗?" Title="提示" />
                                                    <EventMask ShowMask="true" Msg="正在删除中，请稍后..." />
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </td>
                                </tr>
                            </table>
                        </Content>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:GridPanel runat="server" ID="GridPanel2" StripeRows="true" ColumnLines="True"
                        TrackMouseOver="true" Icon="Table" Frame="true" AutoScroll="true">
                        <Store>
                            <ext:Store ID="Store2" runat="server" SerializationMode="Complex">
                                <Reader>
                                    <ext:JsonReader IDProperty="Id">
                                        <Fields>
                                            <ext:RecordField Name="Id" />
                                            <ext:RecordField Name="Name" />
                                        </Fields>
                                    </ext:JsonReader>
                                </Reader>
                            </ext:Store>
                        </Store>
                        <ColumnModel ID="ColumnModel3" runat="server">
                            <Columns>
                                <ext:Column Header="名称" DataIndex="Name" Width="200" />
                                <ext:CommandColumn Width="60" Header="操作" GroupName="Id" ButtonAlign="Left" Align="Center">
                                    <Commands>
                                        <ext:GridCommand Icon="NoteEdit" CommandName="Edit" Text="修改" ToolTip-Text="修改该条数据">
                                        </ext:GridCommand>
                                    </Commands>
                                </ext:CommandColumn>
                            </Columns>
                        </ColumnModel>
                        <LoadMask ShowMask="true" />
                        <DirectEvents>
                            <Command OnEvent="CommandCS">
                                <ExtraParams>
                                    <ext:Parameter Name="command" Value="command" Mode="Raw">
                                    </ext:Parameter>
                                    <ext:Parameter Name="Name" Value="record.data.Name" Mode="Raw" />
                                    <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                </ExtraParams>
                                <EventMask ShowMask="true" Msg="正在操作中，请稍后..." />
                            </Command>
                        </DirectEvents>
                        <SelectionModel>
                            <ext:CheckboxSelectionModel ID="CheckboxSelectionModel3" runat="server" />
                        </SelectionModel>
                    </ext:GridPanel>
                </Items>
            </ext:Panel>
            <ext:Panel ID="Panel6" runat="server" Collapsible="true" Layout="FitLayout" Region="West"
                Split="true" Title="国家维护" Width="355">
                <TopBar>
                    <ext:Toolbar runat="server">
                        <Content>
                            <table>
                                <tr>
                                    <td>
                                        名称：
                                    </td>
                                    <td>
                                        <ext:Hidden ID="hidUpdateId" runat="server">
                                        </ext:Hidden>
                                        <ext:TextField ID="txtGJName" runat="server">
                                        </ext:TextField>
                                    </td>
                                    <td>
                                        <span style="color: Red">*</span>
                                    </td>
                                    <td>
                                        <ext:Button ID="Button1" runat="server" Text="保存" Icon="Disk">
                                            <DirectEvents>
                                                <Click OnEvent="GJAdd_Click">
                                                    <EventMask ShowMask="true" Msg="正在保存中，请稍后..." />
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </td>
                                    <td>
                                        <ext:ToolbarSeparator />
                                    </td>
                                    <td>
                                        <ext:Button ID="btDelete" runat="server" Text="删除" Icon="Delete" ToolTip="删除所选国家">
                                            <DirectEvents>
                                                <Click OnEvent="GJDelete_Click">
                                                    <Confirmation ConfirmRequest="true" Message="删除后不可恢复,确定删除所选的国家吗?" Title="提示" />
                                                    <EventMask ShowMask="true" Msg="正在删除中，请稍后..." />
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </td>
                                </tr>
                            </table>
                        </Content>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:GridPanel runat="server" ID="GPGJView" StripeRows="true" ColumnLines="True"
                        TrackMouseOver="true" Frame="true" AutoScroll="true" Header="false">
                        <Store>
                            <ext:Store ID="SGJView" runat="server" SerializationMode="Complex">
                                <Reader>
                                    <ext:JsonReader IDProperty="Id">
                                        <Fields>
                                            <ext:RecordField Name="Id" />
                                            <ext:RecordField Name="Name" />
                                        </Fields>
                                    </ext:JsonReader>
                                </Reader>
                            </ext:Store>
                        </Store>
                        <ColumnModel ID="ColumnModel1" runat="server">
                            <Columns>
                                <ext:Column Header="名称" DataIndex="Name" Width="200" />
                                <ext:CommandColumn Width="115" Header="操作" GroupName="Id" ButtonAlign="Left" Align="Center">
                                    <Commands>
                                        <ext:GridCommand Icon="NoteEdit" CommandName="Edit" Text="修改" ToolTip-Text="修改该条数据">
                                        </ext:GridCommand>
                                        <ext:GridCommand Icon="ApplicationOsxGet" CommandName="Look" Text="选择" ToolTip-Text="选择一个国家">
                                        </ext:GridCommand>
                                    </Commands>
                                </ext:CommandColumn>
                            </Columns>
                        </ColumnModel>
                        <LoadMask ShowMask="true" />
                        <DirectEvents>
                            <Command OnEvent="Command">
                                <ExtraParams>
                                    <ext:Parameter Name="command" Value="command" Mode="Raw">
                                    </ext:Parameter>
                                    <ext:Parameter Name="Name" Value="record.data.Name" Mode="Raw" />
                                    <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                </ExtraParams>
                                <EventMask ShowMask="true" Msg="正在操作中，请稍后..." />
                            </Command>
                        </DirectEvents>
                        <SelectionModel>
                            <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" />
                        </SelectionModel>
                    </ext:GridPanel>
                </Items>
            </ext:Panel>
            <ext:Panel ID="Panel9" runat="server" Layout="Fit" Region="Center" Title="省份/自治区/特别行政区维护">
                <TopBar>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Content>
                            <table>
                                <tr>
                                    <td style="font-weight: bold; color: White" class="button">
                                        <table>
                                            <tr>
                                                <td>
                                                    [
                                                </td>
                                                <td>
                                                    <ext:Label ID="lblGJ" runat="server">
                                                    </ext:Label>
                                                </td>
                                                <td>
                                                    ]
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        名称：
                                    </td>
                                    <td>
                                        <ext:Hidden ID="hidUpdateSFId" runat="server">
                                        </ext:Hidden>
                                        <ext:Hidden ID="hidAddGJId" runat="server">
                                        </ext:Hidden>
                                        <ext:TextField ID="txtSFName" runat="server">
                                        </ext:TextField>
                                    </td>
                                    <td>
                                        <span style="color: Red">*</span>
                                    </td>
                                    <td>
                                        <ext:Button ID="Button2" runat="server" Text="保存" Icon="Disk">
                                            <DirectEvents>
                                                <Click OnEvent="SFAdd_Click">
                                                    <EventMask ShowMask="true" Msg="正在保存中，请稍后..." />
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </td>
                                    <td>
                                        <ext:ToolbarSeparator />
                                    </td>
                                    <td>
                                        <ext:Button ID="Button3" runat="server" Text="删除" Icon="Delete" ToolTip="删除所选省份/自治区/特别行政区">
                                            <DirectEvents>
                                                <Click OnEvent="SFDelete_Click">
                                                    <Confirmation ConfirmRequest="true" Message="删除后不可恢复,确定删除所选的省份/自治区/特别行政区吗?" Title="提示" />
                                                    <EventMask ShowMask="true" Msg="正在删除中，请稍后..." />
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </td>
                                </tr>
                            </table>
                        </Content>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:GridPanel runat="server" ID="GridPanel1" StripeRows="true" ColumnLines="True"
                        TrackMouseOver="true" Icon="Table" Frame="true" AutoScroll="true">
                        <Store>
                            <ext:Store ID="Store1" runat="server" SerializationMode="Complex">
                                <Reader>
                                    <ext:JsonReader IDProperty="Id">
                                        <Fields>
                                            <ext:RecordField Name="Id" />
                                            <ext:RecordField Name="Name" />
                                        </Fields>
                                    </ext:JsonReader>
                                </Reader>
                            </ext:Store>
                        </Store>
                        <ColumnModel ID="ColumnModel2" runat="server">
                            <Columns>
                                <ext:Column Header="名称" DataIndex="Name" Width="200" />
                                <ext:CommandColumn Width="120" Header="操作" GroupName="Id" ButtonAlign="Left" Align="Center">
                                    <Commands>
                                        <ext:GridCommand Icon="NoteEdit" CommandName="Edit" Text="修改" ToolTip-Text="修改该条数据">
                                        </ext:GridCommand>
                                        <ext:GridCommand Icon="ApplicationOsxGet" CommandName="Look" Text="选择" ToolTip-Text="选择一个省份/自治区/特别行政区">
                                        </ext:GridCommand>
                                    </Commands>
                                </ext:CommandColumn>
                            </Columns>
                        </ColumnModel>
                        <LoadMask ShowMask="true" />
                        <DirectEvents>
                            <Command OnEvent="CommandSF">
                                <ExtraParams>
                                    <ext:Parameter Name="command" Value="command" Mode="Raw">
                                    </ext:Parameter>
                                    <ext:Parameter Name="Name" Value="record.data.Name" Mode="Raw" />
                                    <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                </ExtraParams>
                                <EventMask ShowMask="true" Msg="正在操作中，请稍后..." />
                            </Command>
                        </DirectEvents>
                        <SelectionModel>
                            <ext:CheckboxSelectionModel ID="CheckboxSelectionModel2" runat="server" />
                        </SelectionModel>
                    </ext:GridPanel>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
