12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.DataLogic.Repositories;
- using EMIS.ViewModel.TerminatePrinter;
- using System.Linq.Expressions;
- using EMIS.Entities;
- namespace EMIS.DataLogic.TerminatePrinter
- {
- public class PrintControlDAL
- {
- public PrintControlRepository PrintControlRepository { get; set; }
- public IQueryable<PrintControlView> GetPrintControlViewQueryable(Expression<Func<Tem_PrintControl, bool>> exp)
- {
- var query = from control in PrintControlRepository.GetList(exp)
- select new PrintControlView
- {
- PrintControlID = control.PrintControlID,
- YearID = control.YearID,
- Times = control.Times
- };
- return query;
- }
- }
- }
|