| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_DTO.Base; |
| | | |
| | | namespace WIDESEA_IBasicService |
| | | { |
| | |
| | | IPalletCodeInfoService PalletCodeInfoService { get; } |
| | | |
| | | IMaterielCodeInfoService MaterielCodeInfoService { get; } |
| | | |
| | | IMaterialUnitService MaterialUnitService { get; } |
| | | |
| | | #region |
| | | string CreateCodeByRule(string ruleCode); |
| | | #endregion |
| | | |
| | | #region 鍗曚綅杞崲 |
| | | /// <summary> |
| | | /// 鍗曚綅杞崲 |
| | | /// </summary> |
| | | /// <param name="materialCode"></param> |
| | | /// <param name="fromUnit"></param> |
| | | /// <param name="toUnit"></param> |
| | | /// <param name="quantity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public UnitConvertResultDTO UnitQuantityConvert(string materialCode, string fromUnit, string toUnit, decimal quantity); |
| | | |
| | | /// <summary> |
| | | /// 鍗曚綅杞崲锛岄鏂欒浆閲囪喘 |
| | | /// </summary> |
| | | /// <param name="materialCode"></param> |
| | | /// <param name="quantity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public UnitConvertResultDTO UnitUsageToPurchase(string materialCode, decimal quantity); |
| | | |
| | | /// <summary> |
| | | /// 鍗曚綅杞崲锛岄鏂欒浆搴撳瓨 |
| | | /// </summary> |
| | | /// <param name="materialCode"></param> |
| | | /// <param name="quantity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public UnitConvertResultDTO UnitUsageToInventory(string materialCode, decimal quantity); |
| | | |
| | | /// <summary> |
| | | /// 鍗曚綅杞崲锛岄噰璐浆搴撳瓨 |
| | | /// </summary> |
| | | /// <param name="materialCode"></param> |
| | | /// <param name="quantity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public UnitConvertResultDTO UnitPurchaseToInventory(string materialCode, decimal quantity); |
| | | |
| | | /// <summary> |
| | | /// 鍗曚綅杞崲锛岄噰璐浆棰嗘枡 |
| | | /// </summary> |
| | | /// <param name="materialCode"></param> |
| | | /// <param name="quantity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public UnitConvertResultDTO UnitPurchaseToUsage(string materialCode, decimal quantity); |
| | | |
| | | /// <summary> |
| | | /// 鍗曚綅杞崲锛屽簱瀛樿浆棰嗘枡 |
| | | /// </summary> |
| | | /// <param name="materialCode"></param> |
| | | /// <param name="quantity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public UnitConvertResultDTO UnitInventoryToUsage(string materialCode, decimal quantity); |
| | | |
| | | /// <summary> |
| | | /// 鍗曚綅杞崲锛屽簱瀛樿浆閲囪喘 |
| | | /// </summary> |
| | | /// <param name="materialCode"></param> |
| | | /// <param name="quantity"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="Exception"></exception> |
| | | public UnitConvertResultDTO UnitInventoryToPurchase(string materialCode, decimal quantity); |
| | | #endregion |
| | | } |
| | | } |