/// <summary>
 /// 查看稿件作者信息
 /// </summary>
 /// <returns></returns>
 public ActionResult ViewContributionAuthor(long CAuthorID)
 {
     ContributionAuthorEntity CAuthorEntity = new ContributionAuthorEntity();
     ContributionAuthorQuery query= new ContributionAuthorQuery();
     query.JournalID = CurAuthor.JournalID;
     query.CAuthorID = CAuthorID;
     IContributionFacadeService service = ServiceContainer.Instance.Container.Resolve<IContributionFacadeService>();
     CAuthorEntity=service.GetContributionAuthorInfo(query);
     return View(CAuthorEntity);
 }
 public IList<ContributionAuthorEntity> GetContributionAuthorList(ContributionAuthorQuery query)
 {
     IContributionInfoService service = ServiceContainer.Instance.Container.Resolve<IContributionInfoService>();
     IList<ContributionAuthorEntity> list = service.GetContributionAuthorList(query);
     return list;
 }
 /// <summary>
 /// 获取稿件作者分页数据
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public Pager<ContributionAuthorEntity> GetContributionAuthorPageList(ContributionAuthorQuery query)
 {
     return ContributionInfoDataAccess.Instance.GetContributionAuthorPageList(query);
 }
 public ContributionAuthorEntity GetContributionAuthorInfo(ContributionAuthorQuery query)
 {
     IContributionInfoService authorService = ServiceContainer.Instance.Container.Resolve<IContributionInfoService>();
     var ContributionAuthorEntity = authorService.GetContributionAuthor(query.CAuthorID);
     return ContributionAuthorEntity;
 }
 /// <summary>
 /// 获取稿件作者信息
 /// </summary>
 /// <param name="userList"></param>
 /// <param name="JournalID"></param>
 /// <param name="isEmail"></param>
 /// <returns></returns>
 private IDictionary<Int64, string> GetContributionAuthorDcit(IList<Int64> userList, Int64 JournalID, bool isEmail)
 {
     if (isEmail)
     {
         ContributionAuthorQuery query = new ContributionAuthorQuery();
         //query.CAuthorIDs = userList.Distinct().ToArray();
         query.CAuthorID = userList[0];
         query.JournalID = JournalID;
         query.PageSize = userList.Count;
         query.CurrentPage = 1;
         ContributionFacadeAPIService service = new ContributionFacadeAPIService();
         var list = service.GetContributionAuthorList(query);
         if (list == null || list.Count == 0)
             return null;
         return list.Where(p => !string.IsNullOrWhiteSpace(p.Email))
             .ToDictionary(p => p.CAuthorID, q => q.Email);
     }
     else
     {
         ContributionAuthorQuery query = new ContributionAuthorQuery();
         //query.CAuthorIDs = userList.Distinct().ToArray();
         query.CAuthorID = userList[0];
         query.JournalID = JournalID;
         query.PageSize = userList.Count;
         query.CurrentPage = 1;
         ContributionFacadeAPIService service = new ContributionFacadeAPIService();
         var list = service.GetContributionAuthorList(query);
         if (list == null || list.Count == 0)
             return null;
         return list.Where(p => !string.IsNullOrWhiteSpace(p.Mobile))
             .ToDictionary(p => p.CAuthorID, q => q.Mobile);
     }
 }
 /// <summary>
 /// 获取稿件作者分页数据
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public Pager<ContributionAuthorEntity> GetContributionAuthorPageList(ContributionAuthorQuery query)
 {
     return ContributionInfoBusProvider.GetContributionAuthorPageList(query);
 }
 /// <summary>
 /// 获取稿件作者详细信息数据
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public IList<ContributionAuthorEntity> GetContributionAuthorList(ContributionAuthorQuery query)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     IList<ContributionAuthorEntity> list = clientHelper.Post<IList<ContributionAuthorEntity>, ContributionAuthorQuery>(GetAPIUrl(APIConstant.C_GETCONTRIBUTIONAUTHORLIST), query);
     return list;
 }
 /// <summary>
 /// 获取稿件作者
 /// </summary>
 /// <param name="queryContributionAuthor"></param>
 /// <returns></returns>
 public ContributionAuthorEntity GetContributionAuthorInfo(ContributionAuthorQuery queryContributionAuthor)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     ContributionAuthorEntity contributionAuthorEntity = clientHelper.PostAuth<ContributionAuthorEntity, ContributionAuthorQuery>(GetAPIUrl(APIConstant.C_GETCONTRIBUTIONAUTHORINFO), queryContributionAuthor);
     return contributionAuthorEntity;
 }