/// <summary>
        /// 获取版面费报表分页数据
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Pager <FinanceContributeEntity> GetFinancePageFeeReportPageList(FinanceContributeQuery query)
        {
            Pager <FinanceContributeEntity> pager = FinanceContributeBusProvider.GetFinancePageFeeReportPageList(query);

            if (pager == null)
            {
                return(pager);
            }
            IList <FinanceContributeEntity> list = pager.ItemList;

            if (list == null || list.Count == 0)
            {
                return(pager);
            }
            AuthorInfoService service = new AuthorInfoService();
            AuthorInfoQuery   aQuery  = new AuthorInfoQuery();

            aQuery.JournalID = query.JournalID;
            var dict = service.AuthorInfoBusProvider.GetAuthorDict(aQuery);

            foreach (var mode in list)
            {
                mode.InUserName = dict.GetValue(mode.InUser, mode.InUser.ToString());
            }
            pager.ItemList = list;
            return(pager);
        }
        private IList <FlowStatusEntity> GetFlowStatusList(AuthorInfoQuery author)
        {
            JsonExecResult <FlowStatusEntity> jsonResult = new JsonExecResult <FlowStatusEntity>();
            IFlowFacadeService service = ServiceContainer.Instance.Container.Resolve <IFlowFacadeService>();
            FlowStatusQuery    query   = new FlowStatusQuery();

            query.JournalID   = JournalID;
            query.CurAuthorID = (long)author.AuthorID;
            query.RoleID      = (long)CurAuthor.RoleID;
            query.IsHandled   = 2;
            try
            {
                jsonResult.ItemList = service.GetHaveRightFlowStatus(query);
                if (jsonResult.ItemList != null)
                {
                    jsonResult.ItemList = jsonResult.ItemList.Where(p => p.ContributionCount > 0).ToList <FlowStatusEntity>();
                }
                jsonResult.result = EnumJsonResult.success.ToString();
            }
            catch (Exception ex)
            {
                jsonResult.result = EnumJsonResult.error.ToString();
                jsonResult.msg    = "获取当前人可以处理的稿件状态出现异常:" + ex.Message;
            }
            return(jsonResult.ItemList);
        }
Exemple #3
0
 /// <summary>
 /// 获取所有符合查询条件的数据
 /// </summary>
 /// <param name="authorInfoQuery">AuthorInfoQuery查询实体对象</param>
 /// <returns>List<AuthorInfoEntity></returns>
 public List <AuthorInfoEntity> GetAuthorInfoList(AuthorInfoQuery authorInfoQuery)
 {
     try
     {
         return(AuthorInfoBusProvider.GetAuthorInfoList(authorInfoQuery));
     }
     catch (Exception ex)
     {
         Log.LogProvider.Instance.Error("查询作者信息异常:" + ex.Message);
         throw ex;
     }
 }
Exemple #4
0
        /// <summary>
        /// 组装数据
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        private IList <SiteContentEntity> GetSiteContentList(IList <SiteContentEntity> list, SiteContentQuery siteContentQuery)
        {
            if (list == null || list.Count == 0)
            {
                return(list);
            }
            AuthorInfoService service = new AuthorInfoService();
            AuthorInfoQuery   query   = new AuthorInfoQuery();

            query.JournalID = siteContentQuery.JournalID;
            var dict = service.AuthorInfoBusProvider.GetAuthorDict(query);

            foreach (var mode in list)
            {
                mode.InAuthorName = dict.GetValue(mode.InAuthor, mode.InAuthor.ToString());
            }
            return(list);
        }
Exemple #5
0
        /// <summary>
        /// 组装数据
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        private List <DictValueEntity> GetDictValueList(List <DictValueEntity> list, DictValueQuery dictValueQuery)
        {
            if (list == null || list.Count == 0)
            {
                return(list);
            }
            AuthorInfoService service = new AuthorInfoService();
            AuthorInfoQuery   query   = new AuthorInfoQuery();

            query.JournalID = dictValueQuery.JournalID;
            var dict = service.AuthorInfoBusProvider.GetAuthorDict(query);

            foreach (var mode in list)
            {
                mode.InUserName = dict.GetValue(mode.InUserID, mode.InUserID.ToString());
            }
            return(list);
        }
Exemple #6
0
        public ActionResult GetContributionList(long SiteID, string EMail)
        {
            string contributions = string.Empty;

            //根据邮箱获取作者实体-得到作者ID
            IAuthorFacadeService authorService = ServiceContainer.Instance.Container.Resolve <IAuthorFacadeService>();
            AuthorInfoQuery      query         = new AuthorInfoQuery();

            query.LoginName = EMail;
            query.JournalID = SiteID;
            query.GroupID   = (int)EnumMemberGroup.Author;
            AuthorInfoEntity authorInfoEntity = authorService.GetAuthorInfo(query);

            //获取作者最新状态的稿件列表
            IFlowFacadeService flowService = ServiceContainer.Instance.Container.Resolve <IFlowFacadeService>();
            CirculationEntity  cirEntity   = new CirculationEntity();

            cirEntity.JournalID   = SiteID;
            cirEntity.CurAuthorID = authorInfoEntity.AuthorID;
            //int pageIndex = TypeParse.ToInt(Request.Params["page"], 1);
            cirEntity.CurrentPage = 1;
            cirEntity.PageSize    = TypeParse.ToInt(Request.Params["pagesize"], 100);
            Pager <FlowContribution> pager = flowService.GetAuthorContributionList(cirEntity);

            if (pager.ItemList.Count == 0)
            {
                return(base.Json(new { code = "1000002", msg = "没有查询到符合条件的数据。" }, JsonRequestBehavior.AllowGet));//没有稿件数据
            }
            else if (pager.ItemList.Count == 1)
            {
                return(base.Json(new { code = "1000003", msg = "查询到1条符合条件的数据。" }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                contributions += "[";
                for (int i = 0; i < pager.ItemList.Count; i++)
                {
                    contributions += "{\"Title\":\"" + pager.ItemList[i].Title + "\",\"AuthorName\":\"" + pager.ItemList[i].AuthorName + "\",\"AuditStatus\":\"" + pager.ItemList[i].AuditStatus + "\",\"AddDate\":\"" + pager.ItemList[i].AddDate + "\"},";
                }
                contributions.Remove(contributions.LastIndexOf(','), 1);
                contributions += "]";
                return(base.Json(new { code = "1000004", msg = "查询到" + pager.ItemList.Count + "条符合条件的数据。", Contributions = contributions }, JsonRequestBehavior.AllowGet));
            }
        }
Exemple #7
0
        /// <summary>
        /// 组装数据
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        private List <SiteMessageEntity> GetMsgList(List <SiteMessageEntity> list, SiteMessageQuery sQuery)
        {
            if (list == null || list.Count == 0)
            {
                return(list);
            }
            AuthorInfoService service = new AuthorInfoService();
            AuthorInfoQuery   query   = new AuthorInfoQuery();

            query.JournalID = sQuery.JournalID;
            var dict = service.AuthorInfoBusProvider.GetAuthorDict(query);

            foreach (var model in list)
            {
                model.SendUserName  = dict.GetValue(model.SendUser, model.SendUser.ToString());
                model.ReciverName   = dict.GetValue(model.ReciverID, model.ReciverID.ToString());
                model.SimpleContent = TextHelper.GetSubHtmlText(model.Content, 100);
            }
            return(list);
        }
        /// <summary>
        /// 获取财务出款通知分页列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Pager <FinanceAccountEntity> GetFinanceOutAccountPageList(ContributionInfoQuery query)
        {
            Pager <FinanceAccountEntity> pager = FinanceContributeBusProvider.GetFinanceOutAccountPageList(query);

            if (pager == null)
            {
                return(pager);
            }
            IList <FinanceAccountEntity> list = pager.ItemList;

            if (list == null || list.Count == 0)
            {
                return(pager);
            }
            AuthorInfoService service = new AuthorInfoService();
            AuthorInfoQuery   aQuery  = new AuthorInfoQuery();

            aQuery.JournalID = query.JournalID;
            pager.ItemList   = list;
            return(pager);
        }
Exemple #9
0
        /// <summary>
        /// 组装数据
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        private List <MessageRecodeEntity> GetMsgList(List <MessageRecodeEntity> list, MessageRecodeQuery mQuery)
        {
            if (list == null || list.Count == 0)
            {
                return(list);
            }
            AuthorInfoService service = new AuthorInfoService();
            AuthorInfoEntity  entity  = new AuthorInfoEntity();
            AuthorInfoQuery   query   = new AuthorInfoQuery();

            query.JournalID = mQuery.JournalID;
            var dict = service.AuthorInfoBusProvider.GetAuthorDict(query);


            //获取稿件作者数据字典
            ContributionInfoService cservice = new ContributionInfoService();
            ContributionInfoEntity  centity  = new ContributionInfoEntity();
            ContributionInfoQuery   cquery   = new ContributionInfoQuery();

            cquery.JournalID = mQuery.JournalID;
            cquery.CID       = (long)mQuery.CID;
            var cdict = cservice.GetContributionAuthorDict(cquery);

            centity = cservice.GetContributionInfo(cquery);

            foreach (var mode in list)
            {
                mode.SendUserName = dict.GetValue(mode.SendUser, mode.SendUser.ToString());
                entity            = service.GetAuthorInfo(mode.ReciveUser);
                if (entity != null)
                {
                    mode.ReciveUserName = dict.GetValue(mode.ReciveUser, mode.ReciveUser.ToString());
                }
                else
                {
                    mode.ReciveUserName = cdict.GetValue(mode.ReciveUser, mode.ReciveUser.ToString());
                }
            }
            return(list);
        }
Exemple #10
0
        public JsonResult GetNewEditorWorkloadList()
        {
            IAuthorFacadeService service = ServiceContainer.Instance.Container.Resolve <IAuthorFacadeService>();
            AuthorInfoQuery      query   = new AuthorInfoQuery();

            query.JournalID = CurAuthor.JournalID;
            query.GroupID   = (int)EnumMemberGroup.Editor;
            query.RoleID    = 0;
            IList <AuthorInfoEntity> pager = service.GetAuthorListByRole(query);
            Dictionary <string, IList <FlowStatusEntity> > dic = new Dictionary <string, IList <FlowStatusEntity> >();

            if (pager != null && pager.Count > 0)
            {
                foreach (var item in pager)
                {
                    AuthorInfoQuery currentEntity = new AuthorInfoQuery();
                    currentEntity.AuthorID = item.AuthorID;
                    IList <FlowStatusEntity> list = GetFlowStatusList(currentEntity);
                    dic.Add(item.RealName + "-" + item.AuthorID + "-" + item.RoleID + "-" + item.RoleName, list);
                }
            }
            return(Json(dic));
        }
Exemple #11
0
 /// <summary>
 /// 分页获取符合查询条件的数据
 /// </summary>
 /// <param name="authorInfoQuery">AuthorInfoQuery查询实体对象</param>
 /// <returns>Pager<AuthorInfoEntity></returns>
 public Pager <AuthorInfoEntity> GetAuthorInfoPageList(AuthorInfoQuery authorInfoQuery)
 {
     return(AuthorInfoDataAccess.Instance.GetAuthorInfoPageList(authorInfoQuery));
 }
Exemple #12
0
 /// <summary>
 /// 获取专家列表
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public Pager <AuthorInfoEntity> GetExpertPageList(AuthorInfoQuery query)
 {
     return(AuthorInfoDataAccess.Instance.GetExpertPageList(query));
 }
Exemple #13
0
 /// <summary>
 /// 获取作者信息
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public AuthorInfoEntity GetAuthorInfo(AuthorInfoQuery query)
 {
     return(AuthorInfoBusProvider.GetAuthorInfo(query));
 }
Exemple #14
0
 /// <summary>
 /// 获取编辑部成员信息
 /// </summary>
 /// <param name="authorID"></param>
 /// <returns></returns>
 public AuthorInfoEntity GetMemberInfo(AuthorInfoQuery authorQuery)
 {
     return(AuthorInfoBusProvider.GetMemberInfo(authorQuery));
 }
Exemple #15
0
 /// <summary>
 /// 获取专家列表
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public Pager <AuthorInfoEntity> GetExpertPageList(AuthorInfoQuery query)
 {
     return(AuthorInfoBusProvider.GetExpertPageList(query));
 }
Exemple #16
0
 /// <summary>
 /// 批量删除
 /// </summary>
 /// <param name="authorID">作者信息</param>
 /// <returns>true:删除成功 false:删除失败</returns>
 public bool BatchDeleteAuthorInfo(AuthorInfoQuery authorQuery)
 {
     return(AuthorInfoBusProvider.BatchDeleteAuthorInfo(authorQuery));
 }
Exemple #17
0
 /// <summary>
 /// 分页获取符合查询条件的数据
 /// </summary>
 /// <param name="authorInfoQuery">AuthorInfoQuery查询实体对象</param>
 /// <returns>Pager<AuthorInfoEntity></returns>
 public Pager <AuthorInfoEntity> GetAuthorInfoPageList(AuthorInfoQuery authorInfoQuery)
 {
     return(AuthorInfoBusProvider.GetAuthorInfoPageList(authorInfoQuery));
 }
Exemple #18
0
 /// <summary>
 /// 批量删除
 /// </summary>
 /// <param name="authorID">作者信息</param>
 /// <returns>true:删除成功 false:删除失败</returns>
 public bool BatchDeleteAuthorInfo(AuthorInfoQuery authorQuery)
 {
     return(AuthorInfoDataAccess.Instance.BatchDeleteAuthorInfo(authorQuery));
 }
Exemple #19
0
 /// <summary>
 /// 获取作者信息
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public AuthorInfoEntity GetAuthorInfo(AuthorInfoQuery query)
 {
     return(AuthorInfoDataAccess.Instance.GetAuthorInfo(query));
 }
Exemple #20
0
 /// <summary>
 /// 获取编辑部成员信息
 /// </summary>
 /// <param name="authorID"></param>
 /// <returns></returns>
 public AuthorInfoEntity GetMemberInfo(AuthorInfoQuery authorQuery)
 {
     return(AuthorInfoDataAccess.Instance.GetMemberInfo(authorQuery));
 }
Exemple #21
0
 /// <summary>
 /// 根据角色获取作者列表
 /// </summary>
 /// <param name="authorInfoQuery">AuthorInfoQuery查询实体对象</param>
 /// <returns>List<AuthorInfoEntity></returns>
 public List <AuthorInfoEntity> GetAuthorInfoListByRole(AuthorInfoQuery authorInfoQuery)
 {
     return(AuthorInfoDataAccess.Instance.GetAuthorInfoListByRole(authorInfoQuery));
 }