The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。
/*
* date:2022-12-21
* developer:NoNo
*/
using ModernWMS.Core.Services;
using ModernWMS.Core.Models;
using ModernWMS.Core.JWT;
using ModernWMS.WMS.Entities.Models;
using ModernWMS.WMS.Entities.ViewModels;
namespace ModernWMS.WMS.IServices
{
/// <summary>
/// Interface of WarehouseService
/// </summary>
public interface IWarehouseService : IBaseService<WarehouseEntity>
{
#region Api
/// <summary>
/// get select items
/// </summary>
/// <param name="currentUser">current user</param>
/// <returns></returns>
Task<List<FormSelectItem>> GetSelectItemsAsnyc(CurrentUser currentUser);
/// <summary>
/// page search
/// </summary>
/// <param name="pageSearch">args</param>
/// <param name="currentUser">current user</param>
/// <returns></returns>
Task<(List<WarehouseViewModel> data, int totals)> PageAsync(PageSearch pageSearch, CurrentUser currentUser);
/// <summary>
/// Get all records
/// </summary>
/// <returns></returns>
Task<List<WarehouseViewModel>> GetAllAsync(CurrentUser currentUser);
/// <summary>
/// Get a record by id
/// </summary>
/// <param name="id">primary key</param>
/// <returns></returns>
Task<WarehouseViewModel> GetAsync(int id);
/// <summary>
/// add a new record
/// </summary>
/// <param name="viewModel">viewmodel</param>
/// <param name="currentUser">current user</param>
/// <returns></returns>
Task<(int id, string msg)> AddAsync(WarehouseViewModel viewModel, CurrentUser currentUser);
/// <summary>
/// update a record
/// </summary>
/// <param name="viewModel">viewmodel</param>
/// <param name="currentUser">currentUser</param>
/// <returns></returns>
Task<(bool flag, string msg)> UpdateAsync(WarehouseViewModel viewModel, CurrentUser currentUser);
/// <summary>
/// delete a record
/// </summary>
/// <param name="id">id</param>
/// <returns></returns>
Task<(bool flag, string msg)> DeleteAsync(int id);
/// <summary>
/// import warehouses by excel
/// </summary>
/// <param name="datas">excel datas</param>
/// <param name="currentUser">current user</param>
/// <returns></returns>
Task<(bool flag, string msg)> ExcelAsync(List<WarehouseExcelImportViewModel> datas, CurrentUser currentUser);
#endregion
}
}