<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyListenLesson.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyListenLesson" %> <%= new MyInstructorNavTopInstance(this) { Local= MyInstructorNavTopItem.听课管理 }.ToHtml()%>
我的听课:我的<%= this.Query.RecordCount %>个听课
活动名称: <%= new HtmlText("Name", this.Name) { Width = 120 }%> 日期从 <%= new HtmlText("BeginTime", this.BeginTime.ToShortDate()) { Width = 80 }%> 至 <%= new HtmlText("EndTime", this.EndTime.ToShortDate()) { Width = 80 }%> <%-- 学科: <%= new HtmlSelect("CategoryGuid", "Name", "Guid", "Guid") { Option= this.ListCategory }.InsertOption("::选择::","",0).SelectValue(this.CategoryGuid)%>--%> <%= new HtmlHidden("Key","MyListenLesson") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("创建听课活动...", "window.location.href='" + WebUrl.MyListenLessonAdd() + "';")%> <%= new HtmlButton("删除", "ListenLessonBatchDelete(this);")%>
<% for (int i = 0; i <= this.ListListenLesson.Count - 1; i++) { var item = this.ListListenLesson[i]; %> <% } %>
听课活动名称 听课所属学科 活动开展日期 活动结束日期 状态 操作
<%= new HtmlCheckBox() { Value = SetKey(item.Guid, item.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>

<%= item.Name %>

<%= item.ParentCategory.Name %>

<%= item.BeginTime.ToShortDate() %>

<%= item.EndTime.ToShortDate() %>

<%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "ListenLessonChangeStatusClient(this,'" + SetKey(item.Guid, item.Version) + "');", Lang = item.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.ListenLessonStatusEnum), SelectedValue = item.Status }.Style(new { Width = "auto" })%> <%= new HtmlAnchor("编辑") { Href = WebUrl.MyListenLessonEdit(item.Guid) }%> | 删除
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyListenLesson(int.MaxValue) }.ToHtml()%>