打印修改,发布修改
This commit is contained in:
parent
85b6d3a0ee
commit
c494b7b1ef
@ -295,6 +295,10 @@ namespace HHWMS.Web
|
||||
}
|
||||
|
||||
_unitwork.Update(task);
|
||||
if (task.Status == TaskStatusEnum.完成)
|
||||
{
|
||||
_unitwork.Delete(task);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
{
|
||||
"options": {
|
||||
"left": 0,
|
||||
"top": 0,
|
||||
"top": 2,
|
||||
"height": 38,
|
||||
"width": 84,
|
||||
"field": "code",
|
||||
|
||||
@ -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": "",
|
||||
|
||||
@ -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));
|
||||
|
||||
@ -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"
|
||||
}
|
||||
//{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user