Git.Storage.Web/Areas/Storage/Controllers/StoreAjaxController.cs

(开头部分) 8KB

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

using Git.Storage.Web.Lib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Git.Framework.DataTypes.ExtensionMethods;
using Git.Framework.Controller;
using Git.Framework.DataTypes;
using Git.Storage.Provider.Store;
using Git.Storage.Entity.Store;
using Git.Framework.ORM;
using Git.Framework.Json;
using Git.Storage.Provider;
using Git.Framework.Controller.Mvc;
using Git.Storage.Common;
using System.Data;
using Git.Storage.Common.Excel;
using Git.Storage.Web.Lib.Filter;
using Git.Storage.Provider.Base;
namespace Git.Storage.Web.Areas.Storage.Controllers
{
    public class StoreAjaxController : AjaxPage
    {
        public ActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 仓库管理列表页面
        /// </summary>
        /// <returns></returns>
        [LoginAjaxFilter]
        public ActionResult GetList()
        {
            int pageIndex = WebUtil.GetFormValue<int>("pageIndex", 1);
            int pageSize = WebUtil.GetFormValue<int>("pageSize", 10);
            string StorageName = WebUtil.GetFormValue<string>("StorageName", string.Empty);
            int StorageType = WebUtil.GetFormValue<int>("StorageType", -1);
            int IsForbid = WebUtil.GetFormValue<int>("IsForbid", -1);
            PageInfo pageInfo = new PageInfo() { PageIndex = pageIndex, PageSize = pageSize };
            StorageProvider provider = new StorageProvider();
            StorageEntity entity = new StorageEntity();
            if (IsForbid > -1)
            {
                entity.Where<StorageEntity>("IsForbid", ECondition.Eth, IsForbid);
            }
            if (StorageType > -1)
            {
                entity.Where<StorageEntity>("StorageType", ECondition.Eth, StorageType);
            }
            if (!StorageName.IsEmpty())
            {
                entity.Begin<StorageEntity>()
                    .Where<StorageEntity>("StorageName", ECondition.Like, "%" + StorageName + "%")
                    .Or<StorageEntity>("StorageNum", ECondition.Like, "%" + StorageName + "%")
                    .End<StorageEntity>()
                    ;
            }
后面还有 167 行代码,购买后查看完整代码

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

AI 解读

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

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