This commit is contained in:
jl
2024-12-02 13:53:56 +08:00
parent fb0c29fb89
commit 7bdb8633db
7 changed files with 106 additions and 59 deletions

View File

@ -88,13 +88,27 @@ namespace Epost.DAL
}
#endregion
#region
public DataTable GetV_InOrders(string strwhere)
{
string sql = string.Format("select * from v_InboundOrders where 1=1 " + strwhere);
return db.GetsqlForDT(sql);
}
#endregion
#region
public DataTable GetLocation(string strwhere)
{
string sql = string.Format("select * from locationInfo where 1=1 " + strwhere);
return db.GetsqlForDT(sql);
}
#endregion
#region
public bool UpInOrderList(string id,string state,string data)
{
string upstr = string.Empty;
if (!string.IsNullOrEmpty(data))
{
upstr = ",agvid='"+data+"'";
upstr = ",agvmsg='',agvid='" + data+"'";
}
string sql = string.Format("update InboundOrders set state ='{0}'"+ upstr + " where id ='{1}'",
state,id);
@ -105,6 +119,19 @@ namespace Epost.DAL
}
#endregion
#region
public bool UpInOrder(string id,string errormsg)
{
string sql = string.Format("update InboundOrders set agvmsg='{0}' where id ='{1}'",
errormsg, id);
long x = db.UpdateSql(sql);
if (x > 0)
return true;
return false;
}
#endregion
#region agv单号更新订单状态
public bool UpInOrderListByAgvid(string agvid, string state)
{