platform/Training/.svn/text-base/LessonEmp.aspx.svn-base

105 lines
5.1 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.

<%@ Page Language="C#" MasterPageFile="../masterPage.master" AutoEventWireup="true" CodeFile="LessonEmp.aspx.cs" Inherits="LessonEmp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="Table_NoBorder" width="100%">
<tr><td>
<table width="80%" class="Table_NoBorder" border="1">
<tr>
<td style="width: 120px" ><asp:Label ID="lbrole" runat="server" Font-Bold="True" Text="课程列表" /> </td>
<td style="width: 180px"> <asp:Label ID="lbemp" runat="server" Font-Bold="True" Text="人员列表" /></td>
<td style="width: 200px" nowrap>
 <asp:Label ID="lbRoleEm" runat="server" Font-Bold="True" Text="课程人员清单" /></td>
<td valign ="top" style="width: 200px" nowrap>
 <asp:Label ID="lbEmRole" runat="server" Font-Bold="True" Text="人员课程清单" /></td>
</tr>
<tr>
<td valign ="top"><asp:TreeView id="TreeLesson" runat="server" ShowLines="True" ImageSet="Arrows" OnSelectedNodeChanged="listRoles_SelectedIndexChanged" >
<SelectedNodeStyle BackColor="Azure" BorderColor="Transparent" />
<nodes>
<asp:TreeNode Text="所有类别" Selected="True" Value="0" Expanded="True" SelectAction="None"></asp:TreeNode>
</nodes>
</asp:TreeView></td>
<td valign ="top">
<asp:TreeView id="TreeEmp" runat="server" ShowLines="True" ImageSet="Arrows"
   OnSelectedNodeChanged="TreeLesson_SelectedNodeChanged" >
<nodes>
<asp:TreeNode Text="张浦镇" Selected="True" Value="0" Expanded="True" SelectAction="None" ></asp:TreeNode>
</nodes>
<SelectedNodeStyle BackColor="Azure" BorderColor="Transparent" />
</asp:TreeView>
</td>
<td valign ="top">
<asp:gridview id="GvEm" runat="server" AutoGenerateColumns="False"
CssClass="DataGrid" emptydatatext="没有数据。"
ShowFooter="True"
DataKeyNames="pk_Train"
Width="100%" AllowPaging="True" OnRowEditing="GvEm_RowEditing" OnRowCancelingEdit="GvEm_RowCancelingEdit" OnRowCommand="GvEm_RowCommand" OnRowUpdating="GvEm_RowUpdating">
<columns>
<asp:BoundField ReadOnly="True" DataField="pk_Train" SortExpression="pk_Train" HeaderText="pk_Train" visible="false"></asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="EM_NAME" SortExpression="EM_NAME" HeaderText="人员名称"></asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="Dep_name" SortExpression="Dep_name" HeaderText="所属部门"></asp:BoundField>
<asp:TemplateField HeaderText="完成"><EditItemTemplate>
<asp:CheckBox id="CheckBox1" runat="server" __designer:wfdid="w12" Checked='<%# Bind("train_passed") %>'></asp:CheckBox><ASP:CHECKBOXFIELD />
</EditItemTemplate>
<ItemTemplate>
<asp:CheckBox id="CheckBox2" runat="server" __designer:wfdid="w14" Checked='<%# Bind("train_passed") %>' Enabled="false" ></asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField InsertVisible="False" CancelImageUrl="~/Images/undo.gif" EditImageUrl="~/Images/edit.gif" ShowHeader="True" UpdateImageUrl="~/Images/save.gif" ButtonType="Image" ShowEditButton="True"></asp:CommandField>
</columns>
<rowstyle cssclass="ItemStyle" horizontalalign="Center" />
<headerstyle cssclass="HeaderStyle" horizontalalign="Center" />
<alternatingrowstyle cssclass="AlternatingItemStyle" />
<SelectedRowStyle CssClass="SelectedItemStyle"></SelectedRowStyle>
</asp:gridview>
</td>
<td valign ="top" ><asp:gridview id="GvRole" runat="server" AutoGenerateColumns="False"
CssClass="DataGrid" emptydatatext="没有数据。"
ShowFooter="True"
Width="100%" TabIndex="1" AllowPaging="True" OnRowDataBound="GvRole_RowDataBound" >
<columns>
<asp:BoundField DataField="le_NAME" SortExpression="le_NAME" HeaderText="“课程&quot;"></asp:BoundField>
<asp:BoundField DataField="train_passed" SortExpression="train_passed" HeaderText="是否完成"></asp:BoundField>
<asp:BoundField HtmlEncode="False" DataFormatString="{0:yyyy-MM-dd}" DataField="train_passedDate" SortExpression="train_passedDate" HeaderText="完成时间"></asp:BoundField>
</columns>
<rowstyle cssclass="ItemStyle" horizontalalign="Center" />
<headerstyle cssclass="HeaderStyle" horizontalalign="Center" />
<alternatingrowstyle cssclass="AlternatingItemStyle" />
</asp:gridview></td>
</tr>
</table>
</td></tr>
<tr><td class="ALine" >
</td></tr>
<tr>
<td align="center" > &nbsp;<asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="保存数据" OnClick="btnSubmit_Click" />
<!--input type="button" id="ButtonCancel" onclick="reset()" class="Button" value="取消修改" NAME="ButtonCancel"--></td>
</tr>
<tr><td style="width: 532px">
<br/></td></tr>
</table>
</asp:Content>