/// <summary> /// 查询订单日志 /// </summary> /// <param name="entity">参数:实体</param> /// <param name="pageIndex">参数:当前页</param> /// <param name="pageSize">参数:分页个数</param> /// <param name="rowCount">参数:数据集的总数</param> /// <returns></returns> public TInoutStatusEntity[] GetListForChangeUnit(TInoutStatusEntity entity, int pageIndex, int pageSize, out int rowCount) { List <IWhereCondition> wheres = new List <IWhereCondition>(); if (entity != null && entity.OrderID != null) { wheres.Add(new EqualsCondition() { FieldName = "T.OrderID", Value = entity.OrderID }); } if (entity != null && entity.OrderID != null) { wheres.Add(new EqualsCondition() { FieldName = "T.CheckResult", Value = 1 }); } List <OrderBy> orderbys = new List <OrderBy>(); orderbys.Add(new OrderBy() { FieldName = "[CreateTime]", Direction = OrderByDirections.Desc }); PagedQueryResult <TInoutStatusEntity> pEntity = new TInoutStatusDAO(this.CurrentUserInfo).GetList(wheres.ToArray(), orderbys.ToArray(), pageIndex, pageSize); rowCount = pEntity.RowCount; return(pEntity.Entities); }
/// <summary> /// 构造函数 /// </summary> public TInoutStatusBLL(LoggingSessionInfo pUserInfo) { this.CurrentUserInfo = pUserInfo; this._currentDAO = new TInoutStatusDAO(pUserInfo); }