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

46 lines
1.6 KiB

2 years ago
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Win_in.Sfs.Basedata.Domain;
using Win_in.Sfs.Shared.Application.Contracts;
namespace Win_in.Sfs.Basedata.Application.Contracts;
public interface IBomAppService
: ISfsBaseDataAppServiceBase<BomDTO, SfsBaseDataRequestInputBase, BomEditInput>
, ISfsUpsertAppService<BomEditInput>
{
Task<List<BomDTO>> GetListAsync(string productItemCode, string mfgOp);
Task<List<BomDTO>> GetPlanListAsync(string productItemCode, string mfgOp);
Task<List<BomDTO>> GetBackFlushListAsync(string productItemCode, string mfgOp);
Task<List<BomDTO>> GetBomStepByStepAsync(string productItemCode, DateTime validTime, bool isStepByStep = true);
/// <summary>
/// 所有子物料号
/// </summary>
/// <param name="product"></param>
/// <returns></returns>
Task<List<Bom>> GetListOfProductAsync(string product);
/// <summary>
/// 所有父物料号
/// </summary>
/// <param name="component"></param>
/// <returns></returns>
Task<List<Bom>> GetListOfComponentAsync(string component);
Task AddOrUpsertListAsync(List<BomEditInput> inputs);
2 years ago
Task UpsertAsyncByInterface(BomEditInput input);
/// <summary>
/// 根据总成号、总成数量取所有子物料及其汇总数量
/// </summary>
/// <param name="productCode">总成号</param>
/// <param name="productNum">总成数量</param>
/// <returns></returns>
Task<List<BomDTO>> GetMaterialTotalQtyAsync(string productCode, int productNum);
Task<List<BomDTO>> GetBomTreeByCodeAsync(string productCode);
2 years ago
}