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.

71 lines
2.1 KiB
C#

2 years ago
using System.Collections;
using Estsh.Core.Models;
using Estsh.Core.Repository.IRepositories;
using Estsh.Core.Services.IServices;
using Estsh.Core.Model.Result;
/***************************************************************************************************
*
* sitong.dong
*
* 2022.06.22
*
*
**************************************************************************************************/
namespace Estsh.Core.Services
{
/// <summary>
/// 盘点单生产
/// </summary>
public class CheckFreezeService : BaseService<SysPart>, ICheckFreezeService
{
private readonly ICheckFreezeRepository repository;
public CheckFreezeService(ICheckFreezeRepository _repository) : base(_repository)
{
repository = _repository;
}
/// <summary>
/// 根据分页条件获取分页菜单数据
/// </summary>
/// <param name="CheckFreezeName"></param>
/// <param name="pager"></param>
/// <param name="direction"></param>
/// <param name="sort"></param>
/// <returns></returns>
public Hashtable getCheckFreezeListByPage(string cbChkCommand, int userId)
{
Hashtable result = new Hashtable();
result = repository.getListByPage(cbChkCommand, userId);
return result;
}
/// <summary>
///盘点单集合
/// </summary>
/// <returns>数据集</returns>
public List<KeyValueResult> GetChkCommandList()
{
return repository.GetChkCommandList();
}
/// <summary>
///冻结
/// </summary>
/// <returns>数据集</returns>
public List<dynamic> Freeze(string cbChkCommand, string userId)
{
return repository.Freeze(cbChkCommand, userId);
}
/// <summary>
///解冻
/// </summary>
/// <returns>数据集</returns>
public List<dynamic> Thaw(string cbChkCommand, string userId)
{
return repository.Thaw(cbChkCommand, userId);
}
}
}