Files
T-DAS/Epost.BLL/PalletinfoBLL.cs
2024-11-22 15:31:46 +08:00

41 lines
1.2 KiB
C#

using Epost.DAL;
using Epost.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Epost.BLL
{
public class PalletinfoBLL
{
PalletinfoDAL dal = new PalletinfoDAL();
#region
/// <summary>
/// 分页获取数据列表
/// </summary>
public List<PalletinfoModel> GetPalletListByPage(string strWhere, string orderby, int pageSize, int pageIndex, out int recordCount)
{
int startIndex = 0;
int endIndex = 0;
if (pageIndex <= 0)
pageIndex = 1;
//计算查询的开始行数与结束行数
startIndex = (pageIndex - 1) * pageSize + 1;
endIndex = pageIndex * pageSize;
return dal.GetPalletListByPage(strWhere, orderby, startIndex, endIndex, out recordCount);
}
#endregion
#region
public bool InsertPallet(DataTable dt, Dictionary<string, string> diclist)
{
return dal.InsertPallet(dt, diclist);
}
#endregion
}
}