|
@@ -7739,6 +7739,32 @@ namespace OASystem.API.Controllers
|
|
|
JsonView jw = null;
|
|
|
bool isTrue = false;
|
|
|
|
|
|
+ #region 复制团组成本
|
|
|
+ //if (dto.Diid == 2581)
|
|
|
+ //{
|
|
|
+ // dto.Diid = 2599;
|
|
|
+ // dto.CheckBoxs.ForEach(x =>
|
|
|
+ // {
|
|
|
+ // x.Diid = 2599;
|
|
|
+ // });
|
|
|
+
|
|
|
+ // dto.GroupCosts.ForEach(x =>
|
|
|
+ // {
|
|
|
+ // x.Diid = 2599;
|
|
|
+ // });
|
|
|
+
|
|
|
+ // dto.CostTypeHotelNumbers.ForEach(x =>
|
|
|
+ // {
|
|
|
+ // x.Diid = 2599;
|
|
|
+ // });
|
|
|
+
|
|
|
+ // dto.GroupCostParameters.ForEach(x =>
|
|
|
+ // {
|
|
|
+ // x.DiId = 2599;
|
|
|
+ // });
|
|
|
+ //}
|
|
|
+ #endregion
|
|
|
+
|
|
|
var Grp_groups = _mapper.Map<List<Grp_GroupCost>>(dto.GroupCosts);
|
|
|
Grp_groups.ForEach(x => { x.CreateUserId = dto.Userid; x.CreateTime = DateTime.Now; }); //.ToString("yyyy-MM-dd HH:mm:ss")
|
|
|
var Grp_CheckBoxs = _mapper.Map<List<Grp_CheckBoxs>>(dto.CheckBoxs);
|
|
@@ -12073,6 +12099,24 @@ ORDER by gctggrc.id DESC
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 报批行程初始化
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ public IActionResult ApprovalJourneyInit(ApprovalJourneyDto dto)
|
|
|
+ {
|
|
|
+ const int chiNumber = 5;
|
|
|
+ var jw = JsonView(false);
|
|
|
+ if (dto.Diid == -1)
|
|
|
+ {
|
|
|
+ dto.Diid = _sqlSugar.Queryable<Grp_DelegationInfo>().First(x => x.IsDel == 0).Id;
|
|
|
+ }
|
|
|
+ return Ok(jw);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
// /// <summary>
|
|
|
// ///
|