Exemple #1
0
        /// <summary>
        /// 获取期设置分页数据
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Pager <IssueSetEntity> GetIssueSetPageList(IssueSetQuery query)
        {
            HttpClientHelper       clientHelper = new HttpClientHelper();
            Pager <IssueSetEntity> pager        = clientHelper.Post <Pager <IssueSetEntity>, IssueSetQuery>(GetAPIUrl(APIConstant.ISSUESET_GETPAGELIST), query);

            return(pager);
        }
Exemple #2
0
        public IList <IssueSetEntity> GetIssueSetList(IssueSetQuery query)
        {
            IIssueService          service = ServiceContainer.Instance.Container.Resolve <IIssueService>();
            IList <IssueSetEntity> list    = service.GetIssueSetList(query);

            return(list);
        }
Exemple #3
0
        /// <summary>
        /// 删除期设置
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public ExecResult DelIssueSet(IssueSetQuery query)
        {
            HttpClientHelper clientHelper = new HttpClientHelper();
            ExecResult       result       = clientHelper.Post <ExecResult, IssueSetQuery>(GetAPIUrl(APIConstant.ISSUESET_DEL), query);

            return(result);
        }
Exemple #4
0
        /// <summary>
        /// 获取当前期刊最新的年、卷、期、当期封面图片
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public IssueSiteEntity GetCurIssueInfo(IssueSetQuery query)
        {
            HttpClientHelper clientHelper = new HttpClientHelper();
            IssueSiteEntity  model        = clientHelper.Post <IssueSiteEntity, IssueSetQuery>(GetAPIUrl(APIConstant.ISSUE_GETCURISSUEINFO), query);

            return(model);
        }
Exemple #5
0
        /// <summary>
        /// 获取期设置实体
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public IssueSetEntity GetIssueSetModel(IssueSetQuery query)
        {
            HttpClientHelper clientHelper = new HttpClientHelper();
            IssueSetEntity   model        = clientHelper.Post <IssueSetEntity, IssueSetQuery>(GetAPIUrl(APIConstant.ISSUESET_GETMODEL), query);

            return(model);
        }
Exemple #6
0
        /// <summary>
        /// 获取期设置列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public IList <IssueSetEntity> GetIssueSetList(IssueSetQuery query)
        {
            HttpClientHelper       clientHelper = new HttpClientHelper();
            IList <IssueSetEntity> list         = clientHelper.Post <IList <IssueSetEntity>, IssueSetQuery>(GetAPIUrl(APIConstant.ISSUESET_GETLIST), query);

            return(list);
        }
Exemple #7
0
        public IssueSetEntity GetIssueSetModel(IssueSetQuery query)
        {
            IIssueService  service = ServiceContainer.Instance.Container.Resolve <IIssueService>();
            IssueSetEntity model   = null;

            if (query.IssueSetID == 0)
            {
                model = service.GetMaxIssueSet(query.JournalID);
            }
            else
            {
                model = service.GetIssueSet(query.IssueSetID);
            }
            if (model != null)
            {
                Pager <IssueSetEntity> currentEntity = service.GetIssueSetPageList(query);
                if (currentEntity != null && currentEntity.ItemList != null && currentEntity.ItemList.Count > 0)
                {
                    IList <IssueSetEntity> list   = currentEntity.ItemList;
                    IssueSetEntity         single = list.Where(o => o.Issue == model.Issue).SingleOrDefault();
                    model.PrintExpenses = single.PrintExpenses;
                }
            }
            return(model);
        }
Exemple #8
0
        public Pager <IssueSetEntity> GetIssueSetPageList(IssueSetQuery query)
        {
            IIssueService          service = ServiceContainer.Instance.Container.Resolve <IIssueService>();
            Pager <IssueSetEntity> pager   = service.GetIssueSetPageList(query);

            return(pager);
        }
Exemple #9
0
        public IssueSiteEntity GetCurIssueInfo(IssueSetQuery query)
        {
            IIssueService   service     = ServiceContainer.Instance.Container.Resolve <IIssueService>();
            IssueSiteEntity issueEntity = service.GetCurIssueInfo(query);

            return(issueEntity);
        }
Exemple #10
0
        public ActionResult GetIssueSetList(IssueSetQuery query)
        {
            IIssueFacadeService service = ServiceContainer.Instance.Container.Resolve <IIssueFacadeService>();

            query.JournalID = CurAuthor.JournalID;
            IList <IssueSetEntity> list = service.GetIssueSetList(query);

            return(Json(new { list }));
        }
Exemple #11
0
        public ActionResult DelIssueSet(Int64[] IssueSetIDs)
        {
            IIssueFacadeService service = ServiceContainer.Instance.Container.Resolve <IIssueFacadeService>();
            IssueSetQuery       query   = new IssueSetQuery();

            query.JournalID   = CurAuthor.JournalID;
            query.IssueSetIDs = IssueSetIDs;
            ExecResult result = service.DelIssueSet(query);

            return(Json(new { result = result.result, msg = result.msg }));
        }
Exemple #12
0
        public ActionResult GetIssueSetPageList(IssueSetQuery query)
        {
            IIssueFacadeService service = ServiceContainer.Instance.Container.Resolve <IIssueFacadeService>();

            query.JournalID   = CurAuthor.JournalID;
            query.CurrentPage = Convert.ToInt32(Request.Params["page"]);
            query.PageSize    = Convert.ToInt32(Request.Params["pagesize"]);
            Pager <IssueSetEntity> pager = service.GetIssueSetPageList(query);

            return(Json(new { Rows = pager.ItemList, Total = pager.TotalRecords }));
        }
Exemple #13
0
        public IssueSiteEntity GetCurIssueInfo()
        {
            IIssueFacadeService service = ServiceContainer.Instance.Container.Resolve <IIssueFacadeService>();
            IssueSetQuery       query   = new IssueSetQuery();

            query.JournalID = CurAuthor.JournalID;
            IssueSiteEntity issueInfoEntity = service.GetCurIssueInfo(query);

            if (issueInfoEntity == null)
            {
                issueInfoEntity = new IssueSiteEntity();
            }
            return(issueInfoEntity);
        }
Exemple #14
0
        private IssueSetEntity GetIssueSetModel(Int64 IssueSetID, int year)
        {
            IssueSetQuery query = new IssueSetQuery();

            query.JournalID  = CurAuthor.JournalID;
            query.IssueSetID = IssueSetID;
            query.Year       = year;
            IIssueFacadeService service = ServiceContainer.Instance.Container.Resolve <IIssueFacadeService>();
            IssueSetEntity      model   = service.GetIssueSetModel(query);

            if (model == null)
            {
                model = new IssueSetEntity();
            }
            return(model);
        }
Exemple #15
0
        public ActionResult FinanceOutAccount()
        {
            IIssueFacadeService service = ServiceContainer.Instance.Container.Resolve <IIssueFacadeService>();
            //获取所有年
            YearVolumeQuery query = new YearVolumeQuery();

            query.JournalID = JournalID;
            IList <YearVolumeEntity> listYearVolume = service.GetYearVolumeList(query);
            //获取所有期
            IssueSetQuery issueSetQuery = new IssueSetQuery();

            issueSetQuery.JournalID = JournalID;
            IList <IssueSetEntity> listIssue = service.GetIssueSetList(issueSetQuery);

            ViewBag.listYearVolume = listYearVolume;
            ViewBag.listIssue      = listIssue;

            return(View());
        }
Exemple #16
0
        public ExecResult DelIssueSet(IssueSetQuery query)
        {
            IIssueService service = ServiceContainer.Instance.Container.Resolve <IIssueService>();

            return(service.DelIssueSet(query.IssueSetIDs));
        }
Exemple #17
0
 /// <summary>
 /// 获取当前期刊最新的年、卷、期、当期封面图片
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public IssueSiteEntity GetCurIssueInfo(IssueSetQuery query)
 {
     return(IssueDataAccess.Instance.GetCurIssueInfo(query));
 }
Exemple #18
0
 /// <summary>
 /// 获取期设置数据
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public IList <IssueSetEntity> GetIssueSetList(IssueSetQuery query)
 {
     return(IssueDataAccess.Instance.GetIssueSetList(query));
 }
Exemple #19
0
 /// <summary>
 /// 获取期设置分页数据
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public Pager <IssueSetEntity> GetIssueSetPageList(IssueSetQuery query)
 {
     return(IssueBusProvider.GetIssueSetPageList(query));
 }
Exemple #20
0
 /// <summary>
 /// 获取当前期刊最新的年、卷、期、当期封面图片
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public IssueSiteEntity GetCurIssueInfo(IssueSetQuery query)
 {
     return(IssueBusProvider.GetCurIssueInfo(query));
 }
Exemple #21
0
 /// <summary>
 /// 获取期设置数据
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public IList <IssueSetEntity> GetIssueSetList(IssueSetQuery query)
 {
     return(IssueBusProvider.GetIssueSetList(query));
 }