platform/Dict/.svn/text-base/AuthorityMain.aspx.svn-base

127 lines
6.7 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" MasterPageFile="../masterPage.master" AutoEventWireup="true" CodeFile="AuthorityMain.aspx.cs" Inherits="ajax.Dict.AuthorityMain" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%" class="Table_NoBorder">
<tr><td>
<table width="100%" class="Table_Border">
<tr><td width="50" height="200" align="left" valign="top">
<asp:TreeView ID="TreeAuth" runat="server" ShowLines="True" ImageSet="Arrows" OnSelectedNodeChanged="TreeAuth_SelectedNodeChanged1">
<SelectedNodeStyle BackColor="Azure" BorderColor="Transparent" />
<Nodes>
<asp:TreeNode Text="所有权限" Selected="True" Value="0" Expanded="True"></asp:TreeNode>
</Nodes>
</asp:TreeView>
</td>
<td width="1" class="VLine" ></td>
<td width="100%" align="left" valign="top"> <!------ THE DATA GRID AREA ------>
<asp:Label ID="lbDataGridTitle" visible="false" runat="server" CssClass="Label" Text="权限维护" />
<asp:Label ID="lbEdit" runat="server" CssClass="Label" visible="false" Text="" />
<asp:GridView id="GridView1" CssClass="DataGrid"
PageSize="10" PagerStyle-HorizontalAlign="Right"
runat="server"
AutoGenerateColumns="False"
DataKeyNames="PK_AUTHORITY"
OnRowDeleting="GridView1_RowDeleting"
AllowPaging="True"
OnPageIndexChanging="GridView1_PageIndexChanging"
OnSorting="GridView1_Sorting" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="100%" ShowFooter="True" EmptyDataText='没有数据。' OnRowDataBound="GridView1_RowDataBound1">
<SelectedRowStyle CssClass="SelectedItemStyle"></SelectedRowStyle>
<HeaderStyle CssClass="HeaderStyle" HorizontalAlign="Center"></HeaderStyle>
<RowStyle CssClass="ItemStyle" HorizontalAlign="Center"></RowStyle>
<AlternatingRowStyle CssClass="AlternatingItemStyle"></AlternatingRowStyle>
<Columns>
<asp:BoundField ReadOnly="True" DataField="PK_AUTHORITY" visible="false" HeaderText="权限id" SortExpression="PK_DEPARTMENT" ></asp:BoundField>
<asp:BoundField DataField="AUTH_NAME" HeaderText="权限名称" SortExpression="DEP_NAME" >
</asp:BoundField>
<asp:BoundField DataField="AUTH_DESC" HeaderText="权限描述" SortExpression="DEP_CODE" ><ItemStyle Wrap="False" />
<HeaderStyle Wrap="False" /></asp:BoundField>
<asp:BoundField DataField="AUTH_LINK" HeaderText="权限连接" SortExpression="AUTH_LINK" ><ItemStyle Wrap="False" />
<HeaderStyle Wrap="False" /></asp:BoundField>
<asp:BoundField DataField="AUTH_PUBLIC" HeaderText="公共权限" SortExpression="AUTH_PUBLIC" ><ItemStyle Wrap="False" />
<HeaderStyle Wrap="False" /></asp:BoundField>
<asp:BoundField DataField="dr" HeaderText="可用" SortExpression="dr" Visible="False" ></asp:BoundField>
<asp:CommandField HeaderText="编 辑" ShowDeleteButton="True" DeleteText="&lt;img src=../Images/Delete.gif border=0 title=删除 onclick='return delete_click()'&gt;"  ShowHeader="True" ShowSelectButton="True" SelectText="&lt;img src=../Images/edit.gif border=0 title=修改 &gt;">
<HeaderStyle HorizontalAlign="Center" Wrap="False" />
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:CommandField>
</Columns>
<PagerStyle HorizontalAlign="Right" />
<emptydatatemplate> 没有数据</emptydatatemplate>
</asp:gridview>
<asp:Button ID="btn_addNew" runat="server" Text="新增记录" CssClass="Button" OnClick="btnAddnew_Click" />
<asp:Panel ID ="DataDetail" runat="server" Width="100%" Visible="false">
<!------ THE ADD /DELETE AREA ------>
<table class="Table_NoBorder" width="90%">
<tr>
<td colspan="4" class="ALine">
</td>
</tr>
<tr><td nowrap>
<asp:Label ID="Label2" runat="server" CssClass="Label" Text="权限名称"></asp:Label></td>
<td >
<asp:TextBox ID="txtName" runat="server" CssClass="TextBox" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
ErrorMessage="*"></asp:RequiredFieldValidator></td>
<td nowrap>
<asp:Label ID="Label5" runat="server" CssClass="Label" Text="权限连接"></asp:Label></td><td colspan="2" >
<asp:TextBox ID="txtLink" CssClass="TextBox" runat="server" MaxLength="400" Width="400px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label3" runat="server" CssClass="Label" Text="权限描述"></asp:Label></td><td colspan="4">
<asp:TextBox ID="txtDesc" CssClass="Long_TextBox" runat="server" MaxLength="50" Width="650px"></asp:TextBox></td>
</tr>
<tr>
<td>
<asp:Label ID="lbpublic" runat="server" CssClass="Label" Text="公共权限"></asp:Label></td>
<td >
<asp:CheckBox id="chkPublic" runat="server">
</asp:CheckBox></td>
<td><asp:Label ID="Label1" runat="server" CssClass="Label" Text="公共信息"></asp:Label></td>
<td ><asp:CheckBox id="chkPublicInfo" runat="server" OnCheckedChanged="chkPublicInfo_CheckedChanged" autopostback="true">
</asp:CheckBox> <asp:CheckBox id="chkAlert" runat="server" Text="跑马灯">
</asp:CheckBox></td>
<td> &nbsp;</td>
</tr>
<tr>
<td colspan="4" class="ALine">
</td>
</tr>
<tr>
<td align="center" colspan="4"> &nbsp;<asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="保存数据" OnClick="btnSubmit_Click" />
</td>
</tr>
</table>
</asp:Panel>
</td></tr>
</table>
</td></tr>
</table>
</asp:Content>