public Pager <ExpertApplyLogEntity> GetPageList(ExpertApplyLogQuery query)
        {
            IExpertApplyService          service = ServiceContainer.Instance.Container.Resolve <IExpertApplyService>();
            Pager <ExpertApplyLogEntity> pager   = service.GetExpertApplyInfoPageList(query);

            return(pager);
        }
        public ExecResult SubmitApply(ExpertApplyLogEntity expertApplyEntity)
        {
            ExecResult execResult = new ExecResult();

            try
            {
                IExpertApplyService expertApplyService = ServiceContainer.Instance.Container.Resolve <IExpertApplyService>();

                ExpertApplyLogQuery queryExpertApply = new ExpertApplyLogQuery();
                queryExpertApply.LoginName = expertApplyEntity.LoginName;
                queryExpertApply.JournalID = expertApplyEntity.JournalID;

                //验证是否提交过申请
                IList <ExpertApplyLogEntity> list = expertApplyService.GetExpertApplyInfoList(queryExpertApply);
                if (list != null && list.Count > 0)
                {
                    execResult.result = EnumJsonResult.failure.ToString();
                    execResult.msg    = "此邮箱提交过申请!请更换其他邮箱提交申请或联系编辑部。";
                }
                else//提交申请
                {
                    expertApplyService.SubmitApply(expertApplyEntity);
                    execResult.result = EnumJsonResult.success.ToString();
                    execResult.msg    = "申请提交成功,请等待编辑部审核。\r\n审核结果将会以邮件形式发送到您的邮箱。";
                }
            }
            catch (Exception ex)
            {
                execResult.result = EnumJsonResult.error.ToString();
                execResult.msg    = "提交申请失败:" + ex.Message;
                LogProvider.Instance.Error("提交申请出现异常:" + ex.Message);
            }
            return(execResult);
        }
        public ExpertApplyLogEntity GetModel(ExpertApplyLogQuery query)
        {
            IExpertApplyService  service = ServiceContainer.Instance.Container.Resolve <IExpertApplyService>();
            ExpertApplyLogEntity model   = service.GetExpertApplyInfo(query);

            return(model);
        }
        public IList <ExpertApplyLogEntity> GetList(ExpertApplyLogQuery query)
        {
            IExpertApplyService          service = ServiceContainer.Instance.Container.Resolve <IExpertApplyService>();
            IList <ExpertApplyLogEntity> list    = service.GetExpertApplyInfoList(query);

            return(list);
        }
Example #5
0
        /// <summary>
        /// 获取专家申请信息列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public IList <ExpertApplyLogEntity> GetExpertApplyInfoList(ExpertApplyLogQuery query)
        {
            HttpClientHelper             clientHelper        = new HttpClientHelper();
            IList <ExpertApplyLogEntity> listExpertApplyInfo = clientHelper.PostAuth <IList <ExpertApplyLogEntity>, ExpertApplyLogQuery>(GetAPIUrl(APIConstant.EXPERTAPPLY_GETLIST), query);

            return(listExpertApplyInfo);
        }
Example #6
0
        /// <summary>
        /// 获取专家申请分页数据
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Pager <ExpertApplyLogEntity> GetExpertApplyInfoPageList(ExpertApplyLogQuery query)
        {
            HttpClientHelper             clientHelper = new HttpClientHelper();
            Pager <ExpertApplyLogEntity> pager        = clientHelper.Post <Pager <ExpertApplyLogEntity>, ExpertApplyLogQuery>(GetAPIUrl(APIConstant.EXPERTAPPLY_GETPAGELIST), query);

            return(pager);
        }
Example #7
0
        /// <summary>
        /// 获取专家申请信息实体
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public ExpertApplyLogEntity GetExpertApplyInfo(ExpertApplyLogQuery query)
        {
            HttpClientHelper     clientHelper      = new HttpClientHelper();
            ExpertApplyLogEntity expertApplyEntity = clientHelper.PostAuth <ExpertApplyLogEntity, ExpertApplyLogQuery>(GetAPIUrl(APIConstant.EXPERTAPPLY_GETMODEL), query);

            return(expertApplyEntity);
        }
Example #8
0
 /// <summary>
 /// 分页获取符合查询条件的数据
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public Pager <ExpertApplyLogEntity> GetExpertApplyInfoPageList(ExpertApplyLogQuery query)
 {
     return(ExpertApplyDataAccess.Instance.GetExpertApplyInfoPageList(query));
 }
Example #9
0
 /// <summary>
 /// 获取一个实体对象
 /// </summary>
 /// <param name="query">专家申请信息</param>
 /// <returns>获取一个实体,如果数据不存在返回Null</returns>
 public ExpertApplyLogEntity GetExpertApplyInfo(ExpertApplyLogQuery query)
 {
     return(ExpertApplyDataAccess.Instance.GetExpertApplyInfo(query));
 }
Example #10
0
 /// <summary>
 /// 分页获取符合查询条件的数据
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public Pager <ExpertApplyLogEntity> GetExpertApplyInfoPageList(ExpertApplyLogQuery query)
 {
     return(ExpertApplyBusProvider.GetExpertApplyInfoPageList(query));
 }
Example #11
0
 /// <summary>
 /// 获取一个实体对象
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public ExpertApplyLogEntity GetExpertApplyInfo(ExpertApplyLogQuery query)
 {
     return(ExpertApplyBusProvider.GetExpertApplyInfo(query));
 }