打印修改,发布修改

This commit is contained in:
霍尔 2023-09-17 18:53:57 +08:00
parent 85b6d3a0ee
commit c494b7b1ef
6 changed files with 26 additions and 15 deletions

View File

@ -295,6 +295,10 @@ namespace HHWMS.Web
}
_unitwork.Update(task);
if (task.Status == TaskStatusEnum.完成)
{
_unitwork.Delete(task);
}
}
}

View File

@ -54,13 +54,20 @@ namespace HHWMS.Web.Controllers
}
else
{
var prefix = code.Split("@")[1].Substring(2);
var unique = _unitwork.GetSerialNumber(prefix, 8);
var uniqueCode = prefix + unique;
if (string.IsNullOrEmpty(material.UniqueCode))
{
var prefix = code.Split("@")[1].Substring(2);
var unique = _unitwork.GetSerialNumber(prefix, 8);
var uniqueCode = prefix + unique;
material.UniqueCode = uniqueCode;
return JsonMore(uniqueCode);
material.UniqueCode = uniqueCode;
_unitwork.Update(material);
return JsonMore(uniqueCode);
}
else
{
return JsonMore(material.UniqueCode);
}
}
}
}

View File

@ -30,7 +30,7 @@
{
"options": {
"left": 0,
"top": 0,
"top": 2,
"height": 38,
"width": 84,
"field": "code",

View File

@ -39,10 +39,10 @@
"printElements": [
{
"options": {
"left": 15,
"top": 5,
"height": 44,
"width": 54,
"left": 0,
"top": 2,
"height": 52,
"width": 81,
"title": "",
"field": "uniqueCode",
"testData": "",

View File

@ -53,9 +53,9 @@ namespace HHWMS.Web
// 调用wcs任务下发接口
try
{
//var res = Wtm.CallAPI<ApiJsonResult<dynamic>>("WCS", "TaskAssign", HttpMethodEnum.POST, item).Result.Data;
if (true)
//if (res.Success)
var res = Wtm.CallAPI<ApiJsonResult<dynamic>>("WCS", "TaskAssign", HttpMethodEnum.POST, item).Result.Data;
//if (true)
if (res.Success)
{
var locationList = _unitwork.Find<Location>(x => task.FromLocation.Equals(x.Code) || task.ToLocation.Equals(x.Code)).ToList();
var begin = locationList.FirstOrDefault(x => x.Code.Equals(task.FromLocation));

View File

@ -24,7 +24,7 @@
"Connections": [
{
"Key": "default",
"Value": "Server=localhost;Port=3306;Database=8357wms;Uid=root;Password=abc123*;Character Set=utf8mb4;",
"Value": "Server=127.0.0.1;Port=3306;Database=8357wms;Uid=root;Password=abc123*;Character Set=utf8mb4;",
"DBType": "mysql"
}
//{