This commit is contained in:
@ -374,5 +374,12 @@ namespace Epost.BLL
|
||||
return dal.GetAddressListByByPage(strWhere, orderby, startIndex, endIndex, out recordCount);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 根据订单获取要熄灭的标签
|
||||
public DataTable GetForcedendAddress(string orderid)
|
||||
{
|
||||
return dal.GetForcedendAddress(orderid);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -738,7 +738,55 @@ namespace Epost.BLL
|
||||
#endregion
|
||||
|
||||
|
||||
#region 强制结束灭灯
|
||||
public ResultModel Forcedend(string orderid)
|
||||
{
|
||||
ResultModel resultModel = new ResultModel();
|
||||
List<LabelParamModel> list = new List<LabelParamModel>();
|
||||
try
|
||||
{
|
||||
DataTable dt = addrBLL.GetForcedendAddress(orderid);
|
||||
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
foreach (DataRow item in dt.Rows)
|
||||
{
|
||||
LabelParamModel model = new LabelParamModel();
|
||||
model.ControlIP = item["ControlIP"].ToString();
|
||||
model.Address = item["address"].ToString();
|
||||
model.Command = "FORMAT_JOB_DATA";
|
||||
model.Parameter = "50";
|
||||
model.Timeout = "0.5";
|
||||
list.Add(model);
|
||||
model = new LabelParamModel();
|
||||
model.ControlIP = item["ControlIP"].ToString();
|
||||
model.Address = "9999";
|
||||
model.Parameter = "11111000";
|
||||
model.Command = "UNLOCK";
|
||||
model.Timeout = "0.5";
|
||||
list.Add(model);
|
||||
LED_OFF_CLEAR(item["ControlIP"].ToString());
|
||||
}
|
||||
if (list.Any())
|
||||
{
|
||||
resultModel = SendALL_Init(list);
|
||||
}
|
||||
|
||||
}
|
||||
return resultModel;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
resultModel.result = "0";
|
||||
resultModel.msg = "强制结束熄灭失败!";
|
||||
LogHelper.WriteLogInfo("强制结束异常:" + ex.Message);
|
||||
|
||||
}
|
||||
return resultModel;
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -848,7 +848,7 @@ namespace Epost.BLL
|
||||
|
||||
public DataTable GetOrderList(string area, string block)
|
||||
{
|
||||
return dal.GetOrderList(area, block);
|
||||
return dal.GetOrderList(area, block);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -1043,5 +1043,17 @@ namespace Epost.BLL
|
||||
{
|
||||
return dal.GetDataIfRepeat(transderMid, transderDid);
|
||||
}
|
||||
|
||||
public DataTable GetOrdersDT(string address, string ControlIP)
|
||||
{
|
||||
return dal.GetOrdersDT(address, ControlIP);
|
||||
}
|
||||
|
||||
#region 校验货位
|
||||
public DataTable GetlocationInfo(string location)
|
||||
{
|
||||
return dal.GetlocationInfo(location);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -206,6 +206,28 @@ namespace Epost.BLL
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region
|
||||
public ResultModel Forcedend(string orderid)
|
||||
{
|
||||
try
|
||||
{
|
||||
ResultModel resultModel = comBLL.Forcedend(orderid);
|
||||
|
||||
return resultModel;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLogInfo("强制结束熄灭标签异常" + ex.ToString());
|
||||
ResultModel resultModel = new ResultModel();
|
||||
resultModel.result = "-1";
|
||||
resultModel.msg = "强制结束熄灭标签异常:" + ex.ToString() + "";
|
||||
return resultModel;
|
||||
}
|
||||
|
||||
}
|
||||
#endregion.
|
||||
|
||||
#endregion
|
||||
|
||||
#region 查询波次通道列表
|
||||
@ -418,7 +440,7 @@ namespace Epost.BLL
|
||||
List<JobModel> downlist = new List<JobModel>();
|
||||
JobModel model = job.FirstOrDefault();
|
||||
downlist.Add(model);
|
||||
|
||||
model.State = 3;
|
||||
List<JobModel> manyList = job.FindAll(m => m.ManyState == 1 && m.Tolocation == model.Tolocation && m.Sku == model.Sku);
|
||||
#region 处理合并数据
|
||||
//int endcount = 1;
|
||||
@ -436,16 +458,17 @@ namespace Epost.BLL
|
||||
|
||||
orderbll.UpdateOrderState_Car(downlist, model, truequantity, checkquantity);
|
||||
LogHelper.WriteLogInfo("标记------" + data.Address + "------" + model.Sku + "----" + model.State + "");
|
||||
bool skuInish = dal.IsFinishWork(1, block, "", area, model.Sku, "", model.OrderID);
|
||||
bool skuInish = dal.IsFinishWork(1, block, "", area, "", "", model.OrderID);
|
||||
if (skuInish)
|
||||
{
|
||||
LogHelper.WriteLogInfo(data.Address + "=========------------------" + data.Parameter);
|
||||
|
||||
|
||||
comBLL.DISPLAY_LIGHT_BLOCK(model.Block, data.Area, "0");
|
||||
|
||||
LogHelper.WriteLogInfo("区SKU拣选完成--------------");
|
||||
//删除sku缓存信息
|
||||
List<JobModel> rjob = jobList.FindAll(m => m.Block == data.Block && m.Area == data.Area && m.Sku == model.Sku);
|
||||
JobCache.UpdateJobModelList(rjob, EcommendType.Execute);
|
||||
//List<JobModel> rjob = jobList.FindAll(m => m.Block == data.Block && m.Area == data.Area && m.Sku == model.Sku);
|
||||
//JobCache.UpdateJobModelList(rjob, EcommendType.Execute);
|
||||
|
||||
bool allfinish = dal.IsFinishWork_box("", 0, model.OrderID);
|
||||
if (allfinish)
|
||||
@ -461,7 +484,7 @@ namespace Epost.BLL
|
||||
|
||||
//修改订单状态
|
||||
dal.UpdateStateByCar(model.OrderID);
|
||||
comBLL.DISPLAY_LIGHT_BLOCK(model.Block, data.Area, "0");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user