171 lines
11 KiB
Plaintext
171 lines
11 KiB
Plaintext
<%@ Page Language="C#" MasterPageFile="../masterPage.master" EnableEventValidation = "false" AutoEventWireup="true" CodeFile="LessonView.aspx.cs" Inherits="LessonView" %>
|
|
<%@ MasterType VirtualPath="~/masterPage.master" %>
|
|
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
|
|
|
<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="TreeDept" runat="server" ShowLines="True" OnSelectedNodeChanged="TreeDept_SelectedNodeChanged" ImageSet="Arrows">
|
|
<Nodes>
|
|
<asp:TreeNode Text="¿Î³ÌÀà±ð" Value="0" Expanded="True" Selected="True"></asp:TreeNode>
|
|
</Nodes>
|
|
<SelectedNodeStyle BackColor="Azure" BorderColor="Transparent" />
|
|
</asp:TreeView>
|
|
</td><td width="1" class="VLine" ></td>
|
|
<td align="left" valign="top"> <!------ THE DATA GRID AREA ------>
|
|
|
|
|
|
|
|
<asp:gridview id="GridView1" CssClass="DataGrid"
|
|
PageSize="10" PagerStyle-HorizontalAlign="Right"
|
|
runat="server"
|
|
AutoGenerateColumns="False"
|
|
OnRowEditing="GridView1_RowEditing"
|
|
DataKeyNames="ID"
|
|
OnRowDeleting="GridView1_RowDeleting"
|
|
AllowPaging="True"
|
|
OnPageIndexChanging="GridView1_PageIndexChanging"
|
|
OnSorting="GridView1_Sorting" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="99%" ShowFooter="True" EmptyDataText='ûÓÐÊý¾Ý¡£'>
|
|
|
|
<SelectedRowStyle CssClass="SelectedItemStyle"></SelectedRowStyle>
|
|
<HeaderStyle CssClass="HeaderStyle" HorizontalAlign="Center"></HeaderStyle>
|
|
<RowStyle CssClass="ItemStyle" HorizontalAlign="Center"></RowStyle>
|
|
<AlternatingRowStyle CssClass="AlternatingItemStyle"></AlternatingRowStyle>
|
|
|
|
<Columns>
|
|
<asp:BoundField Visible="False" ReadOnly="True" DataField="ID" HeaderText="ÈËÔ±id" SortExpression="ID" ></asp:BoundField>
|
|
<asp:BoundField DataField="le_name" HeaderText="¿Î³Ì" SortExpression="le_name">
|
|
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
|
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="le_desc" HeaderText="˵Ã÷" SortExpression="le_desc" HtmlEncode="False" >
|
|
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
|
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="le_startdate" HeaderText="¿ªÊ¼ÈÕÆÚ" SortExpression="le_startdate" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
|
|
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
|
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="le_enddate" HeaderText="½áÊøÈÕÆÚ" SortExpression="le_enddate" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" >
|
|
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
|
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="le_location" HeaderText="µØµã" SortExpression="le_location">
|
|
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
|
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="le_xuefen" HeaderText="ѧ·Ö" SortExpression="le_xuefen">
|
|
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
|
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="le_trainer" HeaderText="½²Ê¦" SortExpression="le_trainer">
|
|
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
|
|
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
|
|
</asp:BoundField>
|
|
|
|
<asp:BoundField DataField="dr" HeaderText="¿ÉÓÃ" SortExpression="dr" Visible="False" ></asp:BoundField>
|
|
|
|
<asp:CommandField HeaderText="²é¿´"¡¡ShowHeader="True" ShowSelectButton="True" SelectText="<img src=../Images/detail.gif border=0 title=²é¿´ >">
|
|
<HeaderStyle HorizontalAlign="Center" Width="10%" />
|
|
<ItemStyle HorizontalAlign="Center" Width="10%" />
|
|
</asp:CommandField>
|
|
</Columns>
|
|
<PagerStyle HorizontalAlign="Right" />
|
|
|
|
</asp:gridview>
|
|
<asp:Button ID="Button1" runat="server" Text="µ¼³öExcel" CssClass="Button" OnClick="Excel_Click" />
|
|
<asp:Panel ID="DataDetail" runat="server" Width="100%" Visible="false">
|
|
<!------ THE ADD /DELETE AREA ------>
|
|
<table align="left">
|
|
<tr>
|
|
<td class="ALine" nowrap colspan="6" >
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Label ID="Label2" runat="server" CssClass="Label" Text='¿Î³Ì'></asp:Label></td>
|
|
<td nowrap align="left">
|
|
<asp:TextBox ID="txtName" runat="server" CssClass="TextBox" MaxLength="25" ReadOnly="True"></asp:TextBox>
|
|
</td>
|
|
<td nowrap colspan="4"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td nowrap>
|
|
<asp:Label ID="lbstartdate" runat="server" CssClass="Label" Text='¿ªÊ¼ÈÕÆÚ'></asp:Label></td>
|
|
<td align="left">
|
|
<asp:TextBox ID="txtStartDate" CssClass="TextBox" runat="server" MaxLength="25" ReadOnly="True"></asp:TextBox>
|
|
</td>
|
|
<td nowrap>
|
|
<asp:Label ID="lbEndDate" runat="server" CssClass="Label" Text="½áÊøÈÕÆÚ" /></td>
|
|
<td >
|
|
<asp:TextBox ID="txtEndDate" CssClass="TextBox" runat="server" MaxLength="25" ReadOnly="True"></asp:TextBox>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td >
|
|
<asp:Label ID="Label1" runat="server" CssClass="Label" Text="ѧ·Ö"></asp:Label></td>
|
|
<td align="left">
|
|
<asp:TextBox ID="txtXunFen" CssClass="TextBox" runat="server" MaxLength="25" ReadOnly="True">0</asp:TextBox>
|
|
|
|
</td>
|
|
<td>
|
|
<asp:Label ID="Label11" runat="server" CssClass="Label" Text="½²Ê¦"></asp:Label></td>
|
|
<td>
|
|
<asp:TextBox ID="txtTrainer" runat="server" CssClass="TextBox" MaxLength="25" ReadOnly="True"></asp:TextBox></td>
|
|
<td nowrap>
|
|
<asp:Label ID="Label3" runat="server" CssClass="Label" Text="¸ºÔðÈË" visible="false"></asp:Label></td>
|
|
<td>
|
|
<asp:TextBox ID="txtMaster" CssClass="TextBox" runat="server" MaxLength="25" visible="false">
|
|
</asp:TextBox></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Label ID="lblocation" runat="server" CssClass="Label" Text="µØµã" />
|
|
</td>
|
|
<td colspan="5" align="left">
|
|
<asp:TextBox ID="txtLocation" CssClass="TextBox" runat="server" MaxLength="300" Width="478px">
|
|
</asp:TextBox></td>
|
|
</tr>
|
|
<tr>
|
|
<td nowrap>
|
|
<asp:Label ID="lbDesc" runat="server" CssClass="Label" Text="¿Î³Ì½éÉÜ" />
|
|
</td>
|
|
<td colspan="5" align="left">
|
|
<asp:TextBox ID="txtDesc" CssClass="TextBox" runat="server" MaxLength="500" Height="104px"
|
|
TextMode="MultiLine" Width="478px" ReadOnly="True"></asp:TextBox></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="6" align="center">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
</td>
|
|
<td align="left">
|
|
</td>
|
|
<td>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Panel>
|
|
</td></tr>
|
|
|
|
¡¡
|
|
|
|
</table>
|
|
</td></tr>
|
|
</table>
|
|
</asp:Content>
|
|
|