This commit is contained in:
@ -336,17 +336,25 @@ namespace Epost.BLL
|
||||
{
|
||||
UserCodeModel umodel = ulist.FirstOrDefault();
|
||||
umodel.UserCode = scanStr;
|
||||
#region 扫描工号
|
||||
ShowMessageModel_M show = new ShowMessageModel_M();
|
||||
show.Title = "请扫描sku开始作业!";
|
||||
show.Contents = "";
|
||||
show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
|
||||
show.Block = data.Block;
|
||||
show.Area = data.Area;
|
||||
show.Type = 8;
|
||||
show.Islock = true;
|
||||
comBLL.ShowBoxMessage_M(show);
|
||||
#endregion
|
||||
//根据工号查询对应灯色
|
||||
UserBLL userbll = new UserBLL();
|
||||
DataTable userdt= userbll.getUserColor(scanStr);
|
||||
if (userdt != null && userdt.Rows.Count > 0)
|
||||
{
|
||||
bool bo= queueBLL.UpdateQueueByUser(scanStr, userdt.Rows[0]["lightcolor"].ToString());
|
||||
if (!bo)
|
||||
{
|
||||
//无待启动的商品
|
||||
LogHelper.WriteLogInfo("无待启动的商品,请先扫描商品"+scanStr,LogHelper.Log_Type.ERROR);
|
||||
}
|
||||
}
|
||||
else {
|
||||
//无此工号
|
||||
LogHelper.WriteLogInfo("扫描工号不存在"+scanStr, LogHelper.Log_Type.ERROR);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
downCacheDAL.UpdateJobDownModelList(new List<ResultMessageModel> { data }, EdownCommend.Execute);
|
||||
#endregion
|
||||
@ -402,7 +410,7 @@ namespace Epost.BLL
|
||||
location = data.Parameter;// sinfodt.Rows[0]["tolocation"].ToString();
|
||||
}
|
||||
data.Parameter = scanStr;
|
||||
DataTable skudt = queueBLL.GetOrderQueue(data.Block, data.Area, "3");
|
||||
DataTable skudt = queueBLL.GetOrderQueue(data.Block, data.Area, "2");
|
||||
List<ResultMessageModel> scanlist = downCacheDAL.GetPlanJobDownList().FindAll(m => m.Address == data.Address && m.Parameter == scanStr && m.Parameter != "888888" && m.Block == data.Block && m.Area == data.Area);
|
||||
|
||||
if (scanlist.Count > 1 || (skudt != null && skudt.Rows.Count > 0))
|
||||
@ -432,10 +440,11 @@ namespace Epost.BLL
|
||||
qmodel.Sku = scanStr;
|
||||
qmodel.Taskblock = data.Block;
|
||||
qmodel.Taskarea = data.Area;
|
||||
qmodel.UserCode = umodel.UserCode;
|
||||
//qmodel.UserCode = umodel.UserCode;
|
||||
qmodel.Matchid = umodel.Matchid;
|
||||
qmodel.Shopid = OrderDt.Rows[0]["GoodsName"].ToString();
|
||||
qmodel.Location = location;
|
||||
qmodel.State = 2;
|
||||
qmodel.Lightcolor = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
|
||||
queueBLL.insertQueueOrders(qmodel);
|
||||
|
||||
|
Reference in New Issue
Block a user