QiFeng.ZWY.MagWeb/Controllers/ShoppingMallController.cs

(开头部分) 46KB

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

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

namespace QiFeng.LMSD.MagWeb.Controllers
{
    public class ShoppingMallController : BaseController
    {
        private readonly CommodityBll commodityBll = new CommodityBll();
        private readonly CommodityPictureBll commodityPictureBll = new CommodityPictureBll();
        private readonly string ImgFileSitePath = ConfigurationManager.AppSettings["ImgFileSitePath"];
        private readonly string _imgFileUploadPath = ConfigurationManager.AppSettings["ImgFileUploadPath"];
        private readonly CommLibraryBll commLibraryBll = new CommLibraryBll();
        private readonly CommPromotionBll commPromotionBll = new CommPromotionBll();
        public readonly ShoppingCartBll shoppingCartBll = new ShoppingCartBll();


        private static List<SelectListItem> selectListItem_CommType = (from c in EnumUtil.GetEnumDescriptions(typeof(CommType))
                                                                       select new SelectListItem()
                                                                       {
                                                                           Text = c.Value,
                                                                           Value = c.Key
                                                                       }).ToList();


        #region 商品管理
        /// <summary>
        /// 商品列表
        /// </summary>
        /// <returns></returns>
        [PermissionFilter]
        public ActionResult CommodityList()
        {
            ViewData["typeList"] = new SelectList(selectListItem_CommType, "Value", "Text");
            return View();
        }
        public JsonResult GetList(int draw, int start, int length, string commodityType, string commodityName)
        {
            int order;
            int.TryParse(Request["order[0][column]"], out order);
            var direction = Request["order[0][dir]"];
            var orderByColumns = new[] { "CommName", "TypeName", "strIsTicket", "UnitPrice", "Postage", "Inventory", "strIsRecommend", "strIsSupportIntegral", "IntegralNumber", "IntegralMoney", "IntegralPostage", "IntegralExchangeNum" };
            var search = Request["search[value]"];
            var pageIndex = start / length + 1;

            var theList = commodityBll.GetListByPage(draw, pageIndex, length, SqlSafe(search), orderByColumns[order] + " " + direction, commodityType, commodityName);
            if (theList != null)
            {
                var allowedModules = McModuleList;
后面还有 1175 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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