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.

78 lines
2.5 KiB
C#

2 years ago

using Estsh.Core.Dapper;
using Estsh.Core.IRepositories;
using Estsh.Core.Model.ExcelModel;
using Estsh.Core.Model.Result;
using Estsh.Core.Models;
using Estsh.Core.Repository.IRepositories;
using Estsh.Core.Services.IServices;
using Estsh.Core.Util;
using System.Collections;
/***************************************************************************************************
*
* sitong.dong
*
* 2022.06.22
*
*
**************************************************************************************************/
namespace Estsh.Core.Services
{
public class ShippingInformationDefineService : BaseService<GMisco>, IShippingInformationDefineService
{
private readonly IShippingInformationDefineRepository repository;
public ShippingInformationDefineService(IShippingInformationDefineRepository _repository) : base(_repository)
{
repository = _repository;
}
/// <summary>
/// 客户产线集合
/// </summary>
/// <returns>数据集</returns>
public List<KeyValueResult> GetCustPDLineName()
{
return repository.GetCustPDLineName();
}
/// <summary>
/// 根据分页条件获取分页菜单数据
/// </summary>
/// <param name="PartMasterName"></param>
/// <param name="pager"></param>
/// <param name="direction"></param>
/// <param name="sort"></param>
/// <returns></returns>
public Hashtable getShippingListByPage(String where, Pager pager)
{
return repository.getShippingListByPage(pager.pageSize, pager.pageNo, where);
}
public Hashtable getShippingListDetailByPage(String where, Pager pager)
{
return repository.getShippingListDetailByPage(pager.pageSize, pager.pageNo, where);
}
/// <summary>
///
/// </summary>
/// <param name="aWhere"></param>
/// <returns></returns>
public List<GMisco> GetCountShipping(string aWhere)
{
return repository.GetCountShipping(aWhere);
}
public List<ShippingInformationDefine> getTableListByPage(string aWhere)
{
return repository.getTableListByPage(aWhere);
}
public List<GMiscoSn> GetCountShippingDetail(string aWhere)
{
return repository.GetCountShippingDetail(aWhere);
}
}
}