|
|
@@ -113,7 +113,8 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
Grp_ProcessNode.Create(3, "提交客户所需报件材料完毕",oaNode3Tips,ProcessStatus.InProgress, false,false,false,false, currUserId ,oaNodeOpUsers),
|
|
|
Grp_ProcessNode.Create(4, "对接公务",oaNode4Tips,ProcessStatus.InProgress, false,false,false,false, currUserId,oaNodeOpUsers),
|
|
|
Grp_ProcessNode.Create(5, "参与公务翻译人员落实",oaNode5Tips,ProcessStatus.InProgress, false,false,false,true, currUserId,oaNodeOpUsers),
|
|
|
- Grp_ProcessNode.Create(6, "公务邀请数据有效录入",oaNode7Tips,ProcessStatus.InProgress, false,false,true,false, currUserId,oaNodeOpUsers),
|
|
|
+ Grp_ProcessNode.Create(6, "公务邀请数据有效录入",oaNode6Tips,ProcessStatus.InProgress, false,false,false,true, currUserId,oaNodeOpUsers),
|
|
|
+ Grp_ProcessNode.Create(7, "文件上传",oaNode7Tips,ProcessStatus.InProgress, false,false,true,false, currUserId,oaNodeOpUsers),
|
|
|
}
|
|
|
));
|
|
|
#endregion
|
|
|
@@ -372,7 +373,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
|
|
|
var processData = await _sqlSugar.Queryable<Grp_ProcessOverview>()
|
|
|
.Where(p => p.GroupId == groupId && p.IsDel == 0)
|
|
|
- .Mapper(p => p.Nodes, p => p.Nodes.First().ProcessId)
|
|
|
+ .Mapper(
|
|
|
+ p => p.Nodes,
|
|
|
+ p => p.Nodes.First().ProcessId
|
|
|
+ )
|
|
|
.ToListAsync();
|
|
|
|
|
|
// 预先构建用户字典,提升查询性能
|
|
|
@@ -380,7 +384,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
|
|
|
var processes = processData.Select(p =>
|
|
|
{
|
|
|
- var orderedNodes = p.Nodes.OrderBy(n => n.NodeOrder).ToList();
|
|
|
+ var orderedNodes = p.Nodes.Where(x => x.IsDel == 0).OrderBy(n => n.NodeOrder).ToList();
|
|
|
var totalNodes = orderedNodes.Count;
|
|
|
|
|
|
return new ProcessDetailsView()
|
|
|
@@ -447,15 +451,16 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
Operator = operatorName,
|
|
|
OpeateTime = n.OperationTime?.ToString("yyyy-MM-dd HH:mm:ss") ?? "-",
|
|
|
ActualDone = n.ActualDone?.ToString("yyyy-MM-dd HH:mm:ss") ?? "",
|
|
|
- OpUserList = n.OpUserList, //可操作用户列表
|
|
|
- NodeDescTips = nodeTipsMsg,
|
|
|
- IsEnaAssistBtn = isEnaAssistBtn, // 是否启用财务流程首节点协助按钮
|
|
|
- IsAssist = n.IsAssist, // 财务流程首节点 存储值
|
|
|
- IsEnaFileUpBtn = isEnaFileUpBtn, // 是否启用上传文件按钮
|
|
|
- IsFileUp = n.IsFileUp, // 票据上传节点 存储值
|
|
|
- IsEnaPartBtn = isEnaPartBtn, // 是否启用参与按钮
|
|
|
- IsPart = n.IsPart, // 参与按钮 存储值
|
|
|
- VisaSubNodes = visaSubNodes // 签证节点类型使用
|
|
|
+ OpUserList = n.OpUserList, //可操作用户列表
|
|
|
+ NodeDescTips = nodeTipsMsg,
|
|
|
+ IsEnaAssistBtn = isEnaAssistBtn, // 是否启用财务流程首节点协助按钮
|
|
|
+ IsAssist = n.IsAssist, // 财务流程首节点 存储值
|
|
|
+ IsEnaFileUpBtn = isEnaFileUpBtn, // 是否启用上传文件按钮
|
|
|
+ IsFileUp = n.IsFileUp, // 上传文件节点 存储值
|
|
|
+ IsEnaPartBtn = isEnaPartBtn, // 是否启用参与按钮
|
|
|
+ IsPart = n.IsPart, // 参与按钮 存储值
|
|
|
+ VisaSubNodes = visaSubNodes, // 签证节点类型使用
|
|
|
+ Remark = n.Remark
|
|
|
};
|
|
|
}).ToList()
|
|
|
};
|
|
|
@@ -1369,6 +1374,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
node.IsAssist = isAssist;
|
|
|
node.IsFileUp = isFileUp;
|
|
|
node.IsPart = isPart;
|
|
|
+ if (!string.IsNullOrEmpty(dto.Remark))
|
|
|
+ {
|
|
|
+ node.Remark = dto.Remark;
|
|
|
+ }
|
|
|
|
|
|
// 3. 保存节点更新
|
|
|
await _sqlSugar.Updateable(node)
|
|
|
@@ -1378,6 +1387,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
n.IsAssist,
|
|
|
n.IsFileUp,
|
|
|
n.IsPart,
|
|
|
+ n.Remark,
|
|
|
})
|
|
|
.ExecuteCommandAsync();
|
|
|
//记录节点日志
|
|
|
@@ -1660,6 +1670,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
ActualDone = n.ActualDone?.ToString("yyyy-MM-dd HH:mm:ss") ?? "",
|
|
|
IsEnaFileUpBtn = isEnaFileUpBtn,
|
|
|
IsFileUp = n.IsFileUp, // 票据上传节点 存储值
|
|
|
+ Remark = n.Remark
|
|
|
};
|
|
|
}).ToList()
|
|
|
};
|
|
|
@@ -2227,6 +2238,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
|
|
|
node.IsFileUp = isFileUp;
|
|
|
node.Participators = dto.Participators;
|
|
|
+ if (!string.IsNullOrEmpty(dto.Remark))
|
|
|
+ {
|
|
|
+ node.Remark = dto.Remark;
|
|
|
+ }
|
|
|
|
|
|
// 3. 保存节点更新
|
|
|
await _sqlSugar.Updateable(node)
|
|
|
@@ -2235,6 +2250,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
n.ActualDone,
|
|
|
n.Participators,
|
|
|
n.IsFileUp,
|
|
|
+ n.Remark
|
|
|
})
|
|
|
.ExecuteCommandAsync();
|
|
|
//记录节点日志
|