修改稽查bug

Uat_Study
hang 2022-09-14 17:04:32 +08:00
parent 137723afae
commit 85ea388a79
1 changed files with 29 additions and 36 deletions

View File

@ -2077,42 +2077,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var visitTask = entityObj as VisitTask;
switch (_userInfo.RequestUrl)
{
//申请重阅
case "VisitTask/applyReReading":
type = type + "/" + (int)visitTask.ReReadingApplyState;
break;
//同意重阅
case "VisitTask/ConfirmReReading":
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.APM)
{
type = type + "/" + 1;
}
else
{
type = type + "/" + 2;
}
//if (visitTask.ReReadingApplyState == ReReadingApplyState.Agree)
//{
// type = type + "/" + 1;
//}
//else if (visitTask.ReReadingApplyState == ReReadingApplyState.Reject)
//{
// type = type + "/" + 2;
//}
break;
}
if (type == AuditOpt.Add)
{
@ -2135,6 +2099,35 @@ namespace IRaCIS.Core.Infra.EFCore.Common
}
else
{
switch (_userInfo.RequestUrl)
{
//申请重阅
case "VisitTask/applyReReading":
type = type + "/" + (int)visitTask.ReReadingApplyState;
break;
//同意重阅
case "VisitTask/ConfirmReReading":
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.APM)
{
type = type + "/" + 1;
}
else
{
type = type + "/" + 2;
}
break;
}
}
break;