Files
T-DAS/Epost.BLL/BoxPickBLL.cs
2023-01-13 15:30:20 +08:00

79 lines
2.0 KiB
C#

using Epost.Common;
using Epost.DAL;
using Epost.DAL.Cache;
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 BoxPickBLL
{
BoxPickDAL dal = new BoxPickDAL();
#region
public bool InsertBoxPick(BoxPickModel model)
{
return dal.InsertBoxPick(model);
}
#endregion
#region
public bool UpdateBoxPick(string shopid)
{
return dal.UpdateBoxPick(shopid);
}
#endregion
#region
public bool DeleteBoxPick(string shopid)
{
return dal.DeleteBoxPick(shopid);
}
#endregion
#region
public bool DeleteBox(string shopid,string boxcode)
{
return dal.DeleteBox(shopid,boxcode);
}
#endregion
#region
public DataTable GetBoxPickList()
{
return dal.GetBoxPickList();
}
#endregion
#region
public void UpdateBoxPickState()
{
JobDownCacheDAL JobCache = new JobDownCacheDAL();
DataTable dt = dal.GetBoxPickList();
if (dt != null && dt.Rows.Count > 0)
{
foreach (DataRow item in dt.Rows)
{
ResultMessageModel model = new ResultMessageModel();
model.Parameter = item["wmsboxcode"].ToString();
model.Command = "QUERY_SPECIAL_STATUS";
model.Status = "2";
model.Port = item["shopid"].ToString();
JobCache.UpdateJobDownModelList(new List<ResultMessageModel>() { model }, EdownCommend.Create);
}
}
}
#endregion
}
}