修改点数

修改 新增明细限制
新增定时器 清除已完成单据
入库查找 先层 后列
This commit is contained in:
zgf committed 2023-11-29 17:36:19 +08:00
1 parent 54b51891a0
commit e7c558ecf9
5 files changed
+30 -14

No files matched your search

@@ -205,7 +205,10 @@ namespace HHWMS.Web
&& x.Type == LocationTypeEnum.盘料库位
&& (x.Status == LocationStatus.有货 || x.Status == LocationStatus.空容器)
&& x.Length == Length && !x.IsStop)
.OrderByDescending(x => x.Length - x.Width).FirstOrDefault();
.OrderByDescending(x => x.Length - x.Width)
.ThenBy(x => x.Layer)
.ThenByDescending(x => x.Line)
.FirstOrDefault();
if (Length == 23 && container == null && station.Row == 3)
{
station = _unitwork.Find<Location>(x => x.Type.Equals(LocationTypeEnum.堆垛机工位)
@@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using HHWMS.Web.Models;
using Quartz;
@@ -18,9 +19,16 @@ namespace HHWMS.Web
try
{
var _unitwork = new UnitWork(Wtm);
//var sql = $"DELETE FROM {this.Wtm.DC.GetTableName<PersistedGrant>()} WHERE Expiration<'{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")}'";
//this.Wtm.DC.RunSQL(sql);
Wtm.DoLog("清理过期的token", ActionLogTypesEnum.Job, "TestJob");
if (_unitwork.IsExit<ReceiptHeader>(x => x.FirstStatus == ReceiptStatusEnum.收完))
{
_unitwork.BatchDelete<ReceiptHeader>(x => x.FirstStatus == ReceiptStatusEnum.收完);
}
if (_unitwork.IsExit<ShipmentHeader>(x => x.FirstStatus == ShipStatusEnum.拣货完成))
{
_unitwork.BatchDelete<ShipmentHeader>(x => x.FirstStatus == ShipStatusEnum.拣货完成);
}
Wtm.DoLog("清理过期单据", ActionLogTypesEnum.Job, "TestJob");
#region 更新时间
var job = _unitwork.FindSingle<SysJob>(x => x.JobName == context.JobDetail.Key.Name);