/// <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); }
public IList <IssueSetEntity> GetIssueSetList(IssueSetQuery query) { IIssueService service = ServiceContainer.Instance.Container.Resolve <IIssueService>(); IList <IssueSetEntity> list = service.GetIssueSetList(query); return(list); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
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); }
public Pager <IssueSetEntity> GetIssueSetPageList(IssueSetQuery query) { IIssueService service = ServiceContainer.Instance.Container.Resolve <IIssueService>(); Pager <IssueSetEntity> pager = service.GetIssueSetPageList(query); return(pager); }
public IssueSiteEntity GetCurIssueInfo(IssueSetQuery query) { IIssueService service = ServiceContainer.Instance.Container.Resolve <IIssueService>(); IssueSiteEntity issueEntity = service.GetCurIssueInfo(query); return(issueEntity); }
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 })); }
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 })); }
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 })); }
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); }
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); }
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()); }
public ExecResult DelIssueSet(IssueSetQuery query) { IIssueService service = ServiceContainer.Instance.Container.Resolve <IIssueService>(); return(service.DelIssueSet(query.IssueSetIDs)); }
/// <summary> /// 获取当前期刊最新的年、卷、期、当期封面图片 /// </summary> /// <param name="query"></param> /// <returns></returns> public IssueSiteEntity GetCurIssueInfo(IssueSetQuery query) { return(IssueDataAccess.Instance.GetCurIssueInfo(query)); }
/// <summary> /// 获取期设置数据 /// </summary> /// <param name="query"></param> /// <returns></returns> public IList <IssueSetEntity> GetIssueSetList(IssueSetQuery query) { return(IssueDataAccess.Instance.GetIssueSetList(query)); }
/// <summary> /// 获取期设置分页数据 /// </summary> /// <param name="query"></param> /// <returns></returns> public Pager <IssueSetEntity> GetIssueSetPageList(IssueSetQuery query) { return(IssueBusProvider.GetIssueSetPageList(query)); }
/// <summary> /// 获取当前期刊最新的年、卷、期、当期封面图片 /// </summary> /// <param name="query"></param> /// <returns></returns> public IssueSiteEntity GetCurIssueInfo(IssueSetQuery query) { return(IssueBusProvider.GetCurIssueInfo(query)); }
/// <summary> /// 获取期设置数据 /// </summary> /// <param name="query"></param> /// <returns></returns> public IList <IssueSetEntity> GetIssueSetList(IssueSetQuery query) { return(IssueBusProvider.GetIssueSetList(query)); }