|
|
|
@ -2823,7 +2823,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
result.msg = "请上传指定模板文件";
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
var tempDic = Path.Combine(App.WebHostEnvironment.WebRootPath, App.GetOptions<TempFileOptions>().Path, DateTime.Now.Ticks.ToString());
|
|
|
|
|
var tempDic = string.Empty;// Path.Combine(App.WebHostEnvironment.WebRootPath, App.GetOptions<TempFileOptions>().Path, DateTime.Now.Ticks.ToString());
|
|
|
|
|
Directory.CreateDirectory(tempDic);
|
|
|
|
|
var filePath = Path.Combine(tempDic, file.FileName);
|
|
|
|
|
|
|
|
|
@ -2886,7 +2886,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
case 23:
|
|
|
|
|
{
|
|
|
|
|
ctnExt.CtnAll = value;
|
|
|
|
|
ctnExt.CtnCode = cacheCtnCode.FirstOrDefault(x => x.Name == value)?.Code;
|
|
|
|
|
ctnExt.CtnCode = cacheCtnCode.FirstOrDefault(x => x.CtnName == value)?.EdiCode;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 24:
|
|
|
|
@ -2985,10 +2985,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 特殊处理
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(slot.CarrierCode)) slot.Carrier = cacheCarrier.FirstOrDefault(x => x.EnName == slot.CarrierCode)?.CnName;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(slot.CarrierCode)) slot.Carrier = cacheMappCarrier.FirstOrDefault(x => x.CarrierName == slot.CarrierCode)?.CarrierName;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(slot.PortLoadCode)) slot.PortLoad = cachePort.FirstOrDefault(x => x.EdiCode == slot.PortLoadCode)?.PortName;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(slot.PortDischargeCode)) slot.PortDischarge = cachePort.FirstOrDefault(x => x.EdiCode == slot.PortDischargeCode)?.PortName;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(slot.LaneName)) slot.LaneCode = cacheLane.FirstOrDefault(x => x.LaneName == slot.LaneName)?.Code;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(slot.LaneName)) slot.LaneCode = cacheLane.FirstOrDefault(x => x.LaneName == slot.LaneName)?.LaneEnName;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(slot.BookingSlotTypeName))
|
|
|
|
|
slot.BookingSlotType = slot.BookingSlotTypeName switch
|
|
|
|
|
{
|
|
|
|
@ -3015,7 +3015,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
case 23:
|
|
|
|
|
{
|
|
|
|
|
ctn.CtnAll = value;
|
|
|
|
|
ctn.CtnCode = cacheCtnCode.FirstOrDefault(x => x.Name == value)?.Code;
|
|
|
|
|
ctn.CtnCode = cacheCtnCode.FirstOrDefault(x => x.CtnName == value)?.EdiCode;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 24:
|
|
|
|
@ -3451,7 +3451,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
//return HttpUtility.UrlEncode(fileName, Encoding.GetEncoding("UTF-8"));
|
|
|
|
|
return fileName;*/
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|
return DataResult<string>.Success(string.Empty);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|