Git.Storage.Provider/Bad/BadProvider.cs

(开头部分) 5KB

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

/*******************************************************************************
 * Copyright (C) Git Corporation. All rights reserved.
 *
 * Author: 微软
 * Create Date: 2017-01-01 14:38:43
 *
 * Description: Git.Framework
 * www.baidu.com
 * .NET强大仓储管理系统:http://yun.gitwms.com/
 * .NET强大仓储管理系统:http://www.gitwms.com/
 * 
 * Revision History:
 * Date         Author               Description
 * 2013-09-01 15:10:06       微软
*********************************************************************************/


using Git.Framework.Log;
using Git.Framework.ORM;
using Git.Storage.Entity.Bad;
using Git.Storage.Entity.Store;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Transactions;
using Git.Framework.DataTypes.ExtensionMethods;
using Git.Framework.DataTypes;
using Git.Storage.Common;

namespace Git.Storage.Provider.Bad
{
    public partial class BadProvider : DataFactory
    {
        private Log log = Log.Instance(typeof(BadProvider));
        public BadProvider() { }

        /// <summary>
        /// 获得库存信息
        /// </summary>
        /// <param name="barCode"></param>
        /// <returns></returns>
        public List<LocalProductEntity> GetList(string barCode)
        {
            LocalProductEntity entity = new LocalProductEntity();
            entity.IncludeAll();
            entity.OrderBy(a => a.ID, EOrderBy.DESC);
            entity.Where(a => a.BarCode == barCode).Or(a => a.ProductNum == barCode);

            LocationEntity location = new LocationEntity();
            entity.Left<LocationEntity>(location, new Params<string, string>() { Item1 = "LocalNum", Item2 = "LocalNum" });
            location.Where(a => a.LocalType == (int)ELocalType.Normal);
            List<LocalProductEntity> listResult = this.LocalProduct.GetList(entity);
            return listResult;
        }

        /// <summary>
        /// 报损产品TOP10
        /// </summary>
        /// <param name="queryTime"></param>
后面还有 86 行代码,购买后查看完整代码

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

AI 解读

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

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