124 lines
6.1 KiB
Plaintext
124 lines
6.1 KiB
Plaintext
|
<%@ Page Language="C#" MasterPageFile="../masterPage.master" AutoEventWireup="true" CodeFile="RoleMain.aspx.cs" Inherits="RoleMain" %>
|
|||
|
<%@ MasterType VirtualPath="~/masterPage.master" %>
|
|||
|
<%@ 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>
|
|||
|
|
|||
|
<!------ THE DATA GRID AREA ------>
|
|||
|
|
|||
|
<asp:gridview id="GridView1" CssClass="DataGrid" PagerStyle-HorizontalAlign="Right"
|
|||
|
runat="server"
|
|||
|
emptydatatext="û<><C3BB><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>"
|
|||
|
|
|||
|
OnRowEditing="GridView1_RowEditing"
|
|||
|
DataKeyNames="pk_role"
|
|||
|
OnRowDeleting="GridView1_RowDeleting"
|
|||
|
AllowPaging="True"
|
|||
|
OnPageIndexChanging="GridView1_PageIndexChanging"
|
|||
|
OnRowDataBound="GridView1_RowDataBound"
|
|||
|
OnSorting="GridView1_Sorting" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="100%" ShowFooter="True" AutoGenerateColumns="False">
|
|||
|
|
|||
|
<Columns>
|
|||
|
<asp:BoundField ReadOnly="True" DataField="PK_ROLE" SortExpression="PK_ROLE" HeaderText="<22><>ɫid" visible="false"></asp:BoundField>
|
|||
|
<asp:BoundField DataField="ROLE_NAME" SortExpression="ROLE_NAME" HeaderText="<22><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD>">
|
|||
|
<ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" />
|
|||
|
</asp:BoundField>
|
|||
|
|
|||
|
<asp:BoundField DataField="ROLE_DESC" SortExpression="ROLE_DESC" HeaderText="<22><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD>"><ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" /></asp:BoundField>
|
|||
|
<asp:BoundField DataField="ROLE_4Approve" SortExpression="ROLE_4Approve" HeaderText="<22><><EFBFBD>˽<EFBFBD>ɫ"><ItemStyle Wrap="False" />
|
|||
|
<HeaderStyle Wrap="False" /></asp:BoundField>
|
|||
|
<asp:BoundField DataField="dr" Visible="False" SortExpression="dr" HeaderText="<22><><EFBFBD><EFBFBD>"></asp:BoundField>
|
|||
|
<asp:CommandField SelectText="<img src=../Images/edit.gif border=0 title=<3D><EFBFBD> >" ShowDeleteButton="True" ShowHeader="True" DeleteText="<img src=../Images/Delete.gif border=0 title=ɾ<><C9BE> onclick='return delete_click()'>" ShowSelectButton="True" HeaderText="<22>ࡡ<EFBFBD><E0A1A1>">
|
|||
|
<HeaderStyle Width="15%" HorizontalAlign="Center"></HeaderStyle>
|
|||
|
|
|||
|
<ItemStyle Width="15%" HorizontalAlign="Center"></ItemStyle>
|
|||
|
</asp:CommandField>
|
|||
|
</Columns>
|
|||
|
<RowStyle CssClass="ItemStyle" HorizontalAlign="Center"></RowStyle>
|
|||
|
<EmptyDataTemplate>
|
|||
|
|
|||
|
|
|||
|
</EmptyDataTemplate>
|
|||
|
|
|||
|
<SelectedRowStyle CssClass="SelectedItemStyle"></SelectedRowStyle>
|
|||
|
<PagerStyle HorizontalAlign="Right" />
|
|||
|
<HeaderStyle CssClass="HeaderStyle" HorizontalAlign="Center"></HeaderStyle>
|
|||
|
<AlternatingRowStyle CssClass="AlternatingItemStyle"></AlternatingRowStyle>
|
|||
|
|
|||
|
</asp:gridview>
|
|||
|
|
|||
|
<asp:Button ID="btn_addNew" runat="server" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼" CssClass="Button" OnClick="btnAddnew_Click" />
|
|||
|
</td></tr>
|
|||
|
<tr><td class="ALine" ></td>
|
|||
|
</tr>
|
|||
|
<tr><td>
|
|||
|
|
|||
|
|
|||
|
<!------ THE ADD /DELETE AREA ------>
|
|||
|
|
|||
|
<asp:Panel ID ="DataDetail" runat="server" Width="100%" Visible="false">
|
|||
|
<table class="Table_NoBorder" width="100%">
|
|||
|
<tr><td align="right">
|
|||
|
<asp:Label ID="Label2" runat="server" CssClass="Label" Text="<22><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD>"></asp:Label></td><td >
|
|||
|
|
|||
|
<asp:TextBox ID="txtJobName" runat="server" CssClass="TextBox" MaxLength="25" ></asp:TextBox>
|
|||
|
|
|||
|
|
|||
|
<asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ControlToValidate="txtJobName"
|
|||
|
ErrorMessage="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD>ơ<EFBFBD>" SetFocusOnError="True" ValidationGroup="1">*</asp:RequiredFieldValidator>
|
|||
|
|
|||
|
|
|||
|
</td>
|
|||
|
|
|||
|
<td align="right">
|
|||
|
<asp:Label ID="Label3" runat="server" CssClass="Label" Text="<22><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD>"></asp:Label></td><td >
|
|||
|
<asp:TextBox ID="txtJobDesc" runat="server" CssClass="TextBox_Long" MaxLength="100" Width="255px" ></asp:TextBox>
|
|||
|
|
|||
|
|
|||
|
<asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ControlToValidate="txtJobDesc"
|
|||
|
ErrorMessage="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SetFocusOnError="True" ValidationGroup="1">*</asp:RequiredFieldValidator>
|
|||
|
</td></tr>
|
|||
|
<tr><td align="right">
|
|||
|
<asp:Label ID="Label1" runat="server" CssClass="Label" Text="<22><><EFBFBD>˽<EFBFBD>ɫ" Visible="true"></asp:Label></td><td colspan ="3" >
|
|||
|
<asp:CheckBox id="chkApprove" runat="server">
|
|||
|
</asp:CheckBox></td></tr>
|
|||
|
|
|||
|
<tr>
|
|||
|
<td colspan="4" >
|
|||
|
<asp:ValidationSummary id="ValidationSummary1" runat="server" ValidationGroup="1" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ"></asp:ValidationSummary>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<tr>
|
|||
|
<td colspan ="4" class="ALine" >
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
|
|||
|
<!------ BUTTONS ------>
|
|||
|
<table class="Table_NoBorder" width="80%">
|
|||
|
<tr>
|
|||
|
<td align="center" > <asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" OnClick="btnSubmit_Click" ValidationGroup="1" />
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</asp:Panel>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</td></tr>
|
|||
|
<tr><td style="width: 532px">
|
|||
|
|
|||
|
<br/></td></tr>
|
|||
|
</table>
|
|||
|
|
|||
|
</asp:Content>
|
|||
|
|