This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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 复核显示
|
||||
|
Reference in New Issue
Block a user