定时器修改
This commit is contained in:
zgf committed 2023-11-20 16:33:20 +08:00
1 parent ba8fd9e53b
commit 26d46cad00
6 files changed
+346 -198

No files matched your search

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using HHWMS.Web.Models;
using ICSharpCode.SharpZipLib.Core;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WalkingTec.Mvvm.Core;
@@ -26,6 +27,9 @@ namespace HHWMS.Web.Controllers
[ActionDescription("Sys.Search")]
public ActionResult Index()
{
var inv = _unitwork.Find<Inventory>(x => x.TaskStatus != InventoryTaskStatus.任务中)
.ToList()
.GroupBy(x => x.ContainerCode);
var vm = Wtm.CreateVM<ContainerListVM>();
return PartialView(vm);
}
@@ -56,6 +60,7 @@ namespace HHWMS.Web.Controllers
else
{
var materialQrList = new List<MaterialQr>();
var printList = new List<dynamic>();
for (int i = 0; i < num; i++)
{
var prefix = code.Split("@")[1].Substring(2);
@@ -69,9 +74,14 @@ namespace HHWMS.Web.Controllers
CreateTime = DateTime.Now,
CreateBy = Wtm.LoginUserInfo.ITCode
});
printList.Add(new
{
UniqueCode = uniqueCode,
Batch = material.Batch
});
}
_unitwork.BatchAdd(materialQrList.ToArray());
return JsonMore(materialQrList);
return JsonMore(printList);
}
}
}