|
|
|
@ -177,8 +177,8 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|| oldObj.Voyno != model.Voyno
|
|
|
|
|
|| oldObj.BookingSlotType != model.BookingSlotType
|
|
|
|
|
|| oldObj.CarrierCode != model.CarrierCode
|
|
|
|
|
|| oldObj.PortLoadId != model.PortLoadCode
|
|
|
|
|
|| oldObj.PortDischargeId != model.PortDischargeCode)
|
|
|
|
|
|| oldObj.PortLoadCode != model.PortLoadCode
|
|
|
|
|
|| oldObj.PortDischargeCode != model.PortDischargeCode)
|
|
|
|
|
{
|
|
|
|
|
isNeedUpdateOldStock = true;
|
|
|
|
|
}
|
|
|
|
@ -194,8 +194,8 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
ContractNo = oldObj.ContractNo,
|
|
|
|
|
Vessel = oldObj.Vessel,
|
|
|
|
|
Voyno = oldObj.Voyno,
|
|
|
|
|
PortLoadId = oldObj.PortLoadId,
|
|
|
|
|
PortDischargeId = oldObj.PortDischargeId,
|
|
|
|
|
PortLoadId = oldObj.PortLoadCode,
|
|
|
|
|
PortDischargeId = oldObj.PortDischargeCode,
|
|
|
|
|
TenantId = long.Parse(user.TenantId)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -372,14 +372,14 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
{
|
|
|
|
|
DataObj = new BookingSlotBaseApiSaveDto
|
|
|
|
|
{
|
|
|
|
|
PortDischargeId = model.PortDischargeCode,
|
|
|
|
|
PortDischargeCode = model.PortDischargeCode,
|
|
|
|
|
PortDischarge = model.PortDischarge,
|
|
|
|
|
PortLoadId = model.PortLoadCode,
|
|
|
|
|
PortLoadCode = model.PortLoadCode,
|
|
|
|
|
PortLoad = model.PortLoad,
|
|
|
|
|
PlaceDelivery = model.PlaceDelivery,
|
|
|
|
|
PlaceDeliveryId = model.PlaceDeliveryCode,
|
|
|
|
|
PlaceDeliveryCode = model.PlaceDeliveryCode,
|
|
|
|
|
PlaceReceipt = model.PlaceReceipt,
|
|
|
|
|
PlaceReceiptId = model.PlaceReceiptCode,
|
|
|
|
|
PlaceReceiptCode = model.PlaceReceiptCode,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -432,7 +432,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
if (regList[j].name.Equals("PORTLOADID", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
isSucc = CheckLabel("PORTLOADID", dto.DataObj.PortLoadId, regList[j].val, regList[j].master, operEnum);
|
|
|
|
|
isSucc = CheckLabel("PORTLOADID", dto.DataObj.PortLoadCode, regList[j].val, regList[j].master, operEnum);
|
|
|
|
|
|
|
|
|
|
if (isSucc)
|
|
|
|
|
{
|
|
|
|
@ -481,7 +481,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
}
|
|
|
|
|
else if (regList[j].name.Equals("PORTDISCHARGEID", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
isSucc = CheckLabel("PORTDISCHARGEID", dto.DataObj.PortDischargeId, regList[j].val, regList[j].master, operEnum);
|
|
|
|
|
isSucc = CheckLabel("PORTDISCHARGEID", dto.DataObj.PortDischargeCode, regList[j].val, regList[j].master, operEnum);
|
|
|
|
|
|
|
|
|
|
if (isSucc)
|
|
|
|
|
{
|
|
|
|
@ -1030,7 +1030,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
dto.DataObj.PortLoad = portInfo.Data.PortName;
|
|
|
|
|
dto.DataObj.PortLoadId = portInfo.Data.EdiCode;
|
|
|
|
|
dto.DataObj.PortLoadCode = portInfo.Data.EdiCode;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -1077,7 +1077,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
var portInfo = await PlaceDeliveryToPort(portEnName, portCodeList, () => _mappingPortService.GetAllList());
|
|
|
|
|
|
|
|
|
|
if (portInfo.Succeeded)
|
|
|
|
|
if (!portInfo.Succeeded)
|
|
|
|
|
{
|
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"通过交货地城市名称未匹配到港口信息,订舱编号:{dto.DataObj.SlotBookingNo}");
|
|
|
|
|
}
|
|
|
|
@ -1095,7 +1095,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dto.DataObj.PortDischarge = portInfo.Data?.PortName;
|
|
|
|
|
dto.DataObj.PortDischargeId = portInfo.Data?.EdiCode;
|
|
|
|
|
dto.DataObj.PortDischargeCode = portInfo.Data?.EdiCode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1275,8 +1275,8 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|| oldObj.Voyno != model.Voyno
|
|
|
|
|
|| oldObj.BookingSlotType != model.BookingSlotType
|
|
|
|
|
|| oldObj.CarrierId != model.CarrierId
|
|
|
|
|
|| oldObj.PortLoadId != model.PortLoadCode
|
|
|
|
|
|| oldObj.PortDischargeId != model.PortDischargeCode)
|
|
|
|
|
|| oldObj.PortLoadCode != model.PortLoadCode
|
|
|
|
|
|| oldObj.PortDischargeCode != model.PortDischargeCode)
|
|
|
|
|
{
|
|
|
|
|
isNeedUpdateOldStock = true;
|
|
|
|
|
}
|
|
|
|
@ -1292,8 +1292,8 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
ContractNo = oldObj.ContractNo,
|
|
|
|
|
Vessel = oldObj.Vessel,
|
|
|
|
|
Voyno = oldObj.Voyno,
|
|
|
|
|
PortLoadId = oldObj.PortLoadId,
|
|
|
|
|
PortDischargeId = oldObj.PortDischargeId,
|
|
|
|
|
PortLoadId = oldObj.PortLoadCode,
|
|
|
|
|
PortDischargeId = oldObj.PortDischargeCode,
|
|
|
|
|
TenantId = long.Parse(user.TenantId)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -1471,7 +1471,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
var newFile = new OpFile
|
|
|
|
|
{
|
|
|
|
|
Id = SnowFlakeSingle.Instance.NextId(),
|
|
|
|
|
//Id = SnowFlakeSingle.Instance.NextId(),
|
|
|
|
|
FileName = fileName,
|
|
|
|
|
FilePath = FilePath,
|
|
|
|
|
TypeCode = fileTypeCode,
|
|
|
|
@ -1479,7 +1479,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
LinkId = boookId,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
await tenantDb.Insertable(newFile).ExecuteCommandAsync();
|
|
|
|
|
await tenantDb.Insertable<OpFile>(newFile).ExecuteCommandAsync();
|
|
|
|
|
|
|
|
|
|
return DataResult<string>.Success(string.Empty);
|
|
|
|
|
}
|
|
|
|
|