Esempio n. 1
0
        public void getMessagesList(UserBehaviorArticleReportView messageView)
        {
            var messageinfo = _messageService.Repository.Entities.FirstOrDefault(x => x.Id.ToString() == messageView.Content);

            if (messageinfo != null && messageinfo.IsDeleted == true)
            {
                messageView.NeedDelete = true;
            }
            else if (messageinfo != null)
            {
                messageView.ArticleTitle = messageinfo.Title;
                var app = CommonService.lstSysWeChatConfig.FirstOrDefault(y => y.WeixinAppId == messageinfo.AppId.ToString());
                if (app != null)
                {
                    messageView.AppName = app.AppName;
                }
            }
        }
Esempio n. 2
0
        public void getLEDList(UserBehaviorArticleReportView ledView)
        {
            var objContent = new LEDContent();

            objContent           = JsonHelper.FromJson <LEDContent>(ledView.Content);
            ledView.ArticleTitle = objContent.ArticleTitle;
            ledView.MenuKey      = objContent.MeunKey;
            var ledCategory = CommonService.lstCategory.FirstOrDefault(z => z.CategoryCode == objContent.MeunKey);

            if (ledCategory != null)
            {
                ledView.MenuName = ledCategory.CategoryName;
            }
            var app = CommonService.lstSysWeChatConfig.FirstOrDefault(y => y.WeixinAppId == ledView.AppId.ToString());

            if (app != null)
            {
                ledView.AppName = app.AppName;
            }
        }
Esempio n. 3
0
        public void getNewsList(UserBehaviorArticleReportView articleView)
        {
            var arinfo = _articleService.Repository.Entities.FirstOrDefault(x => x.Id.ToString() == articleView.Content);

            if (arinfo != null && arinfo.IsDeleted == true)
            {
                articleView.NeedDelete = true;
            }
            else if (arinfo != null)
            {
                articleView.MenuKey      = arinfo.ArticleCateSub;
                articleView.ArticleTitle = arinfo.ArticleTitle;
                var app = CommonService.lstSysWeChatConfig.FirstOrDefault(y => y.WeixinAppId == arinfo.AppId.ToString());
                if (app != null)
                {
                    articleView.AppName = app.AppName;
                }
                var category = CommonService.lstCategory.FirstOrDefault(a => a.CategoryCode == arinfo.ArticleCateSub);
                if (category != null)
                {
                    articleView.MenuName = category.CategoryName;
                }
            }
        }