This commit is contained in:
@ -28,6 +28,7 @@ namespace Epost.BLL
|
||||
WorkIngCacheDAL workbll = new WorkIngCacheDAL();
|
||||
SkuInfoBLL skuBLL = new SkuInfoBLL();
|
||||
UserModelCacheDAL UserCacheDAL = new UserModelCacheDAL();
|
||||
ErrorLogBLL logBLL = new ErrorLogBLL();
|
||||
public void ScanList()
|
||||
{
|
||||
GetScanList(tblock);
|
||||
@ -142,15 +143,19 @@ namespace Epost.BLL
|
||||
{
|
||||
//手动加波次信息
|
||||
DataTable matdt = orderbll.GetMatchOrderList();
|
||||
if (matdt != null && matdt.Rows.Count > 0)
|
||||
{
|
||||
UserCodeModel umodel = new UserCodeModel();
|
||||
umodel.Matchid = matdt.Rows[0]["matchid"].ToString();
|
||||
umodel.Block = sblock;
|
||||
umodel.Area = sarea;
|
||||
UserCacheDAL.UpdateUserCodeList(new List<UserCodeModel> { umodel }, EUserCommend.Create);
|
||||
}
|
||||
if (matdt != null && matdt.Rows.Count > 0)
|
||||
{
|
||||
UserCodeModel umodel = new UserCodeModel();
|
||||
umodel.Matchid = matdt.Rows[0]["matchid"].ToString();
|
||||
umodel.Block = sblock;
|
||||
umodel.Area = sarea;
|
||||
UserCacheDAL.UpdateUserCodeList(new List<UserCodeModel> { umodel }, EUserCommend.Create);
|
||||
}
|
||||
else {
|
||||
logBLL.SaveShowMesError("无待拣选的波次", "无待拣选的波次");
|
||||
|
||||
}
|
||||
}
|
||||
ulist = UserCacheDAL.GetUserCodeList().FindAll(m => m.Block == sblock && m.Area == sarea);
|
||||
if (ulist.Any())
|
||||
{ matchid = ulist.FirstOrDefault().Matchid; }
|
||||
@ -346,11 +351,13 @@ namespace Epost.BLL
|
||||
{
|
||||
//无待启动的商品
|
||||
LogHelper.WriteLogInfo("无待启动的商品,请先扫描商品"+scanStr,LogHelper.Log_Type.ERROR);
|
||||
logBLL.SaveShowMesError("无待启动的商品,请先扫描商品", "无待启动的商品,请先扫描商品");
|
||||
}
|
||||
}
|
||||
else {
|
||||
//无此工号
|
||||
LogHelper.WriteLogInfo("扫描工号不存在"+scanStr, LogHelper.Log_Type.ERROR);
|
||||
logBLL.SaveShowMesError("扫描工号不存在" , "扫描工号不存在" + scanStr);
|
||||
|
||||
}
|
||||
|
||||
@ -453,6 +460,8 @@ namespace Epost.BLL
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLogInfo("未扫描波次信息", LogHelper.Log_Type.ERROR);
|
||||
logBLL.SaveShowMesError("无波次信息!", "无波次信息");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -484,6 +493,7 @@ namespace Epost.BLL
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLogInfo("未扫描波次信息", LogHelper.Log_Type.ERROR);
|
||||
logBLL.SaveShowMesError("无波次信息!", "无波次信息");
|
||||
}
|
||||
|
||||
}
|
||||
@ -491,16 +501,18 @@ namespace Epost.BLL
|
||||
{
|
||||
|
||||
//提示无任务
|
||||
ShowMessageModel_M show = new ShowMessageModel_M();
|
||||
show.Title = "商品:" + scanStr + "无任务!";
|
||||
show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
|
||||
show.Block = data.Block;
|
||||
show.Area = data.Area;
|
||||
show.Type = 8;
|
||||
show.Islock = false;
|
||||
comBLL.ShowBoxMessage_M(show);
|
||||
downCacheDAL.UpdateJobDownModelList(new List<ResultMessageModel> { data }, EdownCommend.Execute);
|
||||
}
|
||||
//ShowMessageModel_M show = new ShowMessageModel_M();
|
||||
//show.Title = "商品:" + scanStr + "无任务!";
|
||||
//show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
|
||||
//show.Block = data.Block;
|
||||
//show.Area = data.Area;
|
||||
//show.Type = 8;
|
||||
//show.Islock = false;
|
||||
//comBLL.ShowBoxMessage_M(show);
|
||||
//downCacheDAL.UpdateJobDownModelList(new List<ResultMessageModel> { data }, EdownCommend.Execute);
|
||||
logBLL.SaveShowMesError("商品:" + scanStr + "无任务!", "商品:" + scanStr + "无任务!");
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
Reference in New Issue
Block a user