Ejemplo n.º 1
0
        public List <WmsAreaInfo> GetWmsAreaInfoByPage(int pageSize, int pageIndex, bool isAsc, string orderField, string sWhere)
        {
            string orderStr = "";

            if (string.IsNullOrEmpty(orderField))
            {
                orderStr = "CREATION_DATE";
            }
            else
            {
                orderStr = orderField;
            }
            Expression <Func <WmsAreaInfo, bool> > whereLamda = SerializerHelper.ConvertParamWhereToLinq <WmsAreaInfo>(sWhere);

            using (IWmsAreaInfoBLL WmsAreaInfoBLL = BLLContainer.Resolve <IWmsAreaInfoBLL>())
            {
                List <WmsAreaInfo> models = WmsAreaInfoBLL.GetModelsByPage(pageSize, pageIndex, isAsc, orderStr, whereLamda);
                return(models);
            }
        }