127 lines
6.7 KiB
Plaintext
127 lines
6.7 KiB
Plaintext
|
<%@ 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" %>
|
|||
|
<EFBFBD><EFBFBD>
|
|||
|
<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="<22><><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8>" 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="Ȩ<><C8A8>ά<EFBFBD><CEAC>" />
|
|||
|
<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='û<><C3BB><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>' 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="Ȩ<><C8A8>id" SortExpression="PK_DEPARTMENT" ></asp:BoundField>
|
|||
|
<asp:BoundField DataField="AUTH_NAME" HeaderText="Ȩ<><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SortExpression="DEP_NAME" >
|
|||
|
|
|||
|
|
|||
|
</asp:BoundField>
|
|||
|
|
|||
|
<asp:BoundField DataField="AUTH_DESC" HeaderText="Ȩ<><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SortExpression="DEP_CODE" ><ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" /></asp:BoundField>
|
|||
|
<asp:BoundField DataField="AUTH_LINK" HeaderText="Ȩ<><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SortExpression="AUTH_LINK" ><ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" /></asp:BoundField>
|
|||
|
<asp:BoundField DataField="AUTH_PUBLIC" HeaderText="<22><><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8>" SortExpression="AUTH_PUBLIC" ><ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" /></asp:BoundField>
|
|||
|
<asp:BoundField DataField="dr" HeaderText="<22><><EFBFBD><EFBFBD>" SortExpression="dr" Visible="False" ></asp:BoundField>
|
|||
|
|
|||
|
<asp:CommandField HeaderText="<22>ࡡ<EFBFBD><E0A1A1>" ShowDeleteButton="True" DeleteText="<img src=../Images/Delete.gif border=0 title=ɾ<><C9BE> onclick='return delete_click()'>" <20><>ShowHeader="True" ShowSelectButton="True" SelectText="<img src=../Images/edit.gif border=0 title=<3D><EFBFBD> >">
|
|||
|
<HeaderStyle HorizontalAlign="Center" Wrap="False" />
|
|||
|
<ItemStyle HorizontalAlign="Center" Wrap="False" />
|
|||
|
</asp:CommandField>
|
|||
|
</Columns>
|
|||
|
<PagerStyle HorizontalAlign="Right" />
|
|||
|
<emptydatatemplate> û<><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD></emptydatatemplate>
|
|||
|
</asp:gridview>
|
|||
|
<asp:Button ID="btn_addNew" runat="server" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼" 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="Ȩ<><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></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="*"><3E><></asp:RequiredFieldValidator></td>
|
|||
|
<td nowrap>
|
|||
|
<asp:Label ID="Label5" runat="server" CssClass="Label" Text="Ȩ<><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></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="Ȩ<><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></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="<22><><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8>"></asp:Label></td>
|
|||
|
<td >
|
|||
|
<asp:CheckBox id="chkPublic" runat="server">
|
|||
|
</asp:CheckBox></td>
|
|||
|
|
|||
|
<td><asp:Label ID="Label1" runat="server" CssClass="Label" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ"></asp:Label></td>
|
|||
|
<td ><asp:CheckBox id="chkPublicInfo" runat="server" OnCheckedChanged="chkPublicInfo_CheckedChanged" autopostback="true">
|
|||
|
</asp:CheckBox> <asp:CheckBox id="chkAlert" runat="server" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
|
|||
|
</asp:CheckBox></td>
|
|||
|
<td> </td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td colspan="4" class="ALine">
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td align="center" colspan="4"> <asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" OnClick="btnSubmit_Click" />
|
|||
|
|
|||
|
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</asp:Panel>
|
|||
|
</td></tr>
|
|||
|
|
|||
|
|
|||
|
</table>
|
|||
|
</td></tr>
|
|||
|
</table>
|
|||
|
</asp:Content>
|
|||
|
|