coolite实例2

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SharedNetDisk.aspx.cs"
    Inherits="Com.DRPENG.INFOPLAT.UI.NetDisk.SharedNetDisk" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" 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" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server">
    </ext:ScriptManager>
    <ext:Hidden ID="hideType" runat="server">
    </ext:Hidden>
    <ext:Hidden ID="hideFolderID" runat="server">
    </ext:Hidden>
    <ext:Store runat="server" ID="storeUserShareInfo"  OnRefreshData="RefreshData">
        <Reader>
            <ext:JsonReader ReaderID="FolderID">
                <Fields>
                    <ext:RecordField Name="FolderID">
                    </ext:RecordField>
                    <ext:RecordField Name="Name">
                    </ext:RecordField>
                    <ext:RecordField Name="ShareState">
                    </ext:RecordField>
                    <ext:RecordField Name="Remark">
                    </ext:RecordField>
                    <ext:RecordField Name="FileType">
                    </ext:RecordField>
                    <ext:RecordField Name="FileSize">
                    </ext:RecordField>
                    <ext:RecordField Name="CreateDate">
                    </ext:RecordField>
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:ViewPort ID="ViewPort1" runat="server">
        <Body>
            <ext:BorderLayout runat="server" ID="BorderLayout1">
                <West Collapsible="true" Split="true">
                    <ext:TreePanel ID="FolderTreeList" runat="server" Width="210" Title="机构树" Icon="BookOpen"
                        AutoScroll="true">
                        <BottomBar>
                            <ext:StatusBar ID="StatusBar1" runat="server" AutoClear="1500" />
                        </BottomBar>
                        <Root>
                            <ext:TreeNode Text="根目录">
                            </ext:TreeNode>
                        </Root>
                        <Listeners>
                            <Click Handler="Coolite.AjaxMethods.GetGrid(node.id,node.text);"></Click>
                        </Listeners>
                    </ext:TreePanel>
                </West>
                <Center>
                    <ext:Panel runat="server" ID="Panel1">
                        <TopBar>
                            <ext:Toolbar runat="server" ID="topbar" Height="25">
                                <Items>
                                    <ext:ToolbarTextItem ID="ToolbarTextItem1" runat="server" Text="请选择左边机构树">
                                    </ext:ToolbarTextItem>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Body>
                            <ext:BorderLayout ID="BorderLayout2" runat="server">
                                <Center>
                                    <ext:GridPanel runat="server" ID="GridPanel1" StoreID="storeUserShareInfo"
                                        Icon="ApplicationViewList" Hidden=true AutoExpandColumn="Name" >
                                        <ColumnModel>
                                            <Columns>
                                                <ext:Column DataIndex="FileType" ColumnID="FileType" Header="文件类型">
                                                </ext:Column>
                                                <ext:Column DataIndex="Name" ColumnID="Name" Header="名 称">
                                                </ext:Column>
                                                <ext:Column DataIndex="FileSize" ColumnID="FileSize" Header="文件大小[K]">
                                                </ext:Column>
                                                <ext:Column DataIndex="CreateDate" ColumnID="CreateDate" Header="创建日期">
                                                </ext:Column>
                                               
                                                <ext:Column DataIndex="ShareState" ColumnID="ShareState" Header="共享状态">
                                                </ext:Column>
                                                <ext:Column DataIndex="Remark" ColumnID="Remark" Header="备注">
                                                </ext:Column>
                                                <ext:CommandColumn Header="操作" Width="120">
                                                    <Commands>
                                                        <ext:GridCommand CommandName="Download" Text="下载" Icon="Anchor">
                                                        </ext:GridCommand>
                                                    </Commands>
                                                </ext:CommandColumn>
                                            </Columns>
                                        </ColumnModel>
                                        <LoadMask ShowMask="true" />
                                        <Listeners>
                                            <Command Handler="Coolite.AjaxMethods.GridCommmand(command,record.data.FolderID);" />
                                        </Listeners>
                                        <BottomBar>
                                            <ext:PagingToolbar runat="server" ID="PagingToolbar1" StoreID="storeUserShareInfo"
                                                PageSize="20">
                                            </ext:PagingToolbar>
                                        </BottomBar>
                                    </ext:GridPanel>
                                </Center>
                            </ext:BorderLayout>
                        </Body>
                    </ext:Panel>
                </Center>
            </ext:BorderLayout>
        </Body>
    </ext:ViewPort>
    </form>
</body>
</html>

posted on 2010-01-08 09:25  不悔的青春  阅读(625)  评论(0编辑  收藏  举报

导航