<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectUserAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectUserAdd" %> <%--<%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.参赛人员管理, Subject = this.Subject }.ToHtml()%>--%>
<%--
添加参赛者到<%= Define.Get("Client_优课评比")%>"<%= this.Subject.Name %>"
--%>
所属平台: <%= new HtmlSelect("DomainGuid", "Name", "Guid", "Guid") { Width=120, Option = this.ListDomain, DefaultSelectValue = "", SelectedValue = this.DomainGuid }.InsertOption("::请选择::", "", 0)%> <%if(this.ListUnitMaster.Count>0) { %> 所属单位管理部门: <%= new HtmlSelect("UnitMasterGuid", "Name", "Guid", "Guid") { OnChange="ChangeUnit(this);", Width=120, Option = this.ListUnitMaster, DefaultSelectValue = "" }.InsertOption("::请选择::", "", 0)%> 所属单位: <%= new HtmlText("Msg", "请先选择管理部门") { ReadOnly = true,Width=115 }%> <% } %> 登录名: <%= new HtmlText("UserName", this.UserName) { Width = 80 }%> 姓名: <%= new HtmlText("TrueName", this.TrueName) { Width = 80 }%> <%= new HtmlHidden("Key","MySubjectUserAdd") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("添加", "SubjectUserBatchAdd(this);"){ Class="btn btn-warning pull-right" }%>
<% for (int i = 0; i <= this.ListUser.Count - 1; i++) { var user = this.ListUser[i]; %> <% } %>
人员 类型 联系 操作
<%= new HtmlCheckBox() { Value = SetKey(user.Guid + "," + this.Subject.Guid, user.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> <%= user.ParentDomain.Name %>: <%= user.TrueName %> <%= user.ParentUserType.Name %> <%= user.MobilePhone %> '); return false;">添加<%-- | <%= new HtmlAnchor("预览") { Href = WebUrl.Show(user.ParentDomain.Guid, user.Guid) }%>--%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectUserAdd(this.Subject.Guid, int.MaxValue, this.DomainGuid, this.UserName, this.TrueName,this.ParentUnitGuid) }.ToHtml()%>