schangxiang@126.com
2025-09-10 3d43ffa3152110b7823f9fa6320c08a6ae02358a
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wcftest.orm;
 
namespace wcftest.BussinessExtension.Handle
{
    //注释了,这个表不用了,改用表Base_Equipment 【EditBy shaocx,2022-03-19】
    //public class FoldingPlateMachineHandler
    //{
    //    /// <summary>
    //    /// 验证叠盘机是否已满
    //    /// </summary>
    //    /// <param name="mod"></param>
    //    /// <param name="plateType"></param>
    //    /// <param name="fpMachine"></param>
    //    /// <returns></returns>
    //    public static bool FoldingPlateMachine_IsFull(dbModel mod, int plateType, ref Wms_FoldingPlateMachine fpMachine)
    //    {
    //        try
    //        {
    //            fpMachine = mod.Wms_FoldingPlateMachine.Where(x => x.PlateType == plateType).FirstOrDefault();
    //            if (fpMachine != null)
    //            {
    //                if (Convert.ToInt32(fpMachine.CurQuantity) >= Convert.ToInt32(fpMachine.FullQuantity))
    //                {//说明已经是满状态了
    //                    return true;
    //                }
    //            }
    //        }
    //        catch (Exception)
    //        {
 
    //        }
    //        return false;
    //    }
 
    //    /// <summary>
    //    /// 更新数量为0
    //    /// </summary>
    //    /// <param name="mod"></param>
    //    /// <param name="plateType"></param>
    //    public static void FoldingPlateMachine_UpdateCurQuantityZero(dbModel mod, int plateType)
    //    {
    //        try
    //        {
    //            var fpMachine = mod.Wms_FoldingPlateMachine.Where(x => x.PlateType == plateType).FirstOrDefault();
    //            if (fpMachine != null)
    //            {
    //                fpMachine.CurQuantity = 0;//更新为0
    //                fpMachine.LastModifier = "调度";
    //                fpMachine.LastModifyTime = DateTime.Now;
    //                fpMachine.Remark = "叠盘机已空,数量改为0";
    //            }
    //        }
    //        catch (Exception)
    //        {
 
    //        }
    //    }
    //}
}