仓库-拼箱功能调整
This commit is contained in:
@@ -169,8 +169,6 @@ namespace ZR.Service.Business
|
||||
nowProduction.Remark = "拼箱整箱";
|
||||
// 修改主箱
|
||||
Context.Updateable(nowProduction).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
|
||||
// 添加记录 要有newPatchCode
|
||||
AddPackingrecord(nowProduction,mainPackage.WorkoderID, true);
|
||||
// 次箱操作
|
||||
if (isDelete)
|
||||
{
|
||||
@@ -311,8 +309,6 @@ namespace ZR.Service.Business
|
||||
newPackage1.Remark = "拆箱";
|
||||
// 修改主箱
|
||||
Context.Updateable(newPackage1).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
|
||||
// 添加记录 要有newPatchCode
|
||||
AddPackingrecord(newPackage1, mainPackage.WorkoderID, false);
|
||||
// 2.添加一个分箱
|
||||
WmGoodsNowProduction newPackage2 = mainNowProduction;
|
||||
newPackage2.CreatedBy = parm.CreateBy;
|
||||
@@ -328,12 +324,9 @@ namespace ZR.Service.Business
|
||||
newPackage2.Id = SnowFlakeSingle.Instance.NextId().ToString();
|
||||
// 添加分箱
|
||||
Context.Insertable(newPackage2).ExecuteCommand();
|
||||
// 添加记录 要有newPatchCode
|
||||
AddPackingrecord(newPackage2, mainPackage.WorkoderID, false);
|
||||
// TODO修改打印记录
|
||||
return log;
|
||||
}
|
||||
// 添加包装箱标签记录
|
||||
// 添加包装箱标签记录(暂不使用)
|
||||
public void AddPackingrecord(WmGoodsNowProduction production,string workOrderId, bool isFill = false)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user