|
|
|
using DS.Module.Core;
|
|
|
|
using DS.WMS.Core.Fee.Dtos;
|
|
|
|
using DS.WMS.Core.Fee.Entity;
|
|
|
|
using DS.WMS.Core.Flow.Dtos;
|
|
|
|
using DS.WMS.Core.Op.Entity;
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Fee.Interface;
|
|
|
|
|
|
|
|
public interface IFeeRecordService
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult<List<FeeRecordRes>> GetListByPage(PageRequest request);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="query">查询条件</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult<List<FeeRecord>> GetList(string query);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 提交
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="items">要提交的费用记录</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult InsertOrUpdate(IEnumerable<FeeRecord> items);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 根据费用模板引入
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="bid">业务ID</param>
|
|
|
|
/// <param name="type">业务类型</param>
|
|
|
|
/// <param name="tidArray">模板ID</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult CreateByTemplate(long bid, BusinessType type, params long[] tidArray);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 删除
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ids"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult Delete(params long[] ids);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发起审批工作流
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="auditType">审批类型</param>
|
|
|
|
/// <param name="idArray">费用记录ID</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult SubmitForApproval(FeeAuditType auditType, params long[] idArray);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发起费用修改申请
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="items">费用修改信息</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult SubmitForModification(IEnumerable<FeeModification> items);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 撤销审批
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ids">费用记录ID</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult Withdraw(params long[] ids);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 根据审批结果更新审批状态
|
|
|
|
/// </summary>
|
|
|
|
///<param name="callback">回调信息</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult UpdateAuditStatus(FlowCallback callback);
|
|
|
|
|
|
|
|
|
|
|
|
}
|