|
@@ -49,6 +49,33 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
return sql;
|
|
|
}
|
|
|
|
|
|
+ #region 获取添加后的新数据
|
|
|
+ public async Task<Grp_ScheduleDetailView> GetInsertBackData(int detailId)
|
|
|
+ {
|
|
|
+ Grp_ScheduleDetailInfo item = await _sqlSugar.Queryable<Grp_ScheduleDetailInfo>().FirstAsync(s => s.Id == detailId);
|
|
|
+ if (item != null)
|
|
|
+ {
|
|
|
+ Grp_ScheduleDetailView temp = new Grp_ScheduleDetailView();
|
|
|
+ temp.Duty = item.Duty;
|
|
|
+ temp.Exception = item.Exception;
|
|
|
+ temp.ExpectBeginDt = item.ExpectBeginDt;
|
|
|
+ temp.ExpectEndDt = item.ExpectEndDt;
|
|
|
+ temp.DetailId = item.Id;
|
|
|
+ temp.JobContent = item.JobContent;
|
|
|
+ temp.Level = item.SLevel;
|
|
|
+ temp.RealEndDt = item.RealEndDt;
|
|
|
+ temp.Remark = item.Remark;
|
|
|
+ temp.Root = item.ParentStep;
|
|
|
+ temp.Step = item.Step;
|
|
|
+ temp.StepStatus = item.StepStatus;
|
|
|
+
|
|
|
+ return temp;
|
|
|
+ }
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 获取团组流程数据单个对象
|
|
|
/// </summary>
|