This commit is contained in:
@ -22,6 +22,7 @@ namespace Epost.TestToolsWeb
|
||||
public class MvcApplication : System.Web.HttpApplication
|
||||
{
|
||||
InboundOrdersBLL inboundBLL = new InboundOrdersBLL();
|
||||
|
||||
protected void Application_Start()
|
||||
{
|
||||
AreaRegistration.RegisterAllAreas();
|
||||
@ -47,11 +48,11 @@ namespace Epost.TestToolsWeb
|
||||
reqmodel.reqCode =DateTime.Now.Month+DateTime.Now.Day+ row["id"].ToString();;
|
||||
List<Positioncodepath> positionList = new List<Positioncodepath>();
|
||||
Positioncodepath pathModel = new Positioncodepath();
|
||||
pathModel.positionCode = row["spositionCode"].ToString();
|
||||
pathModel.positionCode = inboundBLL.GetLocation(" and wmsloc ='"+ row["spositionCode"].ToString() + "'");
|
||||
pathModel.type = "05";//agv提供
|
||||
positionList.Add(pathModel);
|
||||
Positioncodepath pathModel2 = new Positioncodepath();
|
||||
pathModel2.positionCode = row["dpositionCode"].ToString();
|
||||
pathModel2.positionCode = inboundBLL.GetLocation(" and wmsloc = '"+ row["dpositionCode"].ToString() + "'");
|
||||
pathModel2.type = "05";
|
||||
positionList.Add(pathModel2);
|
||||
reqmodel.positionCodePath = positionList;
|
||||
@ -61,7 +62,11 @@ namespace Epost.TestToolsWeb
|
||||
if (res.code == "0")
|
||||
{
|
||||
//调用agv成功 更新订单状态
|
||||
inboundBLL.UpInOrderList(row["id"].ToString(),"1",res.data);
|
||||
inboundBLL.UpInOrderList(row["id"].ToString(), "1", res.data);
|
||||
}
|
||||
else if (res.code == "1")
|
||||
{
|
||||
inboundBLL.UpInOrder(row["id"].ToString(),"AGV告警:"+res.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user