/// <summary> /// 设置作者为专家 /// </summary> /// <param name="query"></param> /// <returns></returns> public IList <AuthorDetailEntity> GetExpertGroupMapList(ExpertGroupMapEntity query) { HttpClientHelper clientHelper = new HttpClientHelper(); IList <AuthorDetailEntity> result = clientHelper.Post <IList <AuthorDetailEntity>, ExpertGroupMapEntity>(GetAPIUrl(APIConstant.AUTHOR_GETEXPERTGROUPMAPLIST), query); return(result); }
/// <summary> /// 获取显示html /// </summary> /// <returns></returns> private string GetEnExpertGroupMapHtml(Int32 GroupID) { StringBuilder strHtml = new StringBuilder(); IAuthorPlatformFacadeService service = ServiceContainer.Instance.Container.Resolve <IAuthorPlatformFacadeService>(); ExpertGroupMapEntity query = new ExpertGroupMapEntity(); query.JournalID = JournalID; query.ExpertGroupID = GroupID; var list = service.GetExpertGroupMapList(query); if (list != null && list.Count > 0) { strHtml.Append("<table>"); int i = 1; foreach (var model in list) { if (i == 1) { strHtml.Append("<tr>"); } strHtml.Append("<td style=\"padding-left:10px;height:25px;width:130px;\">"); strHtml.Append("<input id=\"chkExpertGroup_") .Append(model.AuthorID) .Append("\" type=\"checkbox\" name=\"ExpertGroup\" value=\"") .Append(model.AuthorID) .Append("\" "); if (model.IsChecked) { strHtml.Append(" checked=\"checked\" "); } strHtml.Append(" key=\"") .Append(model.AuthorName) .Append("\"/><label for=\"chkExpertGroup_") .Append(model.AuthorID) .Append("\" style=\"margin-right:30px;\" "); if (!string.IsNullOrWhiteSpace(model.ResearchTopics)) { strHtml.Append(" title=\"研究方向:"); strHtml.Append(model.ResearchTopics); strHtml.Append("\""); } strHtml.Append(" >"); strHtml.Append(model.AuthorName); strHtml.Append("</label></td>"); if (i == 5) { strHtml.Append("</tr>"); i = 0; } i++; } strHtml.Append("</table>"); } return(strHtml.ToString()); }
/// <summary> /// 获取专家分组信息 /// </summary> /// <param name="query"></param> /// <returns></returns> public IList <AuthorDetailEntity> GetExpertGroupMapList(ExpertGroupMapEntity query) { return(AuthorDetailDataAccess.Instance.GetExpertGroupMapList(query)); }
/// <summary> /// 获取专家分组信息 /// </summary> /// <param name="query"></param> /// <returns></returns> public IList <AuthorDetailEntity> GetExpertGroupMapList(ExpertGroupMapEntity query) { return(AuthorDetailBusProvider.GetExpertGroupMapList(query)); }