You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.8 KiB
C#

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);
6 months ago
/// <summary>
/// 发起审批工作流
/// </summary>
/// <param name="auditType">审批类型</param>
/// <param name="remark">备注</param>
6 months ago
/// <param name="idArray">费用记录ID</param>
/// <returns></returns>
DataResult SubmitForApproval(FeeAuditType auditType, string remark, params long[] idArray);
6 months ago
/// <summary>
/// 发起费用修改申请
/// </summary>
/// <param name="items">费用修改信息</param>
/// <returns></returns>
DataResult SubmitForModification(IEnumerable<FeeModification> items);
/// <summary>
/// 撤销审批
/// </summary>
6 months ago
/// <param name="ids">费用记录ID</param>
/// <returns></returns>
6 months ago
DataResult Withdraw(params long[] ids);
/// <summary>
/// 发起整单审核
/// </summary>
/// <param name="bid">业务ID</param>
/// <param name="type">业务类型</param>
/// <returns></returns>
DataResult SubmitBusinessAudit(long bid, BusinessType type);
/// <summary>
/// 获取费用核算单打印信息
/// </summary>
/// <param name="businessType">业务类型</param>
/// <param name="idArray">费用记录ID</param>
/// <returns></returns>
DataResult<CostAccountingForm> GetPrintInfo(BusinessType businessType, params long[] idArray);
/// <summary>
/// 设置发票启用状态
/// </summary>
/// <param name="enabled">是否启用</param>
/// <param name="idArray">费用记录ID</param>
/// <returns></returns>
DataResult SetInvoiceEnabled(bool enabled, params long[] idArray);
}