using SharpCompress.Compressors.ADC;
|
using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Linq.Expressions;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEA_IStorageBasicServices.Stock;
|
using WIDESEA_Model.Models.ERP;
|
|
namespace WIDESEA_StorageBasicServices
|
{
|
public partial class ERPStockInfoService: IERPStockInfoService
|
{
|
private readonly IUnitOfWorkManage _unitOfWorkManage;
|
public ERPStockInfoService(IUnitOfWorkManage unitOfWorkManage)
|
{
|
_unitOfWorkManage = unitOfWorkManage;
|
}
|
public virtual PageGridData<WMS_用友库存一览表_ST> GetPageData(PageDataOptions options)
|
{
|
string wheres = options.ValidatePageOptions(typeof(WMS_用友库存一览表_ST).GetProperties());
|
//获取排序字段
|
int totalCount = 0;
|
var data = SqlSugarHelper.DBERP.Queryable<WMS_用友库存一览表_ST>()
|
.WhereIF(!wheres.IsNullOrEmpty(), wheres)
|
.ToPageList(options.Page, options.Rows, ref totalCount);
|
new PageGridData<WMS_用友库存一览表_ST>(totalCount, data);
|
return new PageGridData<WMS_用友库存一览表_ST>(totalCount, data);
|
}
|
}
|
}
|