This commit is contained in:
jl
2025-01-13 13:47:28 +08:00
parent c82154ff51
commit 36e123d79e
6 changed files with 143 additions and 22 deletions

View File

@ -955,5 +955,18 @@ namespace Epost.BLL
}
#endregion
#region
public bool getSmallLocList(string loc)
{
return dal.getSmallLocList(loc);
}
#endregion
#region
public bool CreateBoxInfo(string boxcode, string loc, string type)
{
return dal.CreateBoxInfo(boxcode, loc, type);
}
#endregion
}
}

View File

@ -854,20 +854,27 @@ namespace Epost.BLL
if (data.Parameter.Length <= 2)
{
#region
DataTable quedt = queueBLL.getQueueList();
DataTable quedt = queueBLL.getQueueList();
if (quedt != null && quedt.Rows.Count > 0)
{
LogHelper.WriteLogInfo(quedt.Rows[0]["sku"].ToString()+"绑定小格口" + data.Parameter);
LogHelper.WriteLogInfo(quedt.Rows[0]["sku"].ToString() + "绑定小格口" + data.Parameter);
//更新订单记录
orderbll.UpdateSkuLoc(quedt.Rows[0]["sku"].ToString(),data.Parameter);
orderbll.UpdateSkuLoc(quedt.Rows[0]["sku"].ToString(), data.Parameter);
}
else {
else
{
LogHelper.WriteLogInfo("没有可绑定物料" + data.Parameter);
}
#endregion
}
else {
else if (data.Parameter.Length > 2 && data.Parameter.Length <= 5)
{
LogHelper.WriteLogInfo("扫描满箱");
FinshLoc(data.Parameter);
}
else
{
#region SKU
//根据扫描商品内码获取商品码
data.ScanCode = data.Parameter;
@ -915,6 +922,35 @@ namespace Epost.BLL
}
}
}
#endregion
#region
public bool FinshLoc(string loc)
{
bool isfin = orderbll.getSmallLocList(loc);
if (isfin)
{
DataTable locdt= addrBLL.GetALLList(" and location='"+loc+"'");
string type = string.Empty;
if (locdt != null && locdt.Rows.Count > 0)
{
type = locdt.Rows[0]["addresstype"].ToString();
}
//生成唯一箱号条码
string boxcode = ((DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000).ToString() + loc;
LogHelper.WriteLogInfo(boxcode.ToString());
bool bo = orderbll.CreateBoxInfo(boxcode, loc, type);
return bo;
}
else
{
logBLL.SaveShowMesError("小格口未完全绑定", "小格口未完全绑定,请绑定后再释放!");
return false;
}
}
#endregion
#region