标签:add 16px 修改字段 效果 命名 文件中 mat 按键 时间
从本章开始,主要讲解的是页面中对框架相关功能的调用方法,比如列表页面(又分为有层次感列表和普通列表)、编辑页面、多标签页面等,只要熟悉了这些函数的使用方法,那么开发起来就会很便捷了。
1、如图先创建菜单列表与编辑页面
MenuInfoList.aspx
1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuInfoList.aspx.cs" Inherits="Solution.Web.Managers.WebManage.Systems.Powers.MenuInfoList" %>
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 <f:pagemanager id="PageManager1" runat="server" />
11 <f:panel id="Panel1" runat="server" title="菜单(页面)列表" enableframe="false" bodypadding="10px"
12 enablecollapse="True">
13 <toolbars>
14 <f:Toolbar ID="toolBar" runat="server">
15 <Items>
16 <f:Button ID="ButtonRefresh" runat="server" Text="刷新" Icon="ArrowRefresh" OnClick="ButtonRefresh_Click" CssClass="inline"></f:Button>
17 <f:Button ID="ButtonAdd" runat="server" Text="添加" Icon="Add" OnClick="ButtonAdd_Click"></f:Button>
18 <f:Button ID="ButtonSearch" runat="server" Text="查询" Icon="Magnifier" OnClick="ButtonSearch_Click"></f:Button>
19 <%--<f:Button ID="ButtonEdit" runat="server" Text="编辑" Icon="BulletEdit" OnClick="ButtonEdit_Click"
20 OnClientClick="if(!F(‘Panel1_Grid1‘).getSelectionModel().hasSelection()|| F(‘Panel1_Grid1‘).getSelectionModel().getCount()>=2){F.alert(‘您没有选择编辑项或只能选择一项进行编辑!‘); return false; }">
21 </f:Button>--%>
22 <f:Button ID="ButtonSaveAutoSort" runat="server" Text="自动排序" Icon="ArrowJoin" OnClick="ButtonSaveAutoSort_Click" ConfirmTitle="自动排序提示" ConfirmText="是否对所有数据进行自动排序?"></f:Button>
23 <f:Button ID="ButtonSaveSort" runat="server" Text="保存排序" Icon="Disk" OnClick="ButtonSaveSort_Click"></f:Button>
24 <f:Button ID="ButtonDelete" runat="server" Text="删除" Icon="Delete" OnClick="ButtonDelete_Click" ConfirmTitle="删除提示" ConfirmText="是否删除记录?"
25 OnClientClick="if (!F(‘Panel1_Grid1‘).getSelectionModel().hasSelection() ) { F.alert(‘删除时必须选择一条将要删除的记录!‘); return false; } if (F(‘Panel1_Grid1‘).getSelectionModel().getCount() >= 2) { F.alert(‘只能选择一条记录进行删除!‘);return false; }">
26 </f:Button>
27 </Items>
28 </f:Toolbar>
29 </toolbars>
30 <items>
31 <f:SimpleForm ID="SimpleForm1" BodyPadding="5px" runat="server" EnableFrame="false" EnableCollapse="true"
32 ShowBorder="True" ShowHeader="False">
33 <Items>
34 <f:DropDownList Label="菜单选择" runat=