修改任务重复时的提示信息

usertest
嵇文龙 4 months ago
parent 3096d9f328
commit f0d68a8f0a

@ -1479,7 +1479,7 @@ public static class MultiLanguageConst
#endregion
#region 关联任务
[Description("此类型的任务已存在")]
[Description("此任务已存在,请勿重复提交")]
public const string TaskExists = "Task_Exists";
[Description("此任务已完成")]
public const string TaskCompleted = "Task_Completed";

@ -20,7 +20,7 @@ namespace DS.WMS.Core.Op.Dtos.TaskInteraction
/// </summary>
public BusinessType BusinessType { get; set; }
TaskBaseTypeEnum _defaultTaskType = TaskBaseTypeEnum.NOT_SPECIFIED;
static readonly TaskBaseTypeEnum _defaultTaskType = TaskBaseTypeEnum.NOT_SPECIFIED;
/// <summary>
/// 任务类型
/// </summary>

@ -85,9 +85,6 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
/// <returns></returns>
protected virtual async Task<bool> EnsureModuleAuthorized()
{
//if (!await Db.Queryable<SysPermissionTenant>().AnyAsync(x => x.PermissionId == PERMISSION_ID))
// return false;
long tid = long.Parse(User.TenantId);
var authStr = await Db.Queryable<SysTenantPermissionAuth>().Where(x => x.PermissionId == PERMISSION_ID && x.TenantId == tid &&
SqlFunc.Subqueryable<SysPermissionTenant>().Where(spt => spt.PermissionId == x.PermissionId).Any())

Loading…
Cancel
Save