This commit is contained in:
@ -792,8 +792,9 @@ namespace Epost.BLL
|
||||
demodel.Addresstype = "1";
|
||||
demodel.ControlID = "";
|
||||
demodel.ControlIP = item["ControlIP"].ToString();
|
||||
//demodel.Layer = item["Layer"].ToString();
|
||||
//demodel.Slist = item["Slist"].ToString();
|
||||
demodel.Layer = item["Layer"].ToString();
|
||||
demodel.Slist = item["Slist"].ToString();
|
||||
demodel.clientcode = item["clientcode"].ToString();
|
||||
//demodel.Zone = item["zone"].ToString();
|
||||
//demodel.TaskType =Convert.ToInt32(item["tasktype"].ToString());
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
@ -11,6 +12,7 @@ using Epost.DAL;
|
||||
using Epost.DAL.Cache;
|
||||
using Epost.DAL.Enum;
|
||||
using Epost.Model;
|
||||
using static Epost.DAL.Enum.LightColor;
|
||||
|
||||
namespace Epost.BLL
|
||||
{
|
||||
@ -585,7 +587,7 @@ namespace Epost.BLL
|
||||
if (queueDT != null && queueDT.Rows.Count > 0)
|
||||
{
|
||||
|
||||
ShowMessageModel showmodel = new ShowMessageModel();
|
||||
|
||||
////获取当前区任务并加入缓存
|
||||
//if (!isJobList.Any())
|
||||
//{
|
||||
@ -594,7 +596,7 @@ namespace Epost.BLL
|
||||
if (nowJoblist.Any())
|
||||
{
|
||||
var nowmodel = nowJoblist.FirstOrDefault();
|
||||
|
||||
string showmes = string.Empty;
|
||||
#region 点亮任务标签
|
||||
foreach (JobModel item in nowJoblist.ToArray())
|
||||
{
|
||||
@ -633,10 +635,11 @@ namespace Epost.BLL
|
||||
{
|
||||
manufactname = item.manufactname.Substring(0, 4);
|
||||
}
|
||||
lamodel.Content = "" + item.Sku.Substring(item.Sku.Length - 4, 4) + "\\t" + item.Spec + "\r" + item.GoodsName + "\r批号" + item.batchno + " " + manufactname + "";
|
||||
// lamodel.Content = "" + item.Sku.Substring(item.Sku.Length - 4, 4) + "\\t" + item.Spec + "\r" + item.GoodsName + "\r批号" + item.batchno + " " + manufactname + "";
|
||||
lamodel.Content = "" + item.GoodsName + "\r" + item.Spec + "\r" + manufactname + "";
|
||||
var aryloc = item.Tolocation.Split('-');
|
||||
lamodel.Loc = "" + aryloc[0].ToString() + "-" + aryloc[1].ToString() + "";
|
||||
lamodel.W_quantity = aryloc[2].ToString();
|
||||
lamodel.Loc = "" + aryloc[0].ToString();
|
||||
lamodel.W_quantity = item.Slist;
|
||||
lamodel.Quantity = quantity.ToString();
|
||||
lamodel.Unit = item.Unit;
|
||||
lamodel.PicChoose = "";
|
||||
@ -719,7 +722,7 @@ namespace Epost.BLL
|
||||
item.DisplayTime = DateTime.Now;
|
||||
#endregion
|
||||
|
||||
|
||||
showmes = item.clientcode;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -729,6 +732,36 @@ namespace Epost.BLL
|
||||
{
|
||||
LogHelper.WriteLogInfo("添加到点亮的list————————————————————:" + list.Count);
|
||||
comBLL.DISPLAY_JOBALL(list);
|
||||
//点亮显示器
|
||||
if (!string.IsNullOrEmpty(showmes))
|
||||
{
|
||||
|
||||
LogHelper.WriteLogInfo("下发异常货位信息"+showmes);
|
||||
if (showmes.Length > 30)
|
||||
{
|
||||
string newstr = showmes.Substring(30, showmes.Length - 30);
|
||||
if (newstr.Length > 30)
|
||||
{
|
||||
showmes = showmes.Substring(0, 30) + "\r" + newstr.Substring(0, 30) + "\r" + newstr.Substring(30, newstr.Length - 30);
|
||||
}
|
||||
else
|
||||
{
|
||||
showmes = showmes.Substring(0, 30) + "\r" + newstr;
|
||||
}
|
||||
|
||||
}
|
||||
ShowMessageModel_M showmodel = new ShowMessageModel_M();
|
||||
showmodel.Area = narea;
|
||||
showmodel.Block = nblock;
|
||||
showmodel.Color = EnumHelper.EMToDescriptionString(LightColor.Color.Red);
|
||||
showmodel.Islock = true;
|
||||
showmodel.Title = "下发货位异常信息";
|
||||
showmodel.IsTwinkle = 0;
|
||||
showmodel.Contents = showmes;
|
||||
showmodel.Type = 2;
|
||||
comBLL.ShowBoxMessage_M(showmodel);//点亮显示标签
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
//else
|
||||
|
Reference in New Issue
Block a user