cjy 4 months ago
commit 1451831602

@ -1126,6 +1126,26 @@ public static class MultiLanguageConst
/// </summary> /// </summary>
[Description("MSK API SPOT 检索海运船期详情失败,原因:{0}")] [Description("MSK API SPOT 检索海运船期详情失败,原因:{0}")]
public const string SpaceBookingAPISpotSearchShipResultError2 = "SpaceBK_API_Spot_SearchShip_Exception"; public const string SpaceBookingAPISpotSearchShipResultError2 = "SpaceBK_API_Spot_SearchShip_Exception";
/// <summary>
/// 复制数量不能小于1
/// </summary>
[Description("复制数量不能小于1")]
public const string SpaceBookingAPICopyLowNum = "SpaceBK_API_CopyLowNum";
/// <summary>
/// 复制数量不能大于1000
/// </summary>
[Description("复制数量不能大于1000")]
public const string SpaceBookingAPICopyLimitNum = "SpaceBK_API_CopyLimitNum";
/// <summary>
/// 请求的操作类型不能为空
/// </summary>
[Description("请求的操作类型不能为空")]
public const string SpaceBookingAPIOpTypeNull = "SpaceBK_API_OpTypeNull";
#endregion #endregion
#region 舱位管理 #region 舱位管理

@ -1,5 +1,7 @@
using System; using SqlSugar;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -388,36 +390,6 @@ namespace DS.WMS.Core.Op.Dtos
/// </summary> /// </summary>
public string priceReferenceName { get; set; } public string priceReferenceName { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public Nullable<DateTime> UpdatedTime { get; set; }
/// <summary>
/// 创建人ID
/// </summary>
public long CreatedUserId { get; set; }
/// <summary>
/// 创建人名称
/// </summary>
public string CreatedUserName { get; set; }
/// <summary>
/// 修改人ID
/// </summary>
public long UpdatedUserId { get; set; }
/// <summary>
/// 修改人名称
/// </summary>
public string UpdatedUserName { get; set; }
/// <summary> /// <summary>
/// 我希望使用托运人自己的集装箱 /// 我希望使用托运人自己的集装箱
/// </summary> /// </summary>
@ -482,5 +454,59 @@ namespace DS.WMS.Core.Op.Dtos
/// 订舱通道类型 CON_API-合约APISPOT_API-SPOT订舱EDI-EDI订舱 /// 订舱通道类型 CON_API-合约APISPOT_API-SPOT订舱EDI-EDI订舱
/// </summary> /// </summary>
public string bookingChannelTypeName { get; set; } public string bookingChannelTypeName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public long CreateBy { get; set; }
/// <summary>
/// 创建人名称
/// </summary>
public string CreateUserName { get; set; }
/// <summary>
/// 修改人
/// </summary>
public long UpdateBy { get; set; }
/// <summary>
/// 修改人名称
/// </summary>
public string UpdateUserName { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdateTime { get; set; }
/// <summary>
/// 删除
/// </summary>
public bool Deleted { get; set; } = false;
/// <summary>
/// 删除人名称
/// </summary>
public string DeleteUserName { get; set; }
/// <summary>
/// 删除时间
/// </summary>
public DateTime DeleteTime { get; set; }
/// <summary>
/// 删除人
/// </summary>
public long DeleteBy { get; set; }
} }
} }

@ -198,7 +198,7 @@ namespace DS.WMS.Core.Op.Method
var data = await query.Select<BookingContractNoManageDto>().OrderBy(a=>a.ContractNo).Take(top).ToListAsync(); var data = await query.Select<BookingContractNoManageDto>().OrderBy(a=>a.ContractNo).Take(top).ToListAsync();
if(data.Count > 0) if(data.Count == 0)
return DataResult<List<BookingContractNoManageDto>>.FailedData(data); return DataResult<List<BookingContractNoManageDto>>.FailedData(data);
return DataResult<List<BookingContractNoManageDto>>.Success(data); return DataResult<List<BookingContractNoManageDto>>.Success(data);

@ -652,7 +652,7 @@ namespace DS.WMS.Core.Op.Method
bookingDto.bookingBody.transport = new MSKAPIBookingTransport bookingDto.bookingBody.transport = new MSKAPIBookingTransport
{ {
carrierCode = model.carrierCode, carrierCode = model.vesselCarrierCode,
earliestDepartureDate = model.earliestDepartureDate.Value.ToString("yyyy-MM-ddTHH:mm:ss"), earliestDepartureDate = model.earliestDepartureDate.Value.ToString("yyyy-MM-ddTHH:mm:ss"),
exportServiceMode = model.exportServiceMode, exportServiceMode = model.exportServiceMode,
importServiceMode = model.importServiceMode, importServiceMode = model.importServiceMode,
@ -1416,8 +1416,8 @@ namespace DS.WMS.Core.Op.Method
placeOfReceiptCountryCode = entity.PlaceReceiptCountryCode, placeOfReceiptCountryCode = entity.PlaceReceiptCountryCode,
placeOfDeliveryCountryCode = entity.PlaceDeliveryCountryCode, placeOfDeliveryCountryCode = entity.PlaceDeliveryCountryCode,
EstSailingDays = entity.EstSailingDays, EstSailingDays = entity.EstSailingDays,
priceReferenceId = entity.PriceOwnerReferenceId, priceReferenceId = entity.PriceReferenceId,
priceReferenceName = entity.PriceOwnerReference, priceReferenceName = entity.PriceReferenceName,
priceOwnerReferenceId = entity.PriceOwnerReferenceId.HasValue? entity.PriceOwnerReferenceId.Value.ToString():"", priceOwnerReferenceId = entity.PriceOwnerReferenceId.HasValue? entity.PriceOwnerReferenceId.Value.ToString():"",
priceOwnerReference = entity.PriceOwnerReference, priceOwnerReference = entity.PriceOwnerReference,
priceOwnerReferenceName = entity.PriceOwnerReferenceName, priceOwnerReferenceName = entity.PriceOwnerReferenceName,
@ -1434,7 +1434,7 @@ namespace DS.WMS.Core.Op.Method
bookingChannelTypeName = entity.BookingChannelType, bookingChannelTypeName = entity.BookingChannelType,
bookingChannelType = entity.BookingChannelTypeName, bookingChannelType = entity.BookingChannelTypeName,
carrierCollectionOriginGeoID = entity.PlaceReceiptGeoId, carrierCollectionOriginGeoID = entity.PlaceReceiptGeoId,
carrierDeliveryDestinationGeoID = entity.PlaceDeliveryGeoId carrierDeliveryDestinationGeoID = entity.PlaceDeliveryGeoId,
}; };
var ctnList = tenantDb.Queryable<SpaceBookingOrderCtn>().Where(a => a.RecordId == id && a.Deleted == false).ToList(); var ctnList = tenantDb.Queryable<SpaceBookingOrderCtn>().Where(a => a.RecordId == id && a.Deleted == false).ToList();
@ -1671,7 +1671,13 @@ namespace DS.WMS.Core.Op.Method
} }
//更新 //更新
var ctnEntity = ctn.Adapt<SpaceBookingOrderCtn>(); var ctnEntity = new SpaceBookingOrderCtn
{
CtnCode = ctn.ctnCode,
CtnName = ctn.ctnName,
CtnNum = ctn.ctnNum,
CtnSufferWeight = ctn.ctnSufferWeight.HasValue?(int)ctn.ctnSufferWeight.Value:0
};
ctnEntity.Id = ctn.id.Value; ctnEntity.Id = ctn.id.Value;
ctnEntity.RecordId = entity.Id; ctnEntity.RecordId = entity.Id;
@ -2031,20 +2037,24 @@ namespace DS.WMS.Core.Op.Method
/// <returns>返回执行结果消息</returns> /// <returns>返回执行结果消息</returns>
public async Task<DataResult<string>> BatchCopy(MSKAPIBookingCopyDto model) public async Task<DataResult<string>> BatchCopy(MSKAPIBookingCopyDto model)
{ {
//if (model.copyNum < 1) //复制数量不能小于1
// throw Oops.Oh($"复制数量不能小于1"); if (model.copyNum < 1)
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.SpaceBookingAPICopyLowNum)));
//if (model.copyNum > 1000) //复制数量不能大于1000
// throw Oops.Oh($"复制数量不能大于1000"); if (model.copyNum > 1000)
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.SpaceBookingAPICopyLimitNum)));
//if (string.IsNullOrWhiteSpace(model.opType)) //请求的操作类型不能为空
// throw Oops.Oh($"请求的操作类型不能为空"); if (string.IsNullOrWhiteSpace(model.opType))
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.SpaceBookingAPIOpTypeNull)));
var tenantDb = saasService.GetBizDbScopeById(user.TenantId); var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var entity = await tenantDb.Queryable<SpaceBookingOrder>().FirstAsync(a => a.Id == model.originalId); var entity = await tenantDb.Queryable<SpaceBookingOrder>().FirstAsync(a => a.Id == model.originalId);
//if (entity == null) //预订舱数据不存在或已作废
// throw Oops.Oh($"获取马士基API订舱详情失败不存在或已作废"); if (entity == null)
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.SpaceBookingRecordDeletedOrNoExists)));
var ctnList = tenantDb.Queryable<SpaceBookingOrderCtn>() var ctnList = tenantDb.Queryable<SpaceBookingOrderCtn>()
.Where(a => a.RecordId == model.originalId && a.Deleted == false).ToList(); .Where(a => a.RecordId == model.originalId && a.Deleted == false).ToList();
@ -2053,7 +2063,7 @@ namespace DS.WMS.Core.Op.Method
DateTime nowDate = DateTime.Now; DateTime nowDate = DateTime.Now;
//_logger.LogInformation("获取到批量复制功能"); Logger.Log(NLog.LogLevel.Info, "获取到批量复制功能");
//如果是指定的编辑信息需要先把编辑数据同步到实体类,再进行复制 //如果是指定的编辑信息需要先把编辑数据同步到实体类,再进行复制
if (model.opType == "copy_edit") if (model.opType == "copy_edit")
@ -2073,14 +2083,14 @@ namespace DS.WMS.Core.Op.Method
{ {
CtnCode = ctn.ctnCode, CtnCode = ctn.ctnCode,
CtnName = ctn.ctnName, CtnName = ctn.ctnName,
CtnNum = ctn.ctnNum.Value, CtnNum = ctn.ctnNum.HasValue? ctn.ctnNum.Value:0,
CtnSufferWeight = (int)ctn.ctnSufferWeight.Value, CtnSufferWeight = (int)ctn.ctnSufferWeight.Value,
}; };
ctnEntity.CreateTime = nowDate; ctnEntity.CreateTime = nowDate;
ctnEntity.UpdateTime = nowDate; ctnEntity.UpdateTime = nowDate;
ctnEntity.CreateBy = long.Parse(user.UserId); ctnEntity.CreateBy = long.Parse(user.UserId);
//ctnEntity.CreatedUserName = UserManager.Name; ctnEntity.CreateUserName = user.UserName;
ctnEntity.StuffingMeasurementType = "WEIGHT"; ctnEntity.StuffingMeasurementType = "WEIGHT";
ctnEntity.StuffingMeasurementUnit = "KGS"; ctnEntity.StuffingMeasurementUnit = "KGS";
@ -2093,7 +2103,7 @@ namespace DS.WMS.Core.Op.Method
entity.CreateTime = nowDate; entity.CreateTime = nowDate;
entity.UpdateTime = nowDate; entity.UpdateTime = nowDate;
entity.CreateBy = long.Parse(user.UserId); entity.CreateBy = long.Parse(user.UserId);
//entity.CreatedUserName = UserManager.Name; entity.CreateUserName = user.UserName;
entity.Status = "TEMP"; entity.Status = "TEMP";
entity.StatusName = "暂存"; entity.StatusName = "暂存";
entity.CtnStat = ctnStat; entity.CtnStat = ctnStat;
@ -2110,7 +2120,7 @@ namespace DS.WMS.Core.Op.Method
copyEntity.Id = 0; copyEntity.Id = 0;
copyEntity.CreateTime = nowDate; copyEntity.CreateTime = nowDate;
copyEntity.CreateBy = long.Parse(user.UserId); copyEntity.CreateBy = long.Parse(user.UserId);
//copyEntity.CreatedUserName = UserManager.Name; copyEntity.CreateUserName = user.UserName;
copyEntity.UpdateTime = nowDate; copyEntity.UpdateTime = nowDate;
copyEntity.Status = "TEMP"; copyEntity.Status = "TEMP";
copyEntity.StatusName = "暂存"; copyEntity.StatusName = "暂存";
@ -2137,7 +2147,7 @@ namespace DS.WMS.Core.Op.Method
ctnEntity.CreateTime = nowDate; ctnEntity.CreateTime = nowDate;
ctnEntity.UpdateTime = nowDate; ctnEntity.UpdateTime = nowDate;
ctnEntity.CreateBy = long.Parse(user.UserId); ctnEntity.CreateBy = long.Parse(user.UserId);
//ctnEntity.CreatedUserName = UserManager.Name; ctnEntity.CreateUserName = user.UserName;
await tenantDb.Insertable<SpaceBookingOrderCtn>(ctnEntity).ExecuteReturnEntityAsync(); await tenantDb.Insertable<SpaceBookingOrderCtn>(ctnEntity).ExecuteReturnEntityAsync();
}); });

@ -773,7 +773,7 @@ namespace DS.WMS.Core.Op.Method
bookingDto.bookingBody.transport = new MSKAPIBookingTransport bookingDto.bookingBody.transport = new MSKAPIBookingTransport
{ {
carrierCode = model.carrierCode, carrierCode = model.vesselCarrierCode,
//earliestDepartureDate = model.earliestDepartureDate.Value.ToString("yyyy-MM-ddTHH:mm:ss"), //earliestDepartureDate = model.earliestDepartureDate.Value.ToString("yyyy-MM-ddTHH:mm:ss"),
exportServiceMode = model.exportServiceMode, exportServiceMode = model.exportServiceMode,
importServiceMode = model.importServiceMode, importServiceMode = model.importServiceMode,
@ -1720,7 +1720,13 @@ namespace DS.WMS.Core.Op.Method
} }
//更新 //更新
var ctnEntity = ctn.Adapt<SpaceBookingOrderCtn>(); var ctnEntity = new SpaceBookingOrderCtn
{
CtnCode = ctn.ctnCode,
CtnName = ctn.ctnName,
CtnNum = ctn.ctnNum,
CtnSufferWeight = ctn.ctnSufferWeight.HasValue ? (int)ctn.ctnSufferWeight.Value : 0
};
ctnEntity.Id = ctn.id.Value; ctnEntity.Id = ctn.id.Value;
ctnEntity.RecordId = entity.Id; ctnEntity.RecordId = entity.Id;
@ -2079,20 +2085,24 @@ namespace DS.WMS.Core.Op.Method
/// <returns>返回执行结果消息</returns> /// <returns>返回执行结果消息</returns>
public async Task<DataResult<string>> BatchCopy(MSKAPISPOTBookingCopyDto model) public async Task<DataResult<string>> BatchCopy(MSKAPISPOTBookingCopyDto model)
{ {
//if (model.copyNum < 1) //复制数量不能小于1
// throw Oops.Oh($"复制数量不能小于1"); if (model.copyNum < 1)
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.SpaceBookingAPICopyLowNum)));
//if (model.copyNum > 1000) //复制数量不能大于1000
// throw Oops.Oh($"复制数量不能大于1000"); if (model.copyNum > 1000)
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.SpaceBookingAPICopyLimitNum)));
//if (string.IsNullOrWhiteSpace(model.opType)) //请求的操作类型不能为空
// throw Oops.Oh($"请求的操作类型不能为空"); if (string.IsNullOrWhiteSpace(model.opType))
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.SpaceBookingAPIOpTypeNull)));
var tenantDb = saasService.GetBizDbScopeById(user.TenantId); var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var entity = await tenantDb.Queryable<SpaceBookingOrder>().FirstAsync(a => a.Id == model.originalId); var entity = await tenantDb.Queryable<SpaceBookingOrder>().FirstAsync(a => a.Id == model.originalId);
//if (entity == null) //预订舱数据不存在或已作废
// throw Oops.Oh($"获取马士基API订舱详情失败不存在或已作废"); if (entity == null)
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.SpaceBookingRecordDeletedOrNoExists)));
var ctnList = tenantDb.Queryable<SpaceBookingOrderCtn>() var ctnList = tenantDb.Queryable<SpaceBookingOrderCtn>()
.Where(a => a.RecordId == model.originalId && a.Deleted == false).ToList(); .Where(a => a.RecordId == model.originalId && a.Deleted == false).ToList();
@ -2121,14 +2131,14 @@ namespace DS.WMS.Core.Op.Method
{ {
CtnCode = ctn.ctnCode, CtnCode = ctn.ctnCode,
CtnName = ctn.ctnName, CtnName = ctn.ctnName,
CtnNum = ctn.ctnNum.Value, CtnNum = ctn.ctnNum.HasValue? ctn.ctnNum.Value:0,
CtnSufferWeight = (int)ctn.ctnSufferWeight.Value, CtnSufferWeight = (int)ctn.ctnSufferWeight.Value,
}; };
ctnEntity.CreateTime = nowDate; ctnEntity.CreateTime = nowDate;
ctnEntity.UpdateTime = nowDate; ctnEntity.UpdateTime = nowDate;
ctnEntity.CreateBy = long.Parse(user.UserId); ctnEntity.CreateBy = long.Parse(user.UserId);
//ctnEntity.CreatedUserName = UserManager.Name; ctnEntity.CreateUserName = user.UserName;
ctnEntity.StuffingMeasurementType = "WEIGHT"; ctnEntity.StuffingMeasurementType = "WEIGHT";
ctnEntity.StuffingMeasurementUnit = "KGS"; ctnEntity.StuffingMeasurementUnit = "KGS";
@ -2169,6 +2179,7 @@ namespace DS.WMS.Core.Op.Method
{ {
var copyEntity = entity.Adapt<SpaceBookingOrder>(); var copyEntity = entity.Adapt<SpaceBookingOrder>();
copyEntity.Id = 0; copyEntity.Id = 0;
copyEntity.CreateTime = nowDate; copyEntity.CreateTime = nowDate;
copyEntity.CreateBy = long.Parse(user.UserId); copyEntity.CreateBy = long.Parse(user.UserId);

@ -649,3 +649,59 @@
2024-07-22 12:38:46.1446 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config 2024-07-22 12:38:46.1446 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 12:38:46.1446 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile 2024-07-22 12:38:46.1446 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 12:38:46.1446 Info Configuration initialized. 2024-07-22 12:38:46.1446 Info Configuration initialized.
2024-07-22 17:44:20.8207 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-22 17:44:20.8363 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-22 17:44:20.8363 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-22 17:44:20.8530 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-22 17:44:20.8530 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 17:44:20.8626 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 17:44:20.8626 Info Configuration initialized.
2024-07-22 17:51:49.8988 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-22 17:51:49.9117 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-22 17:51:49.9117 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-22 17:51:49.9244 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-22 17:51:49.9244 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 17:51:49.9244 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 17:51:49.9244 Info Configuration initialized.
2024-07-22 17:55:06.9758 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-22 17:55:06.9881 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-22 17:55:06.9881 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-22 17:55:07.0020 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-22 17:55:07.0020 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 17:55:07.0020 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 17:55:07.0191 Info Configuration initialized.
2024-07-22 18:15:38.5262 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-22 18:15:38.5390 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-22 18:15:38.5390 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-22 18:15:38.5528 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-22 18:15:38.5528 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 18:15:38.5528 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 18:15:38.5659 Info Configuration initialized.
2024-07-22 18:23:25.1858 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-22 18:23:25.1982 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-22 18:23:25.1982 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-22 18:23:25.2121 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-22 18:23:25.2121 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 18:23:25.2121 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 18:23:25.2263 Info Configuration initialized.
2024-07-22 18:32:54.7832 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-22 18:32:54.7983 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-22 18:32:54.7983 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-22 18:32:54.8151 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-22 18:32:54.8219 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 18:32:54.8219 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 18:32:54.8219 Info Configuration initialized.
2024-07-22 18:34:27.7720 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-22 18:34:27.7720 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-22 18:34:27.7861 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-22 18:34:27.7861 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-22 18:34:27.7861 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 18:34:27.8037 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 18:34:27.8037 Info Configuration initialized.
2024-07-22 18:36:53.4718 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-22 18:36:53.4718 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-22 18:36:53.4872 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-22 18:36:53.4872 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-22 18:36:53.5029 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-22 18:36:53.5029 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-22 18:36:53.5029 Info Configuration initialized.

@ -6,7 +6,7 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<_PublishTargetUrl>D:\Code\PublishCopy\ds8-opapi</_PublishTargetUrl> <_PublishTargetUrl>D:\Code\PublishCopy\ds8-opapi</_PublishTargetUrl>
<History>True|2024-07-19T10:28:29.1420269Z||;True|2024-07-19T15:45:49.1068004+08:00||;True|2024-07-19T15:33:45.3242155+08:00||;False|2024-07-19T15:32:41.9604526+08:00||;True|2024-07-19T13:48:27.9722093+08:00||;False|2024-07-19T13:47:56.7900396+08:00||;True|2024-07-19T11:41:15.4223247+08:00||;True|2024-07-19T08:46:28.8014836+08:00||;True|2024-07-18T19:24:50.4184188+08:00||;True|2024-07-18T19:19:14.7056635+08:00||;True|2024-07-18T19:04:43.5615501+08:00||;True|2024-07-18T18:38:39.1976753+08:00||;True|2024-07-18T18:25:15.6833492+08:00||;True|2024-07-18T18:08:46.3114951+08:00||;True|2024-07-18T17:59:12.5292256+08:00||;True|2024-07-18T16:18:45.8049777+08:00||;True|2024-07-18T16:12:42.9723969+08:00||;True|2024-07-18T16:07:14.1432207+08:00||;True|2024-07-17T17:44:18.4741963+08:00||;True|2024-07-17T17:42:47.2735071+08:00||;True|2024-07-17T16:13:32.9037697+08:00||;True|2024-07-17T15:40:21.2550083+08:00||;True|2024-07-17T14:03:08.1814323+08:00||;True|2024-07-15T13:43:42.6073130+08:00||;True|2024-07-15T11:53:40.6498579+08:00||;True|2024-07-15T11:53:03.1652559+08:00||;True|2024-07-15T11:42:33.0154478+08:00||;True|2024-07-15T10:20:03.3925876+08:00||;True|2024-07-15T10:13:28.1415352+08:00||;True|2024-07-08T14:33:12.6884426+08:00||;True|2024-07-08T09:56:58.4995696+08:00||;</History> <History>True|2024-07-22T08:42:12.1933090Z||;True|2024-07-19T18:28:29.1420269+08:00||;True|2024-07-19T15:45:49.1068004+08:00||;True|2024-07-19T15:33:45.3242155+08:00||;False|2024-07-19T15:32:41.9604526+08:00||;True|2024-07-19T13:48:27.9722093+08:00||;False|2024-07-19T13:47:56.7900396+08:00||;True|2024-07-19T11:41:15.4223247+08:00||;True|2024-07-19T08:46:28.8014836+08:00||;True|2024-07-18T19:24:50.4184188+08:00||;True|2024-07-18T19:19:14.7056635+08:00||;True|2024-07-18T19:04:43.5615501+08:00||;True|2024-07-18T18:38:39.1976753+08:00||;True|2024-07-18T18:25:15.6833492+08:00||;True|2024-07-18T18:08:46.3114951+08:00||;True|2024-07-18T17:59:12.5292256+08:00||;True|2024-07-18T16:18:45.8049777+08:00||;True|2024-07-18T16:12:42.9723969+08:00||;True|2024-07-18T16:07:14.1432207+08:00||;True|2024-07-17T17:44:18.4741963+08:00||;True|2024-07-17T17:42:47.2735071+08:00||;True|2024-07-17T16:13:32.9037697+08:00||;True|2024-07-17T15:40:21.2550083+08:00||;True|2024-07-17T14:03:08.1814323+08:00||;True|2024-07-15T13:43:42.6073130+08:00||;True|2024-07-15T11:53:40.6498579+08:00||;True|2024-07-15T11:53:03.1652559+08:00||;True|2024-07-15T11:42:33.0154478+08:00||;True|2024-07-15T10:20:03.3925876+08:00||;True|2024-07-15T10:13:28.1415352+08:00||;True|2024-07-08T14:33:12.6884426+08:00||;True|2024-07-08T09:56:58.4995696+08:00||;</History>
<LastFailureDetails /> <LastFailureDetails />
</PropertyGroup> </PropertyGroup>
</Project> </Project>
Loading…
Cancel
Save