<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.Marking.MarkingMark" %> <% if (this.UserCode != null) { var user = CreateInstance.UserDao.Get(this.UserCode); //if (user.ParentUserType.InstructorEnable == true) //{ %> <% if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.推荐) { var push_count = CreateInstance.MarkingDao.Count(l => l.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.推荐 && l.MKType == this.MKType && l.MKGuid == this.MKGuid); %> <%--是否推荐--%>
<%= "Marking"+this.MKType.ToString()+ this.MKGuid %>" href="#"> <%--<%="Marking"+this.MKType.ToString() %>--%> ">推荐<%--(<%= push_count %>)--%>
<% } else if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.置顶) { var push_count = CreateInstance.MarkingDao.Count(l => l.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.置顶 && l.MKType == this.MKType && l.MKGuid == this.MKGuid); %> <%--是否置顶--%>
<%= "Marking"+this.MKType.ToString()+ this.MKGuid %>" href="#" > <%--<%="Marking"+this.MKType.ToString() %>--%> ">置顶
<% } else { throw new Z.Core.Tools.ExceptionMessage("未定义MKType"); } %> <% //} } %>