<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyClassInfo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyClassInfo" %> <%= new MyShiXunWorkNavTopInstance(this) { Local = MyShiXunWorkNavTopItem.班级管理 }.ToHtml()%>
我创建的<%= this.Query.RecordCount %>个班级
班级: <%= new HtmlText("Name", this.Name) { Width = 120 }%> <%= new HtmlHidden("Key","MyClassInfo") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("创建班级", "window.location.href='" + WebUrl.MyClassInfoAdd() + "';"){ Class="btn btn-warning " }%> <%= new HtmlButton("删除", "ClassInfoBatchDelete(this);") { Class="pull-right btn-danger" }%>
<% for (int i = 0; i <= this.ListClassInfo.Count - 1; i++) { var classInfo = this.ListClassInfo[i]; %> <% } %>
班级名称 班级老师人数 班级学生人数 操作
<%= new HtmlCheckBox() { Value = SetKey(classInfo.Guid, classInfo.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> <%=classInfo.Name %> <%=CreateInstance.ClassTeacherDao.Count(l=>l.ParentClassInfo == classInfo)%>人 <%=CreateInstance.ClassStudentDao.Count(l=>l.ParentClassInfo == classInfo)%>人 删除
添加班级学生
<%= new HtmlAnchor("查看班级学生") { Href=WebUrl.MyClassUserList(classInfo.Guid)}%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyClassInfo(int.MaxValue, this.Name) }.ToHtml()%>