<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkFlowList.aspx.cs" Inherits="WorkFlow.FlowPage.WorkFlowList"
    ValidateRequest="false" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ 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="css/main.css" rel="stylesheet" type="text/css" />
    <link href="css/ext-all.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        var renderTopic = function (value,p,record) {
// return String.format(  '<b><a href="index.html?id={1}" target="_blank" title="查看流程">{0}</a>', value,record.id);
               return String.format(  '<b>{0}</b>', value);
        }; 
        function loadpage()
        {
        ShowDialog('index.html',1440,900,'流程设计器');
        }       

    function getFckValue(obj){   
        var Editor = FCKeditorAPI.GetInstance(obj);   
        var content = Editor.GetXHTML(true);   
        return content;   
    }  
    </script>

    <script language="Javascript" type="text/javascript"> 
      function ShowDialog(url,width,height,title) { 
            var iTop=(window.screen.height-height)/2;
            var iLeft=(window.screen.width-width)/2;
            window.showModalDialog(url,title,"dialogHeight: "+height+"px;dialogWidth: "+width+"px;dialogTop: "+iTop+"; dialogLeft: "+iLeft+"; resizable: no; status: no;scroll:no");
          }
    </script>

    <style type="text/css">
        .hg
        {
            height: 20px;
            padding-top: 3px;
        }
        .workflow-node
        {
            background-image: url(images/workflow.gif) !important;
        }
        .workflow-folder
        {
            background-image: url(images/folder.gif) !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="DirectMethod">
    </ext:ResourceManager>
    <ext:Viewport ID="Viewport1" runat="server" Layout="border" AutoScroll="true">
        <Items>
            <ext:Panel ID="Panel2" runat="server" Collapsible="true" Layout="Fit" Region="East"
                Split="true" Title="流程分类" Width="215" Icon="ArrowTurnLeft">
                <TopBar>
                    <ext:Toolbar runat="server">
                        <Items>
                            <ext:Button ID="Button2" runat="server" Text="保存" Icon="Disk">
                                <DirectEvents>
                                    <Click OnEvent="Save_Click">
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:ToolbarSeparator />
                            <ext:Button ID="Button10" runat="server" Text="删除" Icon="Delete" ToolTip="删除流程所在分类">
                                <DirectEvents>
                                    <Click OnEvent="btDeleteFL_Click">
                                        <Confirmation ConfirmRequest="true" Message="删除后不可恢复,确定删除所选的数据吗?" Title="提示" />
                                        <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在删除中，请稍后...</span>"
                                            MinDelay="10" />
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:TreePanel ID="treePanel" runat="server" Border="false" ContextMenuID="Menu1">
                        <Root>
                        </Root>
                        <Listeners>
                            <Click Handler="e.stopEvent();DirectMethod.NodeClick(node.id);" />
                        </Listeners>
                    </ext:TreePanel>
                    <ext:Menu ID="Menu1" runat="server">
                    </ext:Menu>
                </Items>
            </ext:Panel>
            <ext:Panel ID="Panel9" runat="server" Layout="Fit" Region="Center">
                <TopBar>
                    <ext:Toolbar runat="server">
                        <Items>
                            <ext:Hidden ID="hifId" runat="server">
                            </ext:Hidden>
                            <ext:Button ID="Button5" runat="server" Text="新增" Icon="LaptopAdd" ToolTip="新增流程">
                                <DirectEvents>
                                    <Click OnEvent="NewAdd_Click">
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:ToolbarSeparator />
                            <ext:Button ID="Button6" runat="server" Text="新增分类" Icon="ApplicationAdd" ToolTip="新增流程分类">
                                <DirectEvents>
                                    <Click OnEvent="ReLoaFLd_Click">
                                        <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在弹出分类窗口，请稍后...</span>"
                                            MinDelay="10" />
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:ToolbarSeparator />
                            <ext:Button ID="Button3" runat="server" Text="删除" Icon="LaptopDelete">
                                <DirectEvents>
                                    <Click OnEvent="btDelete_Click">
                                        <Confirmation ConfirmRequest="true" Message="删除后不可恢复,确定删除所选的数据吗?" Title="提示" />
                                        <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在删除中，请稍后...</span>"
                                            MinDelay="10" />
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:ToolbarSeparator />
                            <ext:Button ID="Button8" runat="server" Text="刷新" Icon="Reload" ToolTip="刷新">
                                <DirectEvents>
                                    <Click OnEvent="ReLoad_Click">
                                        <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在刷新中，请稍后...</span>"
                                            MinDelay="10" />
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:Panel ID="Panel1" runat="server" Title="" BodyBorder="false" Layout="FitLayout">
                        <Items>
                            <ext:GridPanel ID="GridPanel2" runat="server" Frame="true" StripeRows="true" ClicksToEdit="1"
                                AnimCollapse="false" Icon="Table" TrackMouseOver="true">
                                <Store>
                                    <ext:Store ID="Store2" runat="server">
                                        <Reader>
                                            <ext:JsonReader IDProperty="Id">
                                                <Fields>
                                                    <ext:RecordField Name="Id" />
                                                    <ext:RecordField Name="Name" />
                                                    <ext:RecordField Name="StatuesInfo" />
                                                    <ext:RecordField Name="MS" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel ID="ColumnModel1" runat="server">
                                    <Columns>
                                        <ext:Column Header="流程模板名称" DataIndex="Name" Width="183">
                                            <Renderer Fn="renderTopic" />
                                        </ext:Column>
                                        <ext:Column Header="描述" DataIndex="MS" Width="183" />
                                        <ext:Column DataIndex="StatuesInfo" Header="状态" Width="60">
                                            <Editor>
                                                <ext:ComboBox ID="CountryCombo" runat="server" Mode="Local" TriggerAction="All" ValueField="text"
                                                    DisplayField="text">
                                                    <Items>
                                                        <ext:ListItem Text="启用" Value="启用" />
                                                        <ext:ListItem Text="停用" Value="停用" />
                                                    </Items>
                                                </ext:ComboBox>
                                            </Editor>
                                        </ext:Column>
                                        <ext:CommandColumn Width="270" Header="操作" GroupName="Id" ButtonAlign="Center" Align="Center">
                                            <Commands>
                                                <ext:GridCommand Icon="NoteEdit" CommandName="EditWorkFlow" Text="流程设计" ToolTip-Title="用于设计流程">
                                                </ext:GridCommand>
                                                <ext:GridCommand Icon="NoteEdit" CommandName="EditInfo" Text="表单设计" ToolTip-Title="用于设计表单">
                                                </ext:GridCommand>
                                                <ext:GridCommand Icon="NoteEdit" CommandName="LookINfo" Text="审批设计" ToolTip-Title="用于设计审批">
                                                </ext:GridCommand>
                                            </Commands>
                                        </ext:CommandColumn>
                                    </Columns>
                                </ColumnModel>
                                <LoadMask ShowMask="true" />
                                <DirectEvents>
                                    <Command OnEvent="Command1">
                                        <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在加载中，请稍后...</span>"
                                            MinDelay="10" />
                                        <ExtraParams>
                                            <ext:Parameter Name="command" Value="command" Mode="Raw" />
                                            <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                            <ext:Parameter Name="Name" Value="record.data.Name" Mode="Raw" />
                                        </ExtraParams>
                                    </Command>
                                </DirectEvents>
                                <Listeners>
                                    <AfterEdit Handler="DirectMethod.Save(Ext.encode(#{GridPanel2}.getRowsValues(false)))" />
                                </Listeners>
                                <SelectionModel>
                                    <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" />
                                </SelectionModel>
                            </ext:GridPanel>
                            <ext:Hidden ID="hifId1" runat="server">
                            </ext:Hidden>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    <ext:Window ID="Window1" runat="server" Closable="True" Resizable="false" Height="500"
        Constrain="true" Icon="Anchor" Title="新增流程分类" Draggable="false" Width="380" Modal="true"
        Padding="0" Layout="Form" Hidden="true">
        <TopBar>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Content>
                    <table>
                        <tr>
                            <td>
                                类别名称：
                            </td>
                            <td>
                                <ext:TextField ID="txtName" 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="Add_Click">
                                            <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在保存中，请稍后...</span>"
                                                MinDelay="10" />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </td>
                            <td>
                                <ext:Button ID="Button13" runat="server" Text="关闭" Icon="Decline">
                                    <Listeners>
                                        <Click Handler="Window1.hide();" />
                                    </Listeners>
                                </ext:Button>
                            </td>
                        </tr>
                    </table>
                </Content>
            </ext:Toolbar>
        </TopBar>
        <Items>
            <ext:ColumnLayout ID="ColumnLayout1" runat="server" FitHeight="true">
                <Columns>
                    <ext:LayoutColumn ColumnWidth="1.0">
                        <ext:Panel ID="Panel3" runat="server" Title="" BodyBorder="false" Layout="FitLayout">
                            <Items>
                                <ext:GridPanel ID="GridPanel1" runat="server" Frame="true" StripeRows="true" AnimCollapse="false"
                                    Icon="Table" TrackMouseOver="true">
                                    <Store>
                                        <ext:Store ID="Store1" runat="server">
                                            <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="183" />
                                            <ext:CommandColumn Header="操作" GroupName="Id" ButtonAlign="Center" Align="Center"
                                                Width="73">
                                                <Commands>
                                                    <ext:GridCommand Icon="Delete" CommandName="Edit" Text="删除">
                                                    </ext:GridCommand>
                                                </Commands>
                                            </ext:CommandColumn>
                                        </Columns>
                                    </ColumnModel>
                                    <DirectEvents>
                                        <Command OnEvent="Command">
                                            <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在操作中，请稍后...</span>"
                                                MinDelay="10" />
                                            <ExtraParams>
                                                <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                                <ext:Parameter Name="Name" Value="record.data.Name" Mode="Raw" />
                                            </ExtraParams>
                                        </Command>
                                    </DirectEvents>
                                </ext:GridPanel>
                            </Items>
                        </ext:Panel>
                    </ext:LayoutColumn>
                </Columns>
            </ext:ColumnLayout>
        </Items>
    </ext:Window>
    <ext:Window ID="Window2" runat="server" Closable="True" Resizable="false" Height="500"
        Constrain="true" Icon="Anchor" Title="审批设计" Draggable="true" Maximizable="false"
        Width="824" Modal="true" Padding="0" Layout="FitLayout" Hidden="true">
        <Items>
            <ext:RowLayout ID="RowLayout2" runat="server" FitHeight="true">
                <Rows>
                    <ext:LayoutRow RowHeight="0.5">
                        <ext:Panel ID="Panel4" runat="server" Title="" BodyBorder="false" Layout="FitLayout"
                            AutoScroll="true">
                            <Items>
                                <ext:ColumnLayout ID="ColumnLayout2" runat="server">
                                    <Columns>
                                        <ext:LayoutColumn ColumnWidth="0.7">
                                            <ext:Panel runat="server" Height="200" Layout="FitLayout" BodyBorder="false">
                                                <Items>
                                                    <ext:GridPanel ID="GridPanel3" runat="server" Frame="true" StripeRows="true" Title="审批列表"
                                                        ClicksToEdit="1" AnimCollapse="false" Icon="Table" TrackMouseOver="true">
                                                        <Store>
                                                            <ext:Store ID="Store3" runat="server">
                                                                <Reader>
                                                                    <ext:JsonReader IDProperty="Name">
                                                                        <Fields>
                                                                            <ext:RecordField Name="WorkFlowViewListId" />
                                                                            <ext:RecordField Name="Id" />
                                                                            <ext:RecordField Name="TheOrder" />
                                                                            <ext:RecordField Name="Name" />
                                                                            <ext:RecordField Name="Other" />
                                                                        </Fields>
                                                                    </ext:JsonReader>
                                                                </Reader>
                                                            </ext:Store>
                                                        </Store>
                                                        <ColumnModel ID="ColumnModel3" runat="server">
                                                            <Columns>
                                                                <ext:Column Header="审批部门" DataIndex="Name" Width="183" />
                                                                <ext:TemplateColumn DataIndex="" MenuDisabled="true" Header="审批步骤">
                                                                    <Template ID="Template1" runat="server">
                                                                        <Html>
                                                                        <tpl for=".">
							                                    第{TheOrder}步
						                                    </tpl>
                                                                        </Html>
                                                                    </Template>
                                                                </ext:TemplateColumn>
                                                                <ext:Column Header="审批节点条件" DataIndex="Other" Width="111" />
                                                            </Columns>
                                                        </ColumnModel>
                                                        <SelectionModel>
                                                            <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
                                                                <DirectEvents>
                                                                    <RowSelect OnEvent="RowSelect" Buffer="100">
                                                                        <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在操作中，请稍后...</span>"
                                                                            MinDelay="10" />
                                                                        <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{GridPanel3}" />
                                                                        <ExtraParams>
                                                                            <ext:Parameter Name="WorkFlowViewListId" Value="record.data.WorkFlowViewListId" Mode="Raw" />
                                                                            <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                                                            <%--部门编号--%>
                                                                            <ext:Parameter Name="Other" Value="record.data.Other" Mode="Raw" />
                                                                            <%--连接线条件--%>
                                                                            <ext:Parameter Name="TheOrder" Value="record.data.TheOrder" Mode="Raw" />
                                                                            <%--审批顺序--%>
                                                                        </ExtraParams>
                                                                    </RowSelect>
                                                                </DirectEvents>
                                                            </ext:RowSelectionModel>
                                                        </SelectionModel>
                                                    </ext:GridPanel>
                                                </Items>
                                            </ext:Panel>
                                        </ext:LayoutColumn>
                                        <ext:LayoutColumn ColumnWidth="0.3">
                                            <ext:Panel runat="server" Height="200" Title="" Layout="FitLayout">
                                                <Items>
                                                    <ext:GridPanel ID="GridPanel5" runat="server" Frame="true" StripeRows="true" Title="审批人员"
                                                        ClicksToEdit="1" AnimCollapse="false" Icon="User" TrackMouseOver="true">
                                                        <Store>
                                                            <ext:Store ID="Store5" runat="server">
                                                                <Reader>
                                                                    <ext:JsonReader IDProperty="Id">
                                                                        <Fields>
                                                                            <ext:RecordField Name="Id" />
                                                                            <ext:RecordField Name="DepartmentName" />
                                                                            <ext:RecordField Name="Name" />
                                                                            <ext:RecordField Name="QX" />
                                                                            <ext:RecordField Name="BQ" />
                                                                            <ext:RecordField Name="WorkFlowQZGroupId" />
                                                                        </Fields>
                                                                    </ext:JsonReader>
                                                                </Reader>
                                                            </ext:Store>
                                                        </Store>
                                                        <ColumnModel ID="ColumnModel5" runat="server">
                                                            <Columns>
                                                                <ext:Column Header="人员" DataIndex="Name" Width="83" />
                                                                <ext:Column DataIndex="BQ" Header="必签" Width="60">
                                                                    <Editor>
                                                                        <ext:ComboBox ID="ComboBox2" runat="server" Mode="Local" TriggerAction="All" ValueField="text"
                                                                            Editable="false" DisplayField="text">
                                                                            <Items>
                                                                                <ext:ListItem Text="是" Value="是" />
                                                                                <ext:ListItem Text="否" Value="否" />
                                                                            </Items>
                                                                        </ext:ComboBox>
                                                                    </Editor>
                                                                </ext:Column>
                                                                <ext:CommandColumn Width="60" Header="操作" GroupName="Id" ButtonAlign="Left" Align="Center">
                                                                    <Commands>
                                                                        <ext:GridCommand Icon="Delete" CommandName="Edit" Text="删除" ToolTip-Text="<span style='font-size: 12px;'>删除审批人">
                                                                        </ext:GridCommand>
                                                                    </Commands>
                                                                </ext:CommandColumn>
                                                            </Columns>
                                                        </ColumnModel>
                                                        <Listeners>
                                                            <AfterEdit Handler="DirectMethod.ChangeBQ(Ext.encode(#{GridPanel5}.getRowsValues(false)))" />
                                                        </Listeners>
                                                        <DirectEvents>
                                                            <Command OnEvent="CommandDelete">
                                                                <Confirmation ConfirmRequest="true" Message="删除后不可恢复,确定删除所选的数据吗?" Title="提示" />
                                                                <ExtraParams>
                                                                    <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                                                </ExtraParams>
                                                            </Command>
                                                        </DirectEvents>
                                                    </ext:GridPanel>
                                                </Items>
                                            </ext:Panel>
                                        </ext:LayoutColumn>
                                    </Columns>
                                </ext:ColumnLayout>
                            </Items>
                        </ext:Panel>
                    </ext:LayoutRow>
                    <ext:LayoutRow RowHeight="0.5">
                        <ext:Panel ID="Panel5" runat="server" Title="" BodyBorder="false" Layout="FitLayout"
                            AutoScroll="true">
                            <Items>
                                <ext:GridPanel ID="GridPanel4" runat="server" Frame="true" StripeRows="true" Title="人员列表"
                                    ClicksToEdit="1" AnimCollapse="false" Icon="User" TrackMouseOver="true">
                                    <TopBar>
                                        <ext:Toolbar runat="server">
                                            <Content>
                                                <table>
                                                    <tr>
                                                        <td>
                                                            姓名：
                                                        </td>
                                                        <td>
                                                            <ext:TextField ID="txtUserName" runat="server" EmptyText="输入姓名模糊查询,为空可查询全部" Width="230">
                                                            </ext:TextField>
                                                        </td>
                                                        <td>
                                                            <ext:Button ID="Button7" Disabled="true" runat="server" Text="查询" Icon="Zoom" IconAlign="Left"
                                                                ToolTip="<span style='font-size:12px'>查询">
                                                                <DirectEvents>
                                                                    <Click OnEvent="btSearch_Click">
                                                                        <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在查询中，请稍后..." MinDelay="10" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>
                                                            <ext:Hidden ID="hifWorkFlowViewListId" runat="server">
                                                            </ext:Hidden>
                                                        </td>
                                                        <td>
                                                            <ext:Button ID="Button4" runat="server" Text="保存审批人" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="DirectMethod.ChangeInfo()" />
                                                                </Listeners>
                                                            </ext:Button>
                                                        </td>
                                                        <td>
                                                            <ext:Button ID="Button12" runat="server" Text="关闭" Icon="Decline">
                                                                <Listeners>
                                                                    <Click Handler="Window2.hide();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </Content>
                                        </ext:Toolbar>
                                    </TopBar>
                                    <Store>
                                        <ext:Store ID="Store4" runat="server">
                                            <Reader>
                                                <ext:JsonReader IDProperty="Id">
                                                    <Fields>
                                                        <ext:RecordField Name="Id" />
                                                        <ext:RecordField Name="DepartmentName" />
                                                        <ext:RecordField Name="Name" />
                                                        <ext:RecordField Name="QX" />
                                                        <ext:RecordField Name="LoginAccount" />
                                                        <ext:RecordField Name="PostionName" />
                                                    </Fields>
                                                </ext:JsonReader>
                                            </Reader>
                                        </ext:Store>
                                    </Store>
                                    <Plugins>
                                        <ext:EditableGrid ID="EditableGrid1" runat="server" />
                                    </Plugins>
                                    <ColumnModel ID="ColumnModel4" runat="server">
                                        <Columns>
                                            <ext:Column Header="部门" DataIndex="DepartmentName" Width="183" />
                                            <ext:Column Header="人员" DataIndex="Name" Width="83" />
                                            <ext:Column Header="职务" DataIndex="PostionName" Width="83" />
                                            <ext:Column Header="账号" DataIndex="LoginAccount" Width="83" />
                                        </Columns>
                                    </ColumnModel>
                                    <SelectionModel>
                                        <ext:CheckboxSelectionModel ID="CheckboxSelectionModel2" runat="server" />
                                    </SelectionModel>
                                </ext:GridPanel>
                            </Items>
                        </ext:Panel>
                    </ext:LayoutRow>
                </Rows>
            </ext:RowLayout>
        </Items>
    </ext:Window>
    <ext:Window ID="Window5" runat="server" Closable="True" Resizable="false" Height="560"
        Constrain="true" Icon="Anchor" Title="<span style='font-size:14px'>表单设计器</span>"
        Draggable="true" CloseAction="Hide" Maximized="true" Width="1020" Modal="true"
        Padding="0" Hidden="true" AutoScroll="true" Layout="FitLayout">
        <AutoLoad Mode="IFrame" NoCache="true" ShowMask="true">
        </AutoLoad>
    </ext:Window>
    <ext:Window ID="Window4" runat="server" Closable="True" Resizable="false" Height="560"
        Constrain="true" Icon="Anchor" Title="<span style='font-size:14px'>流程设计器</span>"
        Draggable="true" CloseAction="Hide" Maximized="true" Width="1020" Modal="true"
        Padding="0" Hidden="true" AutoScroll="true" Layout="FitLayout">
        <BottomBar>
            <ext:StatusBar runat="server">
                <Items>
                    <ext:Button ID="Button9" runat="server" Text="关闭" Icon="Decline">
                        <Listeners>
                            <Click Handler="DirectMethod.Window4Close();" />
                        </Listeners>
                    </ext:Button>
                </Items>
            </ext:StatusBar>
        </BottomBar>
        <AutoLoad Mode="IFrame" NoCache="true" ShowMask="true">
        </AutoLoad>
        <Listeners>
            <Hide Handler="DirectMethod.Window4Close();" />
        </Listeners>
    </ext:Window>
    </form>
</body>
</html>
