|
|
@ -1545,6 +1545,16 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
if (string.IsNullOrWhiteSpace(primaryModel.EDIATTNEMAIL))
|
|
|
|
if (string.IsNullOrWhiteSpace(primaryModel.EDIATTNEMAIL))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
primaryModel.EDIATTNEMAIL = ftpSet.SendEmail;
|
|
|
|
primaryModel.EDIATTNEMAIL = ftpSet.SendEmail;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ediRouteEnum == EDIRouteEnum.YT && string.IsNullOrWhiteSpace(primaryModel.EDIATTNEMAIL))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var currUser = db.Queryable<SysUser>().Where(x => x.Id == long.Parse(user.UserId)).First();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (currUser != null && !string.IsNullOrWhiteSpace(currUser.Email))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
primaryModel.EDIATTNEMAIL = currUser.Email;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
primaryModel.AMSCONSIGNEE = ediExtModel.AMSConsignee;
|
|
|
|
primaryModel.AMSCONSIGNEE = ediExtModel.AMSConsignee;
|
|
|
|