|
|
@ -19,6 +19,7 @@ using Myshipping.Application.Helper;
|
|
|
|
using Myshipping.Application.Service.BookingLabel.Dto;
|
|
|
|
using Myshipping.Application.Service.BookingLabel.Dto;
|
|
|
|
using Myshipping.Application.Service.BookingOrder.Dto;
|
|
|
|
using Myshipping.Application.Service.BookingOrder.Dto;
|
|
|
|
using Myshipping.Application.Service.BookingSlot.Dto;
|
|
|
|
using Myshipping.Application.Service.BookingSlot.Dto;
|
|
|
|
|
|
|
|
using Myshipping.Application.Service.TaskManagePlat.Interface;
|
|
|
|
using Myshipping.Core;
|
|
|
|
using Myshipping.Core;
|
|
|
|
using Myshipping.Core.Const;
|
|
|
|
using Myshipping.Core.Const;
|
|
|
|
using Myshipping.Core.Entity;
|
|
|
|
using Myshipping.Core.Entity;
|
|
|
@ -75,6 +76,7 @@ namespace Myshipping.Application
|
|
|
|
private readonly INamedServiceProvider<IBookingOrderService> _namedBookingOrderServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<IBookingOrderService> _namedBookingOrderServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<ITaskManageService> _namedTaskManageServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<ITaskManageService> _namedTaskManageServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<IBookingLabelService> _namedBookingLabelServiceProvider;
|
|
|
|
private readonly INamedServiceProvider<IBookingLabelService> _namedBookingLabelServiceProvider;
|
|
|
|
|
|
|
|
private readonly INamedServiceProvider<ITaskCautionNoticeService> _namedTaskCautionNoticeServiceProvider;
|
|
|
|
|
|
|
|
|
|
|
|
private readonly IDjyCustomerService _djyCustomerService;
|
|
|
|
private readonly IDjyCustomerService _djyCustomerService;
|
|
|
|
private readonly IBookingValueAddedService _bookingValueAddedService;
|
|
|
|
private readonly IBookingValueAddedService _bookingValueAddedService;
|
|
|
@ -120,6 +122,7 @@ namespace Myshipping.Application
|
|
|
|
SqlSugarRepository<BookingLabelAllocation> repLabelAllocation,
|
|
|
|
SqlSugarRepository<BookingLabelAllocation> repLabelAllocation,
|
|
|
|
IBookingLabelService bookingLabelService,
|
|
|
|
IBookingLabelService bookingLabelService,
|
|
|
|
INamedServiceProvider<ITaskManageService> namedTaskManageServiceProvider,
|
|
|
|
INamedServiceProvider<ITaskManageService> namedTaskManageServiceProvider,
|
|
|
|
|
|
|
|
INamedServiceProvider<ITaskCautionNoticeService> namedTaskCautionNoticeServiceProvider,
|
|
|
|
SqlSugarRepository<SysUser> sysUserRepository,
|
|
|
|
SqlSugarRepository<SysUser> sysUserRepository,
|
|
|
|
IDjyTenantParamService djyTenantParamService,
|
|
|
|
IDjyTenantParamService djyTenantParamService,
|
|
|
|
SqlSugarRepository<BookingPrintTemplate> repPrintTemplate,
|
|
|
|
SqlSugarRepository<BookingPrintTemplate> repPrintTemplate,
|
|
|
@ -155,6 +158,7 @@ namespace Myshipping.Application
|
|
|
|
_djyTenantParamService = djyTenantParamService;
|
|
|
|
_djyTenantParamService = djyTenantParamService;
|
|
|
|
_sysDataUserMenuService = sysDataUserMenuService;
|
|
|
|
_sysDataUserMenuService = sysDataUserMenuService;
|
|
|
|
_namedBookingLabelServiceProvider = namedBookingLabelServiceProvider;
|
|
|
|
_namedBookingLabelServiceProvider = namedBookingLabelServiceProvider;
|
|
|
|
|
|
|
|
_namedTaskCautionNoticeServiceProvider = namedTaskCautionNoticeServiceProvider;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#region 舱位
|
|
|
|
#region 舱位
|
|
|
@ -361,6 +365,22 @@ namespace Myshipping.Application
|
|
|
|
TenantId = model.TenantId
|
|
|
|
TenantId = model.TenantId
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var inputDto = new BookingSlotBaseApiDto {
|
|
|
|
|
|
|
|
DataObj = new BookingSlotBaseApiSaveDto {
|
|
|
|
|
|
|
|
PORTDISCHARGEID = model.PORTDISCHARGEID,
|
|
|
|
|
|
|
|
PORTDISCHARGE = model.PORTDISCHARGE,
|
|
|
|
|
|
|
|
PORTLOADID = model.PORTLOADID,
|
|
|
|
|
|
|
|
PORTLOAD = model.PORTLOAD,
|
|
|
|
|
|
|
|
PLACEDELIVERY = model.PLACEDELIVERY,
|
|
|
|
|
|
|
|
PLACEDELIVERYID = model.PLACEDELIVERYID,
|
|
|
|
|
|
|
|
PLACERECEIPT = model.PLACERECEIPT,
|
|
|
|
|
|
|
|
PLACERECEIPTID = model.PLACERECEIPTID,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//这里自动匹配标签
|
|
|
|
|
|
|
|
await GenerateSlotLabel(inputDto, model.Id);
|
|
|
|
|
|
|
|
|
|
|
|
return await Detail(model.Id);
|
|
|
|
return await Detail(model.Id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -3592,18 +3612,21 @@ namespace Myshipping.Application
|
|
|
|
var bookingInfo = _repBookingOrder.AsQueryable().Filter(null, true).First(x => x.Id == ca.Alloc.BOOKING_ID && x.IsDeleted == false
|
|
|
|
var bookingInfo = _repBookingOrder.AsQueryable().Filter(null, true).First(x => x.Id == ca.Alloc.BOOKING_ID && x.IsDeleted == false
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID);
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID);
|
|
|
|
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.WeekAt, bcSrcDto, userList, bookingInfo, slotInfo, srcWeek, targetWeek, $"提单号:{bcSrcDto.MBLNo} \r\n计费周变更了 \r\n原:{srcWeek} \r\n新:{targetWeek}");
|
|
|
|
CreateTask(CautionNoticeTaskEnum.WeekAt, bcSrcDto, userList, bookingInfo, slotInfo, srcWeek, targetWeek, $"提单号:{bcSrcDto.MBLNo} \r\n计费周变更了 \r\n原:{srcWeek} \r\n新:{targetWeek}",true);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (slotInfo != null)
|
|
|
|
else if (slotInfo != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CreateTask(CautionNoticeTaskEnum.WeekAt, bcSrcDto, userList, null, slotInfo, srcWeek, targetWeek, $"提单号:{bcSrcDto.MBLNo} \r\n计费周变更了 \r\n原:{srcWeek} \r\n新:{targetWeek}");
|
|
|
|
CreateTask(CautionNoticeTaskEnum.WeekAt, bcSrcDto, userList, null, slotInfo, srcWeek, targetWeek, $"提单号:{bcSrcDto.MBLNo} \r\n计费周变更了 \r\n原:{srcWeek} \r\n新:{targetWeek}", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(targetWeek))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new EmailNoticeHelper().SendEmailNotice($"MBLNO={bcSrcDto.MBLNo} slotId={slotId} 没有提取到计费周", $"MBLNO={bcSrcDto.MBLNo} slotId={slotId} 没有提取到计费周", App.Configuration["EmailNoticeDefaultUser"].GetUserEmailList());
|
|
|
|
new EmailNoticeHelper().SendEmailNotice($"MBLNO={bcSrcDto.MBLNo} slotId={slotId} 没有提取到计费周", $"MBLNO={bcSrcDto.MBLNo} slotId={slotId} 没有提取到计费周", App.Configuration["EmailNoticeDefaultUser"].GetUserEmailList());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
string srcPriceDate = bcSrcDto.PriceCalculationDate.HasValue ? bcSrcDto.PriceCalculationDate.Value.ToString("yyyy-MM-dd") : "";
|
|
|
|
string srcPriceDate = bcSrcDto.PriceCalculationDate.HasValue ? bcSrcDto.PriceCalculationDate.Value.ToString("yyyy-MM-dd") : "";
|
|
|
|
string targetPriceDate = bcTargetDto.PriceCalculationDate.HasValue ? bcTargetDto.PriceCalculationDate.Value.ToString("yyyy-MM-dd") : "";
|
|
|
|
string targetPriceDate = bcTargetDto.PriceCalculationDate.HasValue ? bcTargetDto.PriceCalculationDate.Value.ToString("yyyy-MM-dd") : "";
|
|
|
@ -3618,38 +3641,39 @@ namespace Myshipping.Application
|
|
|
|
var bookingInfo = _repBookingOrder.AsQueryable().Filter(null, true).First(x => x.Id == ca.Alloc.BOOKING_ID && x.IsDeleted == false
|
|
|
|
var bookingInfo = _repBookingOrder.AsQueryable().Filter(null, true).First(x => x.Id == ca.Alloc.BOOKING_ID && x.IsDeleted == false
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID);
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID);
|
|
|
|
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.PriceCalcDate, bcSrcDto, userList, bookingInfo, slotInfo, srcPriceDate, targetPriceDate, $"提单号:{bcSrcDto.MBLNo} \r\n计费日期变更了 \r\n原:{srcPriceDate} \r\n新:{targetPriceDate}");
|
|
|
|
CreateTask(CautionNoticeTaskEnum.PriceCalcDate, bcSrcDto, userList, bookingInfo, slotInfo, srcPriceDate, targetPriceDate, $"提单号:{bcSrcDto.MBLNo} \r\n计费日期变更了 \r\n原:{srcPriceDate} \r\n新:{targetPriceDate}", true);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (slotInfo != null)
|
|
|
|
else if (slotInfo != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CreateTask(CautionNoticeTaskEnum.PriceCalcDate, bcSrcDto, userList, null, slotInfo, srcPriceDate, targetPriceDate, $"提单号:{bcSrcDto.MBLNo} \r\n计费日期变更了 \r\n原:{srcPriceDate} \r\n新:{targetPriceDate}");
|
|
|
|
CreateTask(CautionNoticeTaskEnum.PriceCalcDate, bcSrcDto, userList, null, slotInfo, srcPriceDate, targetPriceDate, $"提单号:{bcSrcDto.MBLNo} \r\n计费日期变更了 \r\n原:{srcPriceDate} \r\n新:{targetPriceDate}", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(targetPriceDate))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new EmailNoticeHelper().SendEmailNotice($"MBLNO={bcSrcDto.MBLNo} slotId={slotId} 没有提取到计费日期", $"MBLNO={bcSrcDto.MBLNo} slotId={slotId} 没有提取到计费日期", App.Configuration["EmailNoticeDefaultUser"].GetUserEmailList());
|
|
|
|
new EmailNoticeHelper().SendEmailNotice($"MBLNO={bcSrcDto.MBLNo} slotId={slotId} 没有提取到计费日期", $"MBLNO={bcSrcDto.MBLNo} slotId={slotId} 没有提取到计费日期", App.Configuration["EmailNoticeDefaultUser"].GetUserEmailList());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool isNeedWholeShip = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CautionNoticeTaskWholeShipDto cautionNoticeTaskWholeShipDto = new CautionNoticeTaskWholeShipDto {
|
|
|
|
|
|
|
|
Carrier = slotInfo.CARRIERID
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
string srcVesselVoyno = $"{bcSrcDto.Vessel}/{bcSrcDto.VoyNo}";
|
|
|
|
string srcVesselVoyno = $"{bcSrcDto.Vessel}/{bcSrcDto.VoyNo}";
|
|
|
|
string targetVesselVoyno = $"{bcTargetDto.Vessel}/{bcTargetDto.VoyNo}";
|
|
|
|
string targetVesselVoyno = $"{bcTargetDto.Vessel}/{bcTargetDto.VoyNo}";
|
|
|
|
|
|
|
|
|
|
|
|
if (!srcVesselVoyno.Equals(targetVesselVoyno, StringComparison.OrdinalIgnoreCase))
|
|
|
|
if (!srcVesselVoyno.Equals(targetVesselVoyno, StringComparison.OrdinalIgnoreCase))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (bookingSlotAllocList.Count > 0)
|
|
|
|
cautionNoticeTaskWholeShipDto.VesselOldVal = bcSrcDto.Vessel;
|
|
|
|
{
|
|
|
|
cautionNoticeTaskWholeShipDto.VesselNewVal = bcTargetDto.Vessel;
|
|
|
|
bookingSlotAllocList.ForEach(async ca =>
|
|
|
|
cautionNoticeTaskWholeShipDto.VoynoOldVal = bcSrcDto.VoyNo;
|
|
|
|
{
|
|
|
|
cautionNoticeTaskWholeShipDto.VoynoNewVal = bcTargetDto.VoyNo;
|
|
|
|
var bookingInfo = _repBookingOrder.AsQueryable().Filter(null, true).First(x => x.Id == ca.Alloc.BOOKING_ID && x.IsDeleted == false
|
|
|
|
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.ChangeVesselVoyno, bcSrcDto, userList, bookingInfo, slotInfo, srcVesselVoyno, targetVesselVoyno, $"提单号:{bcSrcDto.MBLNo} \r\n船名航次变更了 \r\n原:{srcVesselVoyno} \r\n新:{targetVesselVoyno}");
|
|
|
|
isNeedWholeShip = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (slotInfo != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.ChangeVesselVoyno, bcSrcDto, userList, null, slotInfo, srcVesselVoyno, targetVesselVoyno, $"提单号:{bcSrcDto.MBLNo} \r\n船名航次变更了 \r\n原:{srcVesselVoyno} \r\n新:{targetVesselVoyno}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3661,20 +3685,10 @@ namespace Myshipping.Application
|
|
|
|
&& srcCarrierType.Equals("DIRECT_SHIP", StringComparison.OrdinalIgnoreCase)
|
|
|
|
&& srcCarrierType.Equals("DIRECT_SHIP", StringComparison.OrdinalIgnoreCase)
|
|
|
|
&& targetCarrierType.Equals("TRANSFER_SHIP", StringComparison.OrdinalIgnoreCase))
|
|
|
|
&& targetCarrierType.Equals("TRANSFER_SHIP", StringComparison.OrdinalIgnoreCase))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (bookingSlotAllocList.Count > 0)
|
|
|
|
cautionNoticeTaskWholeShipDto.DirectToTransOldVal = "直达";
|
|
|
|
{
|
|
|
|
cautionNoticeTaskWholeShipDto.DirectToTransNewVal = "中转";
|
|
|
|
bookingSlotAllocList.ForEach(async ca =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var bookingInfo = _repBookingOrder.AsQueryable().Filter(null, true).First(x => x.Id == ca.Alloc.BOOKING_ID && x.IsDeleted == false
|
|
|
|
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.ChangeTransfer, bcSrcDto, userList, bookingInfo, slotInfo, "直达", "中转", $"提单号:{bcSrcDto.MBLNo} \r\n直达变成中转了");
|
|
|
|
isNeedWholeShip = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (slotInfo != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.ChangeTransfer, bcSrcDto, userList, null, slotInfo, "直达", "中转", $"提单号:{bcSrcDto.MBLNo} \r\n直达变成中转了");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
string srcVGMCut = bcSrcDto.VGMSubmissionCutDate;
|
|
|
|
string srcVGMCut = bcSrcDto.VGMSubmissionCutDate;
|
|
|
@ -3687,20 +3701,10 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
if (srcVGMCutDate > targeVGMCutDate)
|
|
|
|
if (srcVGMCutDate > targeVGMCutDate)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (bookingSlotAllocList.Count > 0)
|
|
|
|
cautionNoticeTaskWholeShipDto.VGMCutOldVal = srcVGMCutDate.ToString("yyyy-MM-dd HH:mm");
|
|
|
|
{
|
|
|
|
cautionNoticeTaskWholeShipDto.VGMCutNewVal = targeVGMCutDate.ToString("yyyy-MM-dd HH:mm");
|
|
|
|
bookingSlotAllocList.ForEach(async ca =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var bookingInfo = _repBookingOrder.AsQueryable().Filter(null, true).First(x => x.Id == ca.Alloc.BOOKING_ID && x.IsDeleted == false
|
|
|
|
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.VGMCutDateAdvanced, bcSrcDto, userList, bookingInfo, slotInfo, srcVGMCut, targeVGMCut, $"提单号:{bcSrcDto.MBLNo} \r\nVGM截单时间提前了 \r\n原:{srcVGMCut} \r\n新:{targeVGMCut}");
|
|
|
|
isNeedWholeShip = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (slotInfo != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.VGMCutDateAdvanced, bcSrcDto, userList, null, slotInfo, srcVGMCut, targeVGMCut, $"提单号:{bcSrcDto.MBLNo} \r\nVGM截单时间提前了 \r\n原:{srcVGMCut} \r\n新:{targeVGMCut}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -3715,21 +3719,23 @@ namespace Myshipping.Application
|
|
|
|
//如果新给的SI截止时间,需要推送通知
|
|
|
|
//如果新给的SI截止时间,需要推送通知
|
|
|
|
if (srcSICutDate > targeSICutDate)
|
|
|
|
if (srcSICutDate > targeSICutDate)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (bookingSlotAllocList.Count > 0)
|
|
|
|
cautionNoticeTaskWholeShipDto.SICutOldVal = srcSICutDate.ToString("yyyy-MM-dd HH:mm");
|
|
|
|
{
|
|
|
|
cautionNoticeTaskWholeShipDto.SICutNewVal = targeSICutDate.ToString("yyyy-MM-dd HH:mm");
|
|
|
|
bookingSlotAllocList.ForEach(async ca =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var bookingInfo = _repBookingOrder.AsQueryable().Filter(null, true).First(x => x.Id == ca.Alloc.BOOKING_ID && x.IsDeleted == false
|
|
|
|
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.SICutDateAdvanced, bcSrcDto, userList, bookingInfo, slotInfo, srcSICut, targeSICut, $"提单号:{bcSrcDto.MBLNo} \r\n样单截止时间提前了 \r\n原:{srcSICut} \r\n新:{targeSICut}");
|
|
|
|
isNeedWholeShip = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (slotInfo != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CreateTask(CautionNoticeTaskEnum.SICutDateAdvanced, bcSrcDto, userList, null, slotInfo, srcSICut, targeSICut, $"提单号:{bcSrcDto.MBLNo} \r\n样单截止时间提前了 \r\n原:{srcSICut} \r\n新:{targeSICut}");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//这里如果需要做整船提醒,需要单独走重要通知通道
|
|
|
|
|
|
|
|
if (isNeedWholeShip)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//触发推送消息
|
|
|
|
|
|
|
|
var name = _namedTaskCautionNoticeServiceProvider
|
|
|
|
|
|
|
|
.GetService<ITransient>(nameof(TaskCautionNoticeService));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var wholeShipRlt = await name.GenerateWholeShipCaucation(cautionNoticeTaskWholeShipDto, slotInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"触发整船提醒完成,结果={JSON.Serialize(wholeShipRlt)}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3838,6 +3844,7 @@ namespace Myshipping.Application
|
|
|
|
SourceBusiType = dto.sourceBusiType,
|
|
|
|
SourceBusiType = dto.sourceBusiType,
|
|
|
|
SourceBusiTypeName = dto.sourceBusiTypeName,
|
|
|
|
SourceBusiTypeName = dto.sourceBusiTypeName,
|
|
|
|
CreateTime = DateTime.Now,
|
|
|
|
CreateTime = DateTime.Now,
|
|
|
|
|
|
|
|
IsAutoSendNotice = dto.isAutoSendNotice,
|
|
|
|
NoticeList = new List<TaskManageOrderCautionNoticeDetailInfo>()
|
|
|
|
NoticeList = new List<TaskManageOrderCautionNoticeDetailInfo>()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -3878,7 +3885,7 @@ namespace Myshipping.Application
|
|
|
|
/// <param name="targetVal">变更值</param>
|
|
|
|
/// <param name="targetVal">变更值</param>
|
|
|
|
/// <param name="notifyContent">提示信息</param>
|
|
|
|
/// <param name="notifyContent">提示信息</param>
|
|
|
|
private void CreateTask(CautionNoticeTaskEnum cautionNoticeType, TaskBCInfoDto bcSrcDto, List<SysUser> userList, BookingOrder bookingInfo,
|
|
|
|
private void CreateTask(CautionNoticeTaskEnum cautionNoticeType, TaskBCInfoDto bcSrcDto, List<SysUser> userList, BookingOrder bookingInfo,
|
|
|
|
BookingSlotBase bookingSlotInfo, string srcVal, string targetVal, string notifyContent)
|
|
|
|
BookingSlotBase bookingSlotInfo, string srcVal, string targetVal, string notifyContent,bool isAutoSendNotice)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
List<long> userIdList = new List<long>();
|
|
|
|
List<long> userIdList = new List<long>();
|
|
|
|
|
|
|
|
|
|
|
@ -3932,6 +3939,7 @@ namespace Myshipping.Application
|
|
|
|
vessel = bcSrcDto.Vessel,
|
|
|
|
vessel = bcSrcDto.Vessel,
|
|
|
|
voyno = bcSrcDto.VoyNo,
|
|
|
|
voyno = bcSrcDto.VoyNo,
|
|
|
|
tenentName = UserManager.TENANT_NAME,
|
|
|
|
tenentName = UserManager.TENANT_NAME,
|
|
|
|
|
|
|
|
isAutoSendNotice = isAutoSendNotice,
|
|
|
|
|
|
|
|
|
|
|
|
notifyContent = notifyContent,
|
|
|
|
notifyContent = notifyContent,
|
|
|
|
notifyList = new List<CautionNoticeTaskNoitfyDto>()
|
|
|
|
notifyList = new List<CautionNoticeTaskNoitfyDto>()
|
|
|
@ -4293,7 +4301,7 @@ namespace Myshipping.Application
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(operEnum == LabelRegexOperEnum.equal)
|
|
|
|
if(operEnum == LabelRegexOperEnum.equal)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PORTLOADID.Equals(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOADID) && dto.DataObj.PORTLOADID.Equals(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
|
|
|
@ -4303,7 +4311,7 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PORTLOADID.StartsWith(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOADID) && dto.DataObj.PORTLOADID.StartsWith(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4312,7 +4320,7 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PORTLOADID.Contains(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOADID) && dto.DataObj.PORTLOADID.Contains(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4321,7 +4329,25 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!dto.DataObj.PORTLOADID.Equals(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOADID) && !dto.DataObj.PORTLOADID.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notequal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOADID) && !dto.DataObj.PORTLOADID.Equals(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notstartwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOADID) && !dto.DataObj.PORTLOADID.StartsWith(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4333,7 +4359,7 @@ namespace Myshipping.Application
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (operEnum == LabelRegexOperEnum.equal)
|
|
|
|
if (operEnum == LabelRegexOperEnum.equal)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PLACERECEIPT.Equals(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACERECEIPT) && dto.DataObj.PLACERECEIPT.Equals(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4342,7 +4368,7 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PLACERECEIPT.StartsWith(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACERECEIPT) && dto.DataObj.PLACERECEIPT.StartsWith(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4351,7 +4377,7 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PLACERECEIPT.Contains(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACERECEIPT) && dto.DataObj.PLACERECEIPT.Contains(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4360,7 +4386,25 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!dto.DataObj.PLACERECEIPT.Equals(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACERECEIPT) && !dto.DataObj.PLACERECEIPT.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notequal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACERECEIPT) && !dto.DataObj.PLACERECEIPT.Equals(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notstartwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACERECEIPT) && !dto.DataObj.PLACERECEIPT.StartsWith(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4372,7 +4416,64 @@ namespace Myshipping.Application
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (operEnum == LabelRegexOperEnum.equal)
|
|
|
|
if (operEnum == LabelRegexOperEnum.equal)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PORTLOAD.Equals(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOAD) && dto.DataObj.PORTLOAD.Equals(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOAD) && dto.DataObj.PORTLOAD.StartsWith(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOAD) && dto.DataObj.PORTLOAD.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notequal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOAD) && !dto.DataObj.PORTLOAD.Equals(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOAD) && !dto.DataObj.PORTLOAD.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notstartwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTLOAD) && !dto.DataObj.PORTLOAD.StartsWith(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (regList[j].name.Equals("PORTDISCHARGEID", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (operEnum == LabelRegexOperEnum.equal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGEID) && dto.DataObj.PORTDISCHARGEID.Equals(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4381,7 +4482,7 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PORTLOAD.StartsWith(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGEID) && dto.DataObj.PORTDISCHARGEID.StartsWith(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4390,7 +4491,16 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (dto.DataObj.PORTLOAD.Contains(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGEID) && dto.DataObj.PORTDISCHARGEID.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notequal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGEID) && !dto.DataObj.PORTDISCHARGEID.Equals(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
@ -4399,7 +4509,130 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!dto.DataObj.PORTLOAD.Equals(regList[j].val))
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGEID) && !dto.DataObj.PORTDISCHARGEID.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notstartwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGEID) && !dto.DataObj.PORTDISCHARGEID.StartsWith(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (regList[j].name.Equals("PORTDISCHARGE", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (operEnum == LabelRegexOperEnum.equal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGE) && dto.DataObj.PORTDISCHARGE.Equals(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGE) && dto.DataObj.PORTDISCHARGE.StartsWith(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGE) && dto.DataObj.PORTDISCHARGE.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notequal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGE) && !dto.DataObj.PORTDISCHARGE.Equals(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGE) && !dto.DataObj.PORTDISCHARGE.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notstartwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PORTDISCHARGE) && !dto.DataObj.PORTDISCHARGE.StartsWith(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (regList[j].name.Equals("PLACEDELIVERY", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (operEnum == LabelRegexOperEnum.equal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACEDELIVERY) && dto.DataObj.PLACEDELIVERY.Equals(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.startwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACEDELIVERY) && dto.DataObj.PLACEDELIVERY.StartsWith(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.like)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACEDELIVERY) && dto.DataObj.PLACEDELIVERY.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notequal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACEDELIVERY) && !dto.DataObj.PLACEDELIVERY.Equals(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notexists)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACEDELIVERY) && !dto.DataObj.PLACEDELIVERY.Contains(regList[j].val))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
|
|
|
|
isSucc = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (operEnum == LabelRegexOperEnum.notstartwith)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dto.DataObj.PLACEDELIVERY) && !dto.DataObj.PLACEDELIVERY.StartsWith(regList[j].val))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
ruleList.Add(labelList[i]);
|
|
|
|
isSucc = true;
|
|
|
|
isSucc = true;
|
|
|
|