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)
|
// {
|
|
// }
|
// }
|
//}
|
}
|