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

<%@ 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">
          .hg
        {
            height: 20px;
            padding-top: 3px;
        }
        .workflow-node
        {
            background-image: url(../../FlowPage/images/workflow.gif) !important;
        }
        .workflow-folder
        {
            background-image: url(../../FlowPage/images/folder.gif) !important;
        }
        .add
        {
            background-image: url(../../FlowPage/images/arrow_refresh.png) !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="CompanyX">
    </ext:ResourceManager>
    <ext:Viewport ID="Viewport1" runat="server" Layout="border" AutoScroll="true">
        <Items>
            <ext:Panel ID="Panel6" runat="server" Collapsible="true" Region="West" Split="true"
                Title="分类" Width="188" AutoScroll="true" Layout="FitLayout">
                <Items>
                    <ext:TreePanel ID="TreePanel1" runat="server" Title="">
                        <Root>
                            <ext:TreeNode Text="基础维护" Expanded="true"   IconCls="workflow-folder" >
                                <Nodes>
                                    <ext:TreeNode Text="员工人数" NodeID="员工人数"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="客户来源" NodeID="客户来源"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="客户级别" NodeID="客户级别"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="客户状态" NodeID="客户状态"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="所属行业" NodeID="所属行业"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="公司性质" NodeID="公司性质"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="类型" NodeID="类型"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="营业额" NodeID="营业额"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="支付方式" NodeID="支付方式"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="热点客户" NodeID="热点客户"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="热度" NodeID="热度"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="热点分类" NodeID="热点分类"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="客户产品" NodeID="客户产品"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="销售阶段" NodeID="销售阶段"  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="联系类型 " NodeID="联系类型 "  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                     <ext:TreeNode Text="纪念日类型 " NodeID="纪念日类型 "  IconCls="workflow-node" Cls="hg">
                                    </ext:TreeNode>
                                </Nodes>
                            </ext:TreeNode>
                        </Root>
                        <Listeners>
                            <Click Handler="e.stopEvent();CompanyX.NodeClick(node.id);" />
                        </Listeners>
                    </ext:TreePanel>
                </Items>
            </ext:Panel>
            <ext:Panel ID="PList" runat="server" Layout="Fit" Region="Center" Title="分类信息">
                <TopBar>
                    <ext:Toolbar runat="server" ID="Info">
                        <Content>
                            <table>
                                <tr>
                                    <td>
                                        内容：
                                    </td>
                                    <td>
                                        <ext:Hidden ID="Hidden1" runat="server">
                                        </ext:Hidden>
                                        <ext:Hidden ID="UpdateId" runat="server">
                                        </ext:Hidden>
                                        <ext:TextField ID="txtFLName" runat="server">
                                        </ext:TextField>
                                    </td>
                                    <td>
                                        <span style="color: Red">*</span>
                                    </td>
                                    <td>
                                        <ext:Button ID="Button1" runat="server" Text="保存" Icon="Disk" ToolTip="保存分类内容">
                                            <DirectEvents>
                                                <Click OnEvent="Add_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="Delete_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="grvXXView" Title="信息列表" StripeRows="true" ColumnLines="True"
                        TrackMouseOver="true" Icon="Table" Frame="true" AutoScroll="true">
                        <Store>
                            <ext:Store ID="XXView" runat="server" SerializationMode="Complex">
                                <Reader>
                                    <ext:JsonReader IDProperty="Id">
                                        <Fields>
                                            <ext:RecordField Name="Id" />
                                            <ext:RecordField Name="FLName" />
                                            <ext:RecordField Name="FLType" />
                                        </Fields>
                                    </ext:JsonReader>
                                </Reader>
                            </ext:Store>
                        </Store>
                        <ColumnModel ID="ColumnModel1" runat="server">
                            <Columns>
                                <ext:Column Header="内容" DataIndex="FLName" Width="260" />
                                <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="Command">
                                <ExtraParams>
                                    <ext:Parameter Name="FLName" Value="record.data.FLName" Mode="Raw" />
                                    <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                </ExtraParams>
                            </Command>
                        </DirectEvents>
                        <SelectionModel>
                            <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" />
                        </SelectionModel>
                    </ext:GridPanel>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
