更改PDAFeeding
This commit is contained in:
@@ -91,22 +91,25 @@ namespace Tnb.WarehouseMgr
|
|||||||
feedBox.create_time = DateTime.Now;
|
feedBox.create_time = DateTime.Now;
|
||||||
var row = await _db.Updateable(feedBox).ExecuteCommandAsync();
|
var row = await _db.Updateable(feedBox).ExecuteCommandAsync();
|
||||||
//更新投料记录条码表
|
//更新投料记录条码表
|
||||||
foreach (var carryCode in carryCodes)
|
if (carryCodes != null)
|
||||||
{
|
{
|
||||||
WmsFeedingrecordCode wmsFeedingrecordCode = new();
|
foreach (var carryCode in carryCodes)
|
||||||
wmsFeedingrecordCode.id = SnowflakeIdHelper.NextId();
|
{
|
||||||
wmsFeedingrecordCode.org_id = _userManager.User.OrganizeId;
|
WmsFeedingrecordCode wmsFeedingrecordCode = new();
|
||||||
wmsFeedingrecordCode.record_id = input.data["ReturnIdentity"]?.ToString()!;
|
wmsFeedingrecordCode.id = SnowflakeIdHelper.NextId();
|
||||||
wmsFeedingrecordCode.material_id = carryCode.material_id;
|
wmsFeedingrecordCode.org_id = _userManager.User.OrganizeId;
|
||||||
wmsFeedingrecordCode.material_code = carryCode.material_code;
|
wmsFeedingrecordCode.record_id = input.data["ReturnIdentity"]?.ToString()!;
|
||||||
wmsFeedingrecordCode.barcode = carryCode.barcode;
|
wmsFeedingrecordCode.material_id = carryCode.material_id;
|
||||||
wmsFeedingrecordCode.code_batch = carryCode.code_batch;
|
wmsFeedingrecordCode.material_code = carryCode.material_code;
|
||||||
wmsFeedingrecordCode.codeqty = carryCode.codeqty;
|
wmsFeedingrecordCode.barcode = carryCode.barcode;
|
||||||
wmsFeedingrecordCode.unit_id = carryCode.unit_id;
|
wmsFeedingrecordCode.code_batch = carryCode.code_batch;
|
||||||
wmsFeedingrecordCode.unit_code = carryCode.unit_code;
|
wmsFeedingrecordCode.codeqty = carryCode.codeqty;
|
||||||
wmsFeedingrecordCode.create_id = _userManager.UserId;
|
wmsFeedingrecordCode.unit_id = carryCode.unit_id;
|
||||||
wmsFeedingrecordCode.create_time = DateTime.Now;
|
wmsFeedingrecordCode.unit_code = carryCode.unit_code;
|
||||||
row = await _db.Insertable(wmsFeedingrecordCode).ExecuteCommandAsync();
|
wmsFeedingrecordCode.create_id = _userManager.UserId;
|
||||||
|
wmsFeedingrecordCode.create_time = DateTime.Now;
|
||||||
|
row = await _db.Insertable(wmsFeedingrecordCode).ExecuteCommandAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//更新载具
|
//更新载具
|
||||||
row = await UpdateNullCarry(carry);
|
row = await UpdateNullCarry(carry);
|
||||||
|
|||||||
Reference in New Issue
Block a user