• ExtAspNet 部门管理


    界面样式

    部门管理列表界面前台
    1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartManage.aspx.cs" Inherits="MyWebUI.DepartManage"%>
    2
    3  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    4  <html xmlns="http://www.w3.org/1999/xhtml">
    5  <head id="Head1" runat="server">
    6 <title></title>
    7 </head>
    8 <body>
    9 <form id="form1" runat="server">
    10 <ext:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"/>
    11 <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableLargeHeader="false"
    12 EnableBackgroundColor="true" ShowBorder="false" ShowHeader="true" Layout="Fit" Title ="部门管理">
    13 <Items>
    14 <ext:Grid ID="Grid1" runat="server" ShowBorder="true" ShowHeader="false" EnableCheckBoxSelect="false"
    15 EnableRowNumber="true" DataKeyNames="id" OnRowCommand="Grid1_RowCommand">
    16 <Toolbars>
    17 <ext:Toolbar ID="Toolbar1" Position="Top" runat="server">
    18 <Items>
    19 <ext:ToolbarFill ID="ToolbarFill1" runat="server">
    20 </ext:ToolbarFill>
    21 <ext:Button ID="btnNew" runat="server" Icon="Add" EnablePostBack="false" Text="新增部门">
    22 </ext:Button>
    23 </Items>
    24 </ext:Toolbar>
    25 </Toolbars>
    26 <Columns>
    27 <ext:BoundField DataField="Name" HeaderText="部门名称" DataSimulateTreeLevelField="TreeLevel"
    28 Width="150px"/>
    29 <ext:BoundField DataField="Code" HeaderText="部门编码"
    30 Width="150px"/>
    31 <ext:BoundField DataField="Remark" HeaderText="部门描述" ExpandUnusedSpace="true"/>
    32 <ext:BoundField DataField="SortOrder" HeaderText="排序" Width="50px"/>
    33 <ext:WindowField Text="编辑" WindowID="Window1" Title="编辑" DataIFrameUrlFields="Id"
    34 DataIFrameUrlFormatString="DepartSet.aspx?id={0}" Width="50px"/>
    35 <ext:LinkButtonField Text="删除" ConfirmText="确定删除此部门?" ConfirmTarget="Top" CommandName="Delete"
    36 Width="50px"/>
    37 </Columns>
    38 </ext:Grid>
    39 </Items>
    40 </ext:Panel>
    41 <ext:Window ID="Window1" runat="server" IsModal="true" Hidden="true" Target="Parent"
    42 EnableIFrame="true" IFrameUrl="about:blank" Width="600px" Height="400px" OnClose="Window1_Close">
    43 </ext:Window>
    44 </form>
    45 </body>
    46 </html>
    部门编辑界面前台
    1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartSet.aspx.cs" Inherits="MyWebUI.DepartSet"%>
    2
    3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    4
    5 <html xmlns="http://www.w3.org/1999/xhtml">
    6 <head runat="server">
    7 <title>无标题页</title>
    8 </head>
    9 <body>
    10 <form id="form1" runat="server">
    11 <ext:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server"/>
    12 <ext:SimpleForm ID="SimpleForm1" ShowBorder="false" ShowHeader="false" runat="server"
    13 BodyPadding="5px" EnableBackgroundColor="true" Title="SimpleForm">
    14 <Toolbars>
    15 <ext:Toolbar ID="Toolbar1" runat="server">
    16 <Items>
    17 <ext:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
    18 Text="关闭">
    19 </ext:Button>
    20 <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
    21 </ext:ToolbarSeparator>
    22 <ext:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose"
    23 OnClick="btnSaveClose_Click" runat="server" Text="保存后关闭">
    24 </ext:Button>
    25 </Items>
    26 </ext:Toolbar>
    27 </Toolbars>
    28 <Items>
    29 <ext:TextBox ID="txtCode" runat="server" Label="部门编码" Required="true" ShowRedStar="true">
    30 </ext:TextBox>
    31 <ext:TextBox ID="txtName" runat="server" Label="部门名称" Required="true" ShowRedStar="true">
    32 </ext:TextBox>
    33 <ext:NumberBox ID="txtSortOrder" Label="排序号" Required="true" ShowRedStar="true" runat="server">
    34 </ext:NumberBox>
    35 <ext:DropDownList ID="ddlParent" Label="上级部门" Required="true" ShowRedStar="true"
    36 runat="server">
    37 </ext:DropDownList>
    38 <ext:TextArea ID="txtRemark" runat="server" Label="部门描述">
    39 </ext:TextArea>
    40 </Items>
    41 </ext:SimpleForm>
    42 </form>
    43 </body>
    44 </html>
  • 相关阅读:
    小希的迷宫(hdu1272 并查集)
    How many Fibs?(poj 2413)大数斐波那契
    图练习-BFS-从起点到目标点的最短步数(sdut 2830)邻接边表
    最大流(EK)
    趣写算法系列之--匈牙利算法(真的很好理解)
    Saving Princess claire_(hdu 4308 bfs模板题)
    Knight Moves(hdu1372 bfs模板题)
    The Die Is Cast(poj 1481简单的双dfs)
    Oil Deposits(poj 1526 DFS入门题)
    WTL:下载、安装、初见
  • 原文地址:https://www.cnblogs.com/txsoft/p/1955712.html
Copyright © 2020-2023  润新知