ExtAspNet 数据字典

ExtAspNet 数据字典_第1张图片

ExtAspNet 数据字典_第2张图片

列表页面前台
1 <% @ Page Language = " C# " AutoEventWireup = " true " CodeBehind = " DictManage.aspx.cs " Inherits = " MyWebUI.DictManage " %>
2   <! DOCTYPE html PUBLIC " -//W3C//DTD XHTML 1.0 Transitional//EN " " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
3   < html xmlns = " http://www.w3.org/1999/xhtml " >
4   < head id = " Head1 " runat = " server " >
5 < title ></ title >
6 </ head >
7 < body >
8 < form id = " form1 " runat = " server " >
9 < ext:PageManager ID = " PageManager1 " AutoSizePanelID = " Panel1 " runat = " server " />
10 < ext:Panel ID = " Panel1 " runat = " server " BodyPadding = " 5px " EnableLargeHeader = " false "
11 EnableBackgroundColor = " true " ShowBorder = " false " ShowHeader = " true " Layout = " Fit " Title = " 任务类型管理 " >
12 < Items >
13 < ext:Grid ID = " Grid1 " runat = " server " ShowBorder = " true " ShowHeader = " false " EnableCheckBoxSelect = " false "
14 EnableRowNumber = " true " DataKeyNames = " Id " OnRowCommand = " Grid1_RowCommand " >
15 < Toolbars >
16 < ext:Toolbar ID = " Toolbar1 " Position = " Top " runat = " server " >
17 < Items >
18 < ext:ToolbarFill ID = " ToolbarFill1 " runat = " server " >
19 </ ext:ToolbarFill >
20 < ext:Button ID = " btnNew " runat = " server " Icon = " Add " EnablePostBack = " false " Text = " 新增任务类型 " >
21 </ ext:Button >
22 </ Items >
23 </ ext:Toolbar >
24 </ Toolbars >
25 < Columns >
26 < ext:BoundField DataField = " DictCode " HeaderText = " 任务编码 " SortField = " Name " Width = " 100px " />
27 < ext:BoundField DataField = " DictName " HeaderText = " 任务名称 " ExpandUnusedSpace = " true " />
28 < ext:BoundField DataField = " SortOrder " HeaderText = " 排序 " Width = " 80px " />
29 < ext:WindowField Text = " 编辑 " WindowID = " Window1 " Title = " 编辑 " DataIFrameUrlFields = " Id "
30 DataIFrameUrlFormatString = " DictSet.aspx?id={0} " Width = " 50px " />
31 < ext:LinkButtonField Text = " 删除 " ConfirmText = " 确定删除此任务类型? " ConfirmTarget = " Top " CommandName = " Delete "
32 Width = " 50px " />
33 </ Columns >
34 </ ext:Grid >
35 </ Items >
36 </ ext:Panel >
37 < ext:Window ID = " Window1 " runat = " server " IsModal = " true " Hidden = " true " Target = " Parent "
38 EnableIFrame = " true " IFrameUrl = " about:blank " Width = " 600px " Height = " 400px " OnClose = " Window1_Close " >
39 </ ext:Window >
40 </ form >
41 </ body >
42 </ html >
编辑界面折叠
1 <% @ Page Language = " C# " AutoEventWireup = " true " CodeBehind = " DictSet.aspx.cs " Inherits = " MyWebUI.DictSet " %>
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 id = " Head1 " 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 = " ToolbarSeparator2 " 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
36 </ Items >
37 </ ext:SimpleForm >
38 </ form >
39 </ body >
40 </ html >

你可能感兴趣的:(数据字典)