This commit is contained in:
@ -288,6 +288,26 @@ namespace Epost.DAL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取所有小区
|
||||
public List<AddressstorageModel> GetOrderWayList(string block, string shelfid)
|
||||
{
|
||||
string strwhere = string.Empty;
|
||||
if (!string.IsNullOrEmpty(block))
|
||||
{
|
||||
strwhere += "and block ='" + block + "'";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(shelfid))
|
||||
{
|
||||
strwhere += "and shelfid ='" + shelfid + "'";
|
||||
}
|
||||
string sql = string.Format("select area,block,way from Addressstorage where type=1 " + strwhere + " group by area,block,way");
|
||||
DataTable dt = db.GetsqlForDT(sql);
|
||||
|
||||
return ModelConvertHelper<AddressstorageModel>.ConvertToList(dt);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取所有小区
|
||||
public List<AddressstorageModel> GetshelfidList(string block)
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ namespace Epost.DAL
|
||||
{
|
||||
strwhere += "and info= '" + usercode + "'";
|
||||
}
|
||||
|
||||
|
||||
string sql = string.Empty;
|
||||
if (!string.IsNullOrEmpty(area))
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ namespace Epost.DAL
|
||||
{
|
||||
strwhere = strwhere + " and block='" + block + "'";
|
||||
}
|
||||
string sql = string.Format("select id, orderid, city , fdate , boxcode, shopname, shopid, orderway, boxno,isnull(totalcount,0) as totalcount , warehouseid, state,block,printstate,senddate,loc from print_box where state=0 " + strwhere + " order by id");
|
||||
string sql = string.Format("select id, orderid, city , fdate , boxcode, shopname, shopid, orderway, boxno,isnull(totalcount,0) as totalcount , warehouseid, state,block,printstate,senddate,loc,matchid from print_box where state=0 " + strwhere + " order by id");
|
||||
return db.GetsqlForDT(sql);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@ -14,7 +14,7 @@ namespace Epost.DAL
|
||||
public DataTable GetSkuInfoList(string sku)
|
||||
{
|
||||
|
||||
string sql = string.Format(" SELECT * FROM skuinfo WHERE (CHARINDEX('{0}',location)>0) or sku='{1}'",
|
||||
string sql = string.Format(" SELECT top 1 * FROM orders WHERE (CHARINDEX('{0}',barcode)>0) or sku='{1}'",
|
||||
sku, sku);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user