/// <summary> /// 获取拜访步骤采集参数列表 /// </summary> /// <param name="entity"> VisitingTaskStepID 为必传项</param> /// <param name="pageIndex"></param> /// <param name="pageSize"></param> /// <param name="rowCount"></param> /// <returns></returns> public VisitingParameterViewEntity[] GetStepParameterList(VisitingParameterViewEntity entity, int pageIndex, int pageSize, out int rowCount) { List <OrderBy> orderbys = new List <OrderBy>(); orderbys.Add(new OrderBy() { FieldName = "case when ParameterOrder is null then 1 else 0 end ,ParameterOrder", Direction = OrderByDirections.Asc }); PagedQueryResult <VisitingParameterViewEntity> pEntity = new VisitingTaskParameterMappingDAO(this.CurrentUserInfo).GetStepParameterList(entity, null, orderbys.ToArray(), pageIndex, pageSize); rowCount = pEntity.RowCount; return(pEntity.Entities); //return da.Query(wheres.ToArray(), orderbys.ToArray()); }
/// <summary> /// 构造函数 /// </summary> public VisitingTaskParameterMappingBLL(LoggingSessionInfo pUserInfo) { this.CurrentUserInfo = pUserInfo; this._currentDAO = new VisitingTaskParameterMappingDAO(pUserInfo); }