更改接口灭灯功能

This commit is contained in:
帅凯 贾
2023-09-06 12:44:42 +08:00
parent 7eff397fb5
commit cc78693b7d
7 changed files with 153 additions and 63 deletions

View File

@ -595,7 +595,7 @@ namespace Epost.BLL
{
var nowmodel = nowJoblist.FirstOrDefault();
#region s
#region
foreach (JobModel item in nowJoblist.ToArray())
{
List<JobModel> isshowList = jobList.FindAll(p => p.Address == item.Address && p.ControlIP == item.ControlIP && p.State == 1);
@ -628,7 +628,12 @@ namespace Epost.BLL
lamodel.Title = item.genericname;
lamodel.Content = "" + item.Sku.Substring(item.Sku.Length - 4, 4) + " " + item.Spec + "\r" + item.GoodsName + "\r批号" + item.batchno + " " + item.manufactname.Substring(0, 4) + "";
string manufactname = string.Empty;
if (!string.IsNullOrEmpty(item.manufactname) && item.manufactname.Length > 4)
{
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 + "";
var aryloc = item.Tolocation.Split('-');
lamodel.Loc = "" + aryloc[0].ToString() + "-" + aryloc[1].ToString() + "";
lamodel.W_quantity = aryloc[2].ToString();