QiFeng.ZWY.MagWeb/Controllers/ZwyInfoController.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using QiFeng.LMSD.Bll;
using QiFeng.LMSD.Model;
using QiFeng.LMSD.Model.EnumModel;
using QiFeng.LMSD.Utility.EnumTools;
using QiFeng.LMSD.Utility.Files;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace QiFeng.LMSD.MagWeb.Controllers
{
    public class LMSDInfoController : BaseController
    {
        private readonly LMSDInfoBll LMSDInfo = new LMSDInfoBll();
        private readonly McAccountsBll mcAccountsBll = new McAccountsBll();

        private readonly string ImgFileSitePath = ConfigurationManager.AppSettings["ImgFileSitePath"];
        private readonly string _imgFileUploadPath = ConfigurationManager.AppSettings["ImgFileUploadPath"];
        // GET: LMSDInfo
        public ActionResult Index()
        {
            var list = LMSDInfo.GetModelList();
            LMSDInfo model = null;
            if (list.Count > 0)
            {
                model = list[0];
            }
            var accountName = "";
            if (model.ReceiveMcAccountId > 0)
            {
                accountName = mcAccountsBll.GetModel(model.ReceiveMcAccountId).UserName;
            }
            ViewBag.AccountName = accountName;
            ViewBag.ImgFileSitePath = ImgFileSitePath;

            var types = Enum.GetNames(typeof(CommType));
            
            var commTypeList = (from c in types
                                select new SelectListItem()
                                {
                                    Value = ((Int32)((CommType)(Enum.Parse(typeof(CommType), c)))).ToString(),
                                    Text = ((CommType)(Enum.Parse(typeof(CommType), c))).GetDescription()
                                }).ToList();
            ViewBag.commTypes = commTypeList;

            return View(model);
        }

        [HttpPost]
        [ValidateInput(false)]
        public ActionResult Index(LMSDInfo model)
        {
            var accountName = "";
            if (model.ReceiveMcAccountId > 0)
            {
                accountName = mcAccountsBll.GetModel(model.ReceiveMcAccountId).UserName;
后面还有 161 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。