抛光仓库相关功能,未完成(但已部署)
This commit is contained in:
@@ -7,7 +7,9 @@ using ZR.Model.MES.pro;
|
||||
using ZR.Model.MES.qc;
|
||||
using ZR.Model.MES.qc.DTO;
|
||||
using ZR.Model.MES.qu;
|
||||
using ZR.Model.MES.wms;
|
||||
using ZR.Service.mes.qc.IService;
|
||||
using ZR.Service.mes.wms;
|
||||
|
||||
namespace ZR.Service.mes.qc
|
||||
{
|
||||
@@ -1336,12 +1338,12 @@ namespace ZR.Service.mes.qc
|
||||
polishPassNumber = polishNumber - 0;
|
||||
}
|
||||
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
/* Console.ForegroundColor = ConsoleColor.Green;
|
||||
Console.WriteLine($"打印工单{workorder_id} 一次合格数{OnePassNumber}=计划数{workorder.PreviousNumber}-----所有缺陷数{list?.sum} ");
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
Console.WriteLine($"打印工单{workorder_id} 计算抛光合格{polishPassNumber}=首检的抛光{polishNumber}-----抛光缺陷项{polish_defect_Number?.sum}");
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
Console.WriteLine($"打印工单{workorder_id} 包装投入数{OnePassNumber + polishPassNumber}");
|
||||
Console.WriteLine($"打印工单{workorder_id} 包装投入数{OnePassNumber + polishPassNumber}");*/
|
||||
|
||||
|
||||
|
||||
@@ -3206,13 +3208,26 @@ namespace ZR.Service.mes.qc
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 产线报表生成后自动化操作
|
||||
// 1.抛光品入库
|
||||
try
|
||||
{
|
||||
WmPolishInventoryService wmPolishInventoryService = new WmPolishInventoryService();
|
||||
WmPolishInventory warehousingInfo = new()
|
||||
{
|
||||
Partnumber = workorder_item.FinishedPartNumber,
|
||||
Type = workorder_item.Remark1.Contains("返工") ? 2 : 1,
|
||||
Quantity = paoguang_by_first,
|
||||
ActionTime = DateTime.Now.ToLocalTime(),
|
||||
CreatedBy = "包装" + team + "组",
|
||||
Remark = "首检抛光自动入库。来源工单号:[" + workorder_item.ClientWorkorder + "]"
|
||||
};
|
||||
wmPolishInventoryService.DoWmPolishWarehousing(warehousingInfo);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user