|
@@ -32,10 +32,12 @@ namespace OASystem.API.Controllers
|
|
|
private readonly DelegationInfoRepository _groupRepository;
|
|
|
private readonly TaskAssignmentRepository _taskAssignmentRep;
|
|
|
private readonly AirTicketResRepository _airTicketResRep;
|
|
|
+ private readonly DecreasePaymentsRepository _decreasePaymentsRep;
|
|
|
private readonly SqlSugarClient _sqlSugar;
|
|
|
private string url;
|
|
|
private string path;
|
|
|
- public GroupsController(IMapper mapper,SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository, TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep)
|
|
|
+ public GroupsController(IMapper mapper,SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository,
|
|
|
+ TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep, DecreasePaymentsRepository decreasePaymentsRep)
|
|
|
{
|
|
|
_mapper = mapper;
|
|
|
_grpScheduleRep = grpScheduleRep;
|
|
@@ -49,6 +51,7 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
System.IO.Directory.CreateDirectory(path);//不存在就创建文件夹
|
|
|
}
|
|
|
+ _decreasePaymentsRep = decreasePaymentsRep;
|
|
|
}
|
|
|
|
|
|
#region 流程管控
|
|
@@ -1056,7 +1059,9 @@ namespace OASystem.API.Controllers
|
|
|
Paragraph p = new Paragraph(doc);
|
|
|
string s = value;
|
|
|
p.AppendChild(new Run(doc, s));
|
|
|
+ p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
|
|
ishcel0.AppendChild(p);
|
|
|
+ ishcel0.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;//垂直居中对齐
|
|
|
index++;
|
|
|
}
|
|
|
row++;
|
|
@@ -1113,12 +1118,12 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
if (!name.Contains(clientName))
|
|
|
{
|
|
|
- name = name + "," + clientName;
|
|
|
+ name+=clientName+",";
|
|
|
}
|
|
|
}
|
|
|
if (!string.IsNullOrWhiteSpace(name))
|
|
|
{
|
|
|
- table.Range.Bookmarks["ClientName"].Text = name;
|
|
|
+ table.Range.Bookmarks["ClientName"].Text = name.Substring(0,name.Length-1);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1376,7 +1381,10 @@ namespace OASystem.API.Controllers
|
|
|
Paragraph p = new Paragraph(doc);
|
|
|
string s = value;
|
|
|
p.AppendChild(new Run(doc, s));
|
|
|
+ p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
|
|
ishcel0.AppendChild(p);
|
|
|
+ ishcel0.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;//垂直居中对齐
|
|
|
+ //ishcel0.CellFormat.VerticalAlignment=
|
|
|
index++;
|
|
|
}
|
|
|
row++;
|
|
@@ -1487,5 +1495,56 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
}
|
|
|
#endregion
|
|
|
+
|
|
|
+ #region 团组增减款项
|
|
|
+ /// <summary>
|
|
|
+ /// 团组增减款项下拉框绑定
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> DecreasePaymentsSelect(DecreasePaymentsDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ Result groupData = await _decreasePaymentsRep.DecreasePaymentsSelect(dto);
|
|
|
+ if (groupData.Code != 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, groupData.Msg));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 根据团组Id查询团组增减款项
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> DecreasePaymentsList(DecreasePaymentsListDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ Result groupData = await _decreasePaymentsRep.DecreasePaymentsList(dto);
|
|
|
+ if (groupData.Code != 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, groupData.Msg));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
}
|
|
|
}
|