Commit 5160e0cc by lcx

删除划拨记录

parent 8d666ae5
...@@ -172,9 +172,21 @@ public void UpdateApplicat(CostTransferUpdateRequest request) ...@@ -172,9 +172,21 @@ public void UpdateApplicat(CostTransferUpdateRequest request)
/// <summary> /// <summary>
/// 删除划拨申请记录 /// 删除划拨申请记录
/// </summary> /// </summary>
public void DeleteApplicat() public void DeleteApplicat(int transferId)
{ {
var transfer = costtransferRepository.GetEntity(t => t.Id == transferId);
if (transfer == null)
throw new PerformanceException("划拨申请记录不存在");
var result = costtransferRepository.Update(transfer);
if (!result)
throw new PerformanceException("删除划拨申请记录失败");
var items = costtransferitemRepository.GetEntities(t => t.TransferId == transferId);
if (items != null && items.Any())
{
costtransferitemRepository.RemoveRange(items.ToArray());
}
} }
/// <summary> /// <summary>
...@@ -188,8 +200,17 @@ public void CostTransferAudit() ...@@ -188,8 +200,17 @@ public void CostTransferAudit()
/// <summary> /// <summary>
/// 下发驳回 /// 下发驳回
/// </summary> /// </summary>
public bool RejectedApplicat() /// <param name="allotId"></param>
/// <param name="transferId"></param>
/// <param name="issue"></param>
/// <returns></returns>
public bool RejectedApplicat(int allotId, int transferId = 0, bool issue = false)
{ {
if (issue)
{
}
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment