|
|
|
@ -117,24 +117,24 @@ namespace Myshipping.Application.Event
|
|
|
|
|
YardCode = order.YARDID == "" ? null : order.YARDID,
|
|
|
|
|
CARRIER = order.CARRIER == "" ? null : order.CARRIER,
|
|
|
|
|
CARRIERID = order.CARRIERID == "" ? null : order.CARRIERID,
|
|
|
|
|
isBook = true,
|
|
|
|
|
isBook = false,
|
|
|
|
|
AlertEmail = string.Join(";", emailList)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var status = string.Empty;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(order.YARDID) && !string.IsNullOrWhiteSpace(order.CARRIERID))
|
|
|
|
|
{
|
|
|
|
|
status = "订阅起运港,目的港";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (string.IsNullOrWhiteSpace(order.YARDID) && !string.IsNullOrWhiteSpace(order.CARRIERID))
|
|
|
|
|
{
|
|
|
|
|
status = "订阅目的港";
|
|
|
|
|
}
|
|
|
|
|
else if (!string.IsNullOrWhiteSpace(order.YARDID) && string.IsNullOrWhiteSpace(order.CARRIERID))
|
|
|
|
|
{
|
|
|
|
|
status = "订阅起运港";
|
|
|
|
|
}
|
|
|
|
|
var status = "订阅起运港";
|
|
|
|
|
//if (!string.IsNullOrWhiteSpace(order.YARDID) && !string.IsNullOrWhiteSpace(order.CARRIERID))
|
|
|
|
|
//{
|
|
|
|
|
// status = "订阅起运港,目的港";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//if (string.IsNullOrWhiteSpace(order.YARDID) && !string.IsNullOrWhiteSpace(order.CARRIERID))
|
|
|
|
|
//{
|
|
|
|
|
// status = "订阅目的港";
|
|
|
|
|
//}
|
|
|
|
|
//else if (!string.IsNullOrWhiteSpace(order.YARDID) && string.IsNullOrWhiteSpace(order.CARRIERID))
|
|
|
|
|
//{
|
|
|
|
|
// status = "订阅起运港";
|
|
|
|
|
//}
|
|
|
|
|
var stalogids = _repStatuslog.AsQueryable().Filter(null, true).Where(x => x.BookingId == order.Id).Select(x => x.Id).ToList();
|
|
|
|
|
_repBookingStatus.Delete(x => x.BookingId == order.Id);
|
|
|
|
|
_repStatuslogDetail.Delete(x => stalogids.Contains(x.PId));
|
|
|
|
|