79 lines
2.0 KiB
C#
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
|
|||
|
}
|
|||
|
}
|