|
|
|
@ -17,6 +17,7 @@ using DSWeb.EntityDA;
|
|
|
|
|
using DSWeb.Models;
|
|
|
|
|
using HcUtility.Comm;
|
|
|
|
|
using DSWeb.Areas.CommMng.DAL;
|
|
|
|
|
using static DSWeb.Areas.CommMng.DAL.BasicDataRefDAL;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.MvcShipping.DAL.WMS
|
|
|
|
|
{
|
|
|
|
@ -2072,24 +2073,38 @@ namespace DSWeb.MvcShipping.DAL.WMS
|
|
|
|
|
|
|
|
|
|
#region 出入库明细表
|
|
|
|
|
|
|
|
|
|
static public List<WMSDetailmb> GetDetailList ( string strCondition, string sort )
|
|
|
|
|
static public List<WMSDetailmb> GetDetailList (int start, int limit, string strCondition, string sort,out int recordcount)
|
|
|
|
|
{ //库存信息
|
|
|
|
|
var strSql = new StringBuilder();
|
|
|
|
|
strSql.Append(" select v.* from VW_WMS_DETAIL V WITH(NOLOCK)");
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(strCondition))
|
|
|
|
|
{
|
|
|
|
|
strSql.Append(" where " + strCondition.Replace("~", ""));
|
|
|
|
|
}
|
|
|
|
|
//var strSql = new StringBuilder();
|
|
|
|
|
//strSql.Append(" select v.* from VW_WMS_DETAIL V WITH(NOLOCK)");
|
|
|
|
|
|
|
|
|
|
var sortstring = DatasetSort.Getsortstring(sort);
|
|
|
|
|
if (!string.IsNullOrEmpty(sortstring))
|
|
|
|
|
{
|
|
|
|
|
strSql.Append(" order by " + sortstring);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
strSql.Append(" order by v.MODIFIEDTIME ");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PagedQuaryParam pp = new PagedQuaryParam();
|
|
|
|
|
|
|
|
|
|
pp.strSql = $" select v.* from VW_WMS_DETAIL V WITH(NOLOCK) where 1=1 ";
|
|
|
|
|
pp.start = start;
|
|
|
|
|
pp.limit = limit;
|
|
|
|
|
pp.strCondition = strCondition;
|
|
|
|
|
pp.defaultsortstr = "CUSTNO";
|
|
|
|
|
pp.sortstring = sortstring;
|
|
|
|
|
|
|
|
|
|
var strSql = PagedQuaryStr(pp);
|
|
|
|
|
|
|
|
|
|
recordcount = PagedCount(pp);
|
|
|
|
|
//if (!string.IsNullOrEmpty(strCondition))
|
|
|
|
|
//{
|
|
|
|
|
// strSql.Append(" where " + strCondition.Replace("~", ""));
|
|
|
|
|
//}
|
|
|
|
|
//var sortstring = DatasetSort.Getsortstring(sort);
|
|
|
|
|
//if (!string.IsNullOrEmpty(sortstring))
|
|
|
|
|
//{
|
|
|
|
|
// strSql.Append(" order by " + sortstring);
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// strSql.Append(" order by v.MODIFIEDTIME ");
|
|
|
|
|
//}
|
|
|
|
|
return SetDetailData(strSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|