2024-11-22 15:31:46 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Epost.DAL;
|
|
|
|
|
using Epost.Model;
|
|
|
|
|
namespace Epost.BLL
|
|
|
|
|
{
|
|
|
|
|
public class InboundOrdersBLL
|
|
|
|
|
{
|
|
|
|
|
InboundOrdersDAL dal = new InboundOrdersDAL();
|
|
|
|
|
|
|
|
|
|
#region 分页获取订单表列表
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 分页获取数据列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<InboundOrdersModel> GetOrdersListByPage(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.GetOrdersListByPage(strWhere, orderby, startIndex, endIndex, out recordCount);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 查询订单是否已存在
|
|
|
|
|
public DataTable GetOrdersList(string wmsDocNo)
|
|
|
|
|
{
|
|
|
|
|
return dal.GetOrdersList(wmsDocNo);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
2024-11-23 20:47:14 +08:00
|
|
|
|
|
|
|
|
|
#region 查询订单信息
|
|
|
|
|
public DataTable GetInOrderList(string strwhere)
|
|
|
|
|
{
|
|
|
|
|
return dal.GetInOrderList(strwhere);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
2024-11-22 15:31:46 +08:00
|
|
|
|
#region 添加订单
|
|
|
|
|
public bool InsertOrder(DataTable dt, Dictionary<string, string> diclist)
|
|
|
|
|
{
|
|
|
|
|
return dal.InsertOrders(dt, diclist);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
2024-11-23 20:47:14 +08:00
|
|
|
|
|
|
|
|
|
#region 更新订单状态
|
|
|
|
|
public bool UpInOrderList(string id, string state,string data="")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return dal.UpInOrderList(id,state,data);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 根据agv单号更新订单状态
|
|
|
|
|
public bool UpInOrderListByAgvid(string agvid, string state)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return dal.UpInOrderListByAgvid(agvid, state);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
2024-11-22 15:31:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|