Exemple #1
0
        /// <summary>
        /// 数据检索
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        protected override IQueryable <Wswork> CreateQueryable(GetWsworkPageInput input)
        {
            IQueryable <Wswork> queryable = base.CreateQueryable(input);

            queryable = queryable.WhereIf(input.Id != null, t => t.Id == input.Id).AsQueryable();

            queryable = queryable.WhereIf(input.CollectionTime.HasValue, t => t.CollectionTime == input.CollectionTime.Value).AsQueryable();


            queryable = queryable.WhereIf(input.SameDay != null, t => t.SameDay == input.SameDay).AsQueryable();


            queryable = queryable.WhereIf(input.Accumulative != null, t => t.Accumulative == input.Accumulative).AsQueryable();


            queryable = queryable.WhereIf(input.MultipleWork != null, t => t.MultipleWork == input.MultipleWork).AsQueryable();


            queryable = queryable.WhereIf(input.Project != null, t => t.Project == input.Project).AsQueryable();


            queryable = queryable.WhereIf(input.SystemStatus != null, t => t.SystemStatus == input.SystemStatus).AsQueryable();


            queryable = queryable.WhereIf(input.Focus != null, t => t.Focus == input.Focus).AsQueryable();


            queryable = queryable.WhereIf(input.Remarks != null, t => t.Remarks == input.Remarks).AsQueryable();

            return(queryable);
        }
        /// <summary>
        /// 数据检索
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        protected override IQueryable<Wswork> CreateQueryable(GetWsworkPageInput input)
        {
            IQueryable<Wswork> queryable = base.CreateQueryable(input);

            queryable = queryable.WhereIf(input.Id !=null, t => t.Id == input.Id).AsQueryable();

            queryable = queryable.WhereIf(input.CollectionTime.HasValue, t => t.CollectionTime == input.CollectionTime.Value).AsQueryable();

            queryable = queryable.WhereIf(input.SameDay !=null, t => t.SameDay == input.SameDay).AsQueryable();

            queryable = queryable.WhereIf(input.Accumulative !=null, t => t.Accumulative == input.Accumulative).AsQueryable();

            queryable = queryable.WhereIf(input.MultipleWork !=null, t => t.MultipleWork == input.MultipleWork).AsQueryable();

            queryable = queryable.WhereIf(input.Project !=null, t => t.Project == input.Project).AsQueryable();

            queryable = queryable.WhereIf(input.SystemStatus !=null, t => t.SystemStatus == input.SystemStatus).AsQueryable();

            queryable = queryable.WhereIf(input.Focus !=null, t => t.Focus == input.Focus).AsQueryable();

            queryable = queryable.WhereIf(input.Remarks !=null, t => t.Remarks == input.Remarks).AsQueryable();

            return queryable;
        }