|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|