This commit is contained in:
@ -95,55 +95,7 @@ namespace Epost.BLL
|
||||
//当前区没有作业
|
||||
if (queueDT.Rows[0]["state"].ToString() == "0")
|
||||
{
|
||||
#region 点亮显示器
|
||||
ShowMessageModel_M showmodel = new ShowMessageModel_M();
|
||||
showmodel.Area = shelfid;
|
||||
showmodel.Block = nblock;
|
||||
showmodel.Color = queueDT.Rows[0]["lightcolor"].ToString();//EnumHelper.EMToDescriptionString(LightColor.Color.Red);
|
||||
showmodel.Title = queueDT.Rows[0]["Shopid"].ToString();
|
||||
showmodel.Islock = true;
|
||||
showmodel.IsTwinkle = 0;
|
||||
showmodel.Type = 8;
|
||||
|
||||
DataTable skudt = orderbll.GetSumList(queueDT.Rows[0]["matchid"].ToString(), queueDT.Rows[0]["sku"].ToString(), nblock, shelfid);
|
||||
|
||||
if (queueDT.Rows[0]["lightcolor"].ToString() == "1")
|
||||
{
|
||||
showmodel.Islock = false;
|
||||
}
|
||||
else if (queueDT.Rows[0]["lightcolor"].ToString() == EnumHelper.EMToDescriptionString(LightColor.Color.Blue))
|
||||
{
|
||||
//复核显示
|
||||
skudt = orderbll.GetSumList_Echo(queueDT.Rows[0]["matchid"].ToString(), queueDT.Rows[0]["sku"].ToString(), nblock, shelfid);
|
||||
showmodel.Title = "回显:"+queueDT.Rows[0]["Shopid"].ToString();
|
||||
}
|
||||
|
||||
if (skudt != null && skudt.Rows.Count > 0)
|
||||
{
|
||||
showmodel.Qty = skudt.Rows[0]["SumQuantity"].ToString();
|
||||
int discount = Convert.ToInt32(skudt.Rows[0]["discount"].ToString());
|
||||
//整件总数
|
||||
int SumCkQuantity = 0;//= Convert.ToInt32(skudt.Rows[0]["SumCkQuantity"].ToString());
|
||||
//散件总数
|
||||
int SumQuantity = Convert.ToInt32(skudt.Rows[0]["SumQuantity"].ToString());
|
||||
int zcount = Convert.ToInt32(skudt.Rows[0]["SumQuantity"].ToString());
|
||||
if (discount != 1)
|
||||
{
|
||||
if (SumQuantity >= discount)
|
||||
{
|
||||
|
||||
SumCkQuantity = SumQuantity / discount;
|
||||
SumQuantity = SumQuantity % discount;
|
||||
}
|
||||
}
|
||||
showmodel.Qty = SumQuantity.ToString();
|
||||
showmodel.Wholeqty = SumCkQuantity;
|
||||
showmodel.Unit = "件";
|
||||
showmodel.Wholeunit = "箱";
|
||||
showmodel.Contents = queueDT.Rows[0]["sku"].ToString() + "\r规格: " + discount + " \r总数量:" + zcount; ;
|
||||
}
|
||||
comBLL.ShowBoxMessage_M(showmodel);//点亮显示标签
|
||||
#endregion
|
||||
displayOrder(queueDT, nblock, item.area, model);
|
||||
}
|
||||
}
|
||||
@ -173,8 +125,8 @@ namespace Epost.BLL
|
||||
List<JobModel> isJobList = jobList.FindAll(p => p.Block == nblock && p.Area == narea && p.State != 3);
|
||||
ShowMessageModel showmodel = new ShowMessageModel();
|
||||
//获取当前区任务并加入缓存
|
||||
if (!isJobList.Any())
|
||||
{
|
||||
//if (!isJobList.Any())
|
||||
//{
|
||||
model.State = 1;
|
||||
orderbll.GetOrderList(queueDT.Rows[0]["matchid"].ToString(), nblock, queueDT.Rows[0]["sku"].ToString(), narea, queueDT.Rows[0]["usercode"].ToString());
|
||||
List<JobModel> nowJoblist = jobList.FindAll(p => p.State == 0 && p.Block == model.Taskblock && p.Area == model.Taskarea);
|
||||
@ -187,20 +139,20 @@ namespace Epost.BLL
|
||||
foreach (JobModel item in nowJoblist.ToArray())
|
||||
{
|
||||
|
||||
#region 回显设备锁定
|
||||
if (queueDT.Rows[0]["lightcolor"].ToString() == EnumHelper.EMToDescriptionString(LightColor.Color.Blue))
|
||||
{
|
||||
//#region 回显设备锁定
|
||||
//if (queueDT.Rows[0]["lightcolor"].ToString() == EnumHelper.EMToDescriptionString(LightColor.Color.Blue))
|
||||
//{
|
||||
|
||||
LabelParamModel locklamodel = new LabelParamModel();
|
||||
locklamodel.Address = item.Address.ToString();
|
||||
locklamodel.ControlIP = item.ControlIP.ToString();
|
||||
locklamodel.Command = "LOCK";
|
||||
locklamodel.Parameter = "11111000";
|
||||
locklamodel.Type = "N";
|
||||
list.Add(locklamodel);
|
||||
// LabelParamModel locklamodel = new LabelParamModel();
|
||||
// locklamodel.Address = item.Address.ToString();
|
||||
// locklamodel.ControlIP = item.ControlIP.ToString();
|
||||
// locklamodel.Command = "LOCK";
|
||||
// locklamodel.Parameter = "11111000";
|
||||
// locklamodel.Type = "N";
|
||||
// list.Add(locklamodel);
|
||||
|
||||
}
|
||||
#endregion
|
||||
//}
|
||||
//#endregion
|
||||
// else
|
||||
//{
|
||||
|
||||
@ -260,16 +212,16 @@ namespace Epost.BLL
|
||||
queueBLL.UpdateQueueOrderState(model);//缓存队列状态修改
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
|
||||
LogHelper.WriteLogInfo("还有未完成任务" + isJobList.Count);
|
||||
foreach (JobModel item in isJobList)
|
||||
{
|
||||
LogHelper.WriteLogInfo("还有未完成任务" + item.Address + item.ID);
|
||||
}
|
||||
}
|
||||
// LogHelper.WriteLogInfo("还有未完成任务" + isJobList.Count);
|
||||
// foreach (JobModel item in isJobList)
|
||||
// {
|
||||
// LogHelper.WriteLogInfo("还有未完成任务" + item.Address + item.ID);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
Reference in New Issue
Block a user