This commit is contained in:
jl
2025-06-26 20:31:02 +08:00
parent de122526a2
commit 3042ef9370
5 changed files with 107 additions and 39 deletions

View File

@ -343,16 +343,28 @@ namespace Epost.BLL
umodel.UserCode = scanStr;
//根据工号查询对应灯色
UserBLL userbll = new UserBLL();
DataTable userdt= userbll.getUserColor(scanStr);
DataTable userdt= userbll.getUserColor(scanStr);
if (userdt != null && userdt.Rows.Count > 0)
{
bool bo= queueBLL.UpdateQueueByUser(scanStr, userdt.Rows[0]["lightcolor"].ToString());
if (!bo)
DataTable skudt = queueBLL.GetOrderQueueByuser("1", scanStr);
if (skudt != null && skudt.Rows.Count > 0)
{
//无待启动的商品
LogHelper.WriteLogInfo("无待启动的商品,请先扫描商品"+scanStr,LogHelper.Log_Type.ERROR);
logBLL.SaveShowMesError("无待启动的商品,请先扫描商品", "无待启动的商品,请先扫描商品");
LogHelper.WriteLogInfo(scanStr + "工号任务未完成", LogHelper.Log_Type.ERROR);
logBLL.SaveShowMesError(scanStr+"工号任务未完成", scanStr + "工号任务未完成");
queueBLL.DeleteQueuebyUser(" and state = 2");
}
else
{
bool bo = queueBLL.UpdateQueueByUser(scanStr, userdt.Rows[0]["lightcolor"].ToString());
if (!bo)
{
//无待启动的商品
LogHelper.WriteLogInfo("无待启动的商品,请先扫描商品" + scanStr, LogHelper.Log_Type.ERROR);
logBLL.SaveShowMesError("无待启动的商品,请先扫描商品", "无待启动的商品,请先扫描商品");
}
}
}
else {
//无此工号