<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Postion.aspx.cs" Inherits="WorkFlow.SystemPage.Postion" %>
<%@ 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" />

</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">
        <Items>
            <ext:Panel ID="Panel1" runat="server" Layout="Fit" Region="Center" Title="">
                <TopBar>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Content>
                            <table>
                                <tr>
                                    <td>
                                        名称：
                                    </td>
                                    <td>
                                        <ext:TextField ID="txtPostion" runat="server">
                                        </ext:TextField>
                                    </td>
                                    <td>
                                        <span style="color: Red">*</span>
                                    </td>
                                    <td>
                                        <ext:Button ID="Button1" runat="server" Text="保存" Icon="Disk" ToolTip="保存职务">
                                            <Listeners>
                                                <Click Handler="DirectMethod.Save();" />
                                            </Listeners>
                                        </ext:Button>
                                    </td>
                                </tr>
                            </table>
                        </Content>
                    </ext:Toolbar>
                </TopBar>
                <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="113">
                                    <Commands>
                                        <ext:GridCommand Icon="BookAddressesEdit" CommandName="Edit" Text="修改">
                                        </ext:GridCommand>
                                        <ext:GridCommand Icon="Delete" CommandName="Delete" Text="删除">
                                        </ext:GridCommand>
                                    </Commands>
                                </ext:CommandColumn>
                            </Columns>
                        </ColumnModel>
                             <LoadMask ShowMask="true" />
                        <DirectEvents>
                            <Command OnEvent="Command">
                                <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>
                    </ext:GridPanel>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
