|
|
@ -1292,7 +1292,10 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
if (bookingOrderEntity.OperatorId > 0)
|
|
|
|
if (bookingOrderEntity.OperatorId > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var opId = bookingOrderEntity.OperatorId;
|
|
|
|
var opId = bookingOrderEntity.OperatorId;
|
|
|
|
var opUser = _userService.GetUserInfo(opId.ToString()).Data;
|
|
|
|
|
|
|
|
|
|
|
|
var opUser = db.Queryable<SysUser>().Filter(null,true).First(x => x.Id == bookingOrderEntity.OperatorId && x.TenantId == long.Parse(user.TenantId));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//var opUser = _userService.GetUserInfo(opId.ToString()).Data;
|
|
|
|
|
|
|
|
|
|
|
|
if (opUser != null && !string.IsNullOrWhiteSpace(opUser.Email))
|
|
|
|
if (opUser != null && !string.IsNullOrWhiteSpace(opUser.Email))
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1326,7 +1329,7 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
string emailTitle = $"Booking Confirmation : {taskBCInfo.MBL_NO}";
|
|
|
|
string emailTitle = $"Booking Confirmation : {taskBCInfo.MBL_NO}";
|
|
|
|
string filePath = string.Empty;
|
|
|
|
string filePath = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
UserViewModel opUserInfo = _userService.GetUserInfo(bookingOrderEntity.OperatorId.ToString()).Data;
|
|
|
|
var opUserInfo = db.Queryable<SysUser>().Filter(null, true).First(x => x.Id == bookingOrderEntity.OperatorId && x.TenantId == long.Parse(user.TenantId));
|
|
|
|
|
|
|
|
|
|
|
|
if (taskBCInfo.BUSI_TYPE == "BookingAmendment")
|
|
|
|
if (taskBCInfo.BUSI_TYPE == "BookingAmendment")
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1470,7 +1473,7 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
/// <param name="opUserInfo">订舱OP详情</param>
|
|
|
|
/// <param name="opUserInfo">订舱OP详情</param>
|
|
|
|
/// <param name="tenantName">当前租户全称</param>
|
|
|
|
/// <param name="tenantName">当前租户全称</param>
|
|
|
|
/// <returns>返回生成的HTML</returns>
|
|
|
|
/// <returns>返回生成的HTML</returns>
|
|
|
|
public async Task<string> GenerateSendEmailHtml(TaskBCInfo taskBCInfo, UserViewModel opUserInfo, string tenantName)
|
|
|
|
public async Task<string> GenerateSendEmailHtml(TaskBCInfo taskBCInfo, SysUser opUserInfo, string tenantName)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string result = string.Empty;
|
|
|
|
string result = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
@ -1629,7 +1632,7 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
/// <param name="opUserInfo">订舱OP详情</param>
|
|
|
|
/// <param name="opUserInfo">订舱OP详情</param>
|
|
|
|
/// <param name="tenantName">当前租户全称</param>
|
|
|
|
/// <param name="tenantName">当前租户全称</param>
|
|
|
|
/// <returns>返回生成的HTML</returns>
|
|
|
|
/// <returns>返回生成的HTML</returns>
|
|
|
|
public async Task<string> GenerateSendEmailHtmlAmendment(TaskBCInfo taskBCInfo, UserViewModel opUserInfo, string tenantName)
|
|
|
|
public async Task<string> GenerateSendEmailHtmlAmendment(TaskBCInfo taskBCInfo, SysUser opUserInfo, string tenantName)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string result = string.Empty;
|
|
|
|
string result = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|