using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core; using WIDESEA_DTO.Base; namespace WIDESEA_IBasicService { public interface IBasicService : IDependency { /// /// 货位业务层 /// ILocationInfoService LocationInfoService { get; } /// /// 物料业务层 /// IMaterielInfoService MaterielInfoService { get; } /// /// 仓库业务层 /// IWarehouseService WarehouseService { get; } IPalletCodeInfoService PalletCodeInfoService { get; } IMaterielCodeInfoService MaterielCodeInfoService { get; } IMaterialUnitService MaterialUnitService { get; } #region string CreateCodeByRule(string ruleCode); #endregion #region 单位转换 /// /// 单位转换 /// /// /// /// /// /// /// public UnitConvertResultDTO UnitQuantityConvert(string materialCode, string fromUnit, string toUnit, decimal quantity); /// /// 单位转换,领料转采购 /// /// /// /// /// public UnitConvertResultDTO UnitUsageToPurchase(string materialCode, decimal quantity); /// /// 单位转换,领料转库存 /// /// /// /// /// public UnitConvertResultDTO UnitUsageToInventory(string materialCode, decimal quantity); /// /// 单位转换,采购转库存 /// /// /// /// /// public UnitConvertResultDTO UnitPurchaseToInventory(string materialCode, decimal quantity); /// /// 单位转换,采购转领料 /// /// /// /// /// public UnitConvertResultDTO UnitPurchaseToUsage(string materialCode, decimal quantity); /// /// 单位转换,库存转领料 /// /// /// /// /// public UnitConvertResultDTO UnitInventoryToUsage(string materialCode, decimal quantity); /// /// 单位转换,库存转采购 /// /// /// /// /// public UnitConvertResultDTO UnitInventoryToPurchase(string materialCode, decimal quantity); #endregion } }