This commit is contained in:
jl
2025-01-16 16:23:04 +08:00
parent adab2c3392
commit af5cde8e46
5 changed files with 65 additions and 32 deletions

View File

@ -940,17 +940,20 @@ namespace Epost.BLL
return dal.IsFinishWorkByCar(endcount, matchid, block);
}
public bool UpdateStateByCar(string matchid, string area,string block = "", string sku = "")
public bool UpdateStateByCar(string matchid, string sku = "")
{
return dal.UpdateStateByCar(matchid,area, block, sku);
return dal.UpdateStateByCar(matchid, sku);
}
public bool IsFinishWork(int endcount, string block, string usercode = "", string area = "", string sku = "", string shopid = "", string matchid = "")
{
return dal.IsFinishWork(endcount, block, usercode, area, sku, shopid, matchid);
}
public bool IsSkuFinishWork(string sku, string matchid)
{
return dal.IsSkuFinishWork(sku, matchid);
}
public DataTable GetMatchOrder()
{
return dal.GetMatchOrder();

View File

@ -297,7 +297,7 @@ namespace Epost.BLL
//if (blockfinish)
//{
// #region 点亮显示器
// show.Title = "当前波次分播完成";
// show.Contents = "拍下熄灭所有设备\r请扫描继续作业";
// show.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Green);
@ -306,7 +306,7 @@ namespace Epost.BLL
// show.Block = block;
// show.Islock = false;
// show.IsTwinkle = 1;
// comBLL.ShowBoxMessage_M(show);
// #endregion
@ -322,8 +322,13 @@ namespace Epost.BLL
//}
#endregion
#region sku播完回传
orderbll.UpdateStateByCar(model.Matchid,area, block, model.Sku);
#region sku播完回传
bool skubo = orderbll.IsSkuFinishWork(model.Sku, model.Matchid);
if (skubo)
{
LogHelper.WriteLogInfo(model.Sku + "Sku播种完成" + model.Matchid);
orderbll.UpdateStateByCar(model.Matchid, model.Sku);
}
#endregion
#region sku