|
@@ -59,6 +59,29 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
#endregion
|
|
|
_view.Primary = primary;
|
|
|
|
|
|
+ #region 主流程节点
|
|
|
+
|
|
|
+ List<Grp_ScheduleRootView> rootList = new List<Grp_ScheduleRootView>()
|
|
|
+ {
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Wait },
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Confirm},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Budget},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Feedback},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Puote},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Visa},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Business},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.CostAudit},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Pay},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Training},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.DropOff},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.PickUp},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Collect},
|
|
|
+ new Grp_ScheduleRootView() { Root = (int)GrpSchedulePrimaryStepEnum.Finish}
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
#region 子节点
|
|
|
|
|
|
//子节点
|
|
@@ -105,10 +128,17 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
}
|
|
|
}
|
|
|
temp.ChildList = new List<Grp_ScheduleDetailView>(tempChildList);
|
|
|
+
|
|
|
+
|
|
|
childList.Add(temp);
|
|
|
}
|
|
|
#endregion
|
|
|
- _view.ChildList = new List<Grp_ScheduleDetailView>(childList);
|
|
|
+ foreach (var item in rootList)
|
|
|
+ {
|
|
|
+ item.ChildList = new List<Grp_ScheduleDetailView>(childList.Where(s => s.Root == item.Root).ToList());
|
|
|
+ }
|
|
|
+
|
|
|
+ _view.RootList = new List<Grp_ScheduleRootView>(rootList);
|
|
|
|
|
|
#region 流程人员
|
|
|
List<Grp_SchedulePersonInfo> personEntityList = _sqlSugar.Queryable<Grp_SchedulePersonInfo>().Where(s => s.IsDel != 1 && s.ScheduleId == _dto.ScheduleId).ToList();
|
|
@@ -118,7 +148,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
Grp_SchedulePersonView temp = new Grp_SchedulePersonView();
|
|
|
temp.JobStr = item.JobStr;
|
|
|
temp.PersonId = item.Id;
|
|
|
- temp.PersonRemark=item.Remark;
|
|
|
+ temp.PersonRemark = item.Remark;
|
|
|
temp.SysUserId = item.SysUserId;
|
|
|
temp.SysUserName = item.SysUserName;
|
|
|
personList.Add(temp);
|
|
@@ -143,7 +173,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
return _viewList;
|
|
|
}
|
|
|
|
|
|
- public void bulkInsert<T>(List<T> list)
|
|
|
+ public void bulkInsert<T>(List<T> list) where T : class, new()
|
|
|
{
|
|
|
_sqlSugar.Insertable(list).UseParameter().ExecuteCommand();
|
|
|
}
|