Ejemplo n.º 1
0
        /// <summary>
        /// 短信消息查询
        /// </summary>
        /// <param name="person">姓名</param>
        /// <param name="phoneNumber">手机号码</param>
        /// <param name="dateStart">开始时间</param>
        /// <param name="dateEnd">结束时间</param>
        /// <param name="pageSzie"></param>
        /// <param name="pageIndex"></param>
        /// <returns></returns>
        public PageJqDatagrid <ComNoteContentEntity> GetCommonQuryGetCommonQury(string person, string phoneNumber, string dateStart, string dateEnd, int pageSzie = 15,
                                                                                int pageIndex = 1)
        {
            //计时
            var stopwatch = new Stopwatch();

            stopwatch.Start();
            int totalRecords;
            var data = new ComNoteDal().GetCommonQury(person, phoneNumber, dateStart, dateEnd, pageSzie, pageIndex, out totalRecords);

            var list = ConvertListHelper <ComNoteContentEntity> .ConvertToList(data);

            stopwatch.Stop();
            var totalPage = (totalRecords + pageSzie - 1) / pageSzie;   //计算页数

            return(new PageJqDatagrid <ComNoteContentEntity>
            {
                page = pageIndex,
                rows = list,
                total = totalPage,
                records = totalRecords,
                costtime = stopwatch.ElapsedMilliseconds.ToString()
            });
        }
Ejemplo n.º 2
0
 public ComNoteBll()
 {
     BaseDal = new ComNoteDal();
 }