Exemplo n.º 1
0
        public IEnumerable <MaintainDto> ListDto(MaintainSearchParam param = null, string cols = "*")
        {
            if (param == null)
            {
                param = new MaintainSearchParam();
            }
            var util = param.ToSearchUtil();

            return(db.Fetch <MaintainDto>(util, "Asset_Maintain", cols));
        }
Exemplo n.º 2
0
        public PageList <MaintainDto> PageListDto(MaintainSearchParam param = null, int pageIndex = 1, int pageSize = 20, string cols = "*")
        {
            if (param == null)
            {
                param = new MaintainSearchParam();
            }
            var util = param.ToSearchUtil();

            return(db.Query <MaintainDto>(util, pageIndex, pageSize, "Asset_Maintain", cols));
        }