src/KopSoftWms/Controllers/StockOutController.cs

(开头部分) 10KB

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

using IServices;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using YL.Core.Dto;
using YL.Core.Entity;
using YL.Core.Entity.Fluent.Validation;
using YL.NetCore.Attributes;
using YL.NetCore.NetCoreApp;
using YL.Utils.Extensions;
using YL.Utils.Pub;
using YL.Utils.Table;

namespace KopSoftWms.Controllers
{
    public class StockOutController : BaseController
    {
        private readonly ISys_dictServices _dictServices;
        private readonly IWms_CustomerServices _customerServices;
        private readonly IWms_stockoutServices _stockoutServices;
        private readonly ISys_serialnumServices _serialnumServices;
        private readonly IWms_stockoutdetailServices _stockoutdetailServices;
        private readonly IWms_inventoryServices _inventoryServices;
        private readonly SqlSugarClient _client;

        public StockOutController(
            ISys_dictServices dictServices,
            IWms_CustomerServices customerServices,
            IWms_stockoutServices stockoutServices,
            ISys_serialnumServices serialnumServices,
            IWms_stockoutdetailServices stockoutdetailServices,
            IWms_inventoryServices inventoryServices,
            SqlSugarClient client
            )
        {
            _dictServices = dictServices;
            _customerServices = customerServices;
            _stockoutServices = stockoutServices;
            _serialnumServices = serialnumServices;
            _stockoutdetailServices = stockoutdetailServices;
            _inventoryServices = inventoryServices;
            _client = client;
        }

        [HttpGet]
        [CheckMenu]
        public IActionResult Index()
        {
            var list = _dictServices.Queryable().Where(c => c.IsDel == 1 && c.DictType == PubDictType.stockout.ToInt32().ToString()).ToList();
            var stockInStatus = EnumExt.ToKVListLinq<StockInStatus>();
            ViewBag.StockInType = list;
            ViewBag.StockInStatus = stockInStatus;
            return View();
        }

        [HttpGet]
        public IActionResult Search(string text)
        {
            var bootstrap = new Bootstrap.BootstrapParams
            {
后面还有 215 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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