2
schangxiang@126.com
2024-12-09 33c75f1b7dbc5ed934a91bea8eacd83dbb94b9a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using iWareSql.Orm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using iWareSql.DBModel;
using iWareModel;
 
namespace iWareSql.DataAccess
{
    public class Base_CodeItemsHandler
    {
        /// <summary>
        /// 是否启用按照入库时间先入先出
        /// </summary>
        /// <param name="edm"></param>
        /// <returns></returns>
        public static MessageModel<bool> IsOrderByInStoreTimeForOut(DbModel edm)
        {
            var dictName = "是否启用按照入库时间先入先出";
            var codeItem = edm.Base_CodeItems.Where(x => x.code == dictName).FirstOrDefault();
            if (codeItem == null)
            {
                //return MessageModel<bool>.Fail($"数据字典[{dictName}]没有设置!");
                throw new Exception($"数据字典[{dictName}]没有设置!");
            }
            var isValidate1015ScanValue = codeItem.name == "是" ? true : false;
            return MessageModel<bool>.Success("成功", isValidate1015ScanValue);
        }
    }
}