Пример #1
0
        private void LoadData_DetailUser()
        {
            var telephone   = Request.QueryString["telephone"];
            var recordCount = 0;
            var stTime      = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00");
            var endTime     = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59");
            var data        = TrajectoryBLL.GetList_User(telephone, stTime, endTime, 1, 20, out recordCount);

            ViewBag.TrajectoryDetailUserGridRecordCount = recordCount;
            ViewBag.TrajectoryDetailUserGridDataSource  = data;
        }
Пример #2
0
        public ActionResult GetList_User(string telephone, string passTime)
        {
            var startTimeStr = passTime.Substring(0, 19);
            var endTimeStr   = passTime.Substring(22, 19);
            var stTime       = DateTime.Parse(startTimeStr);
            var endTime      = DateTime.Parse(endTimeStr);
            var data         = TrajectoryBLL.GetList_User(telephone, stTime, endTime);

            return(new JsonResult
            {
                Data = data
            });
        }
Пример #3
0
        public ActionResult btnDetailUserSearch_Click(JArray TrajectoryDetailUserGrid_fields, string telephone, string passTime, int TrajectoryDetailUserGrid_pageIndex, int TrajectoryDetailUserGrid_pageSize)
        {
            var grid1        = UIHelper.Grid("TrajectoryDetailUserGrid");
            var recordCount  = 0;
            var startTimeStr = passTime.Substring(0, 19);
            var endTimeStr   = passTime.Substring(22, 19);
            var stTime       = DateTime.Parse(startTimeStr);
            var endTime      = DateTime.Parse(endTimeStr);
            var data         = TrajectoryBLL.GetList_User(telephone, stTime, endTime, TrajectoryDetailUserGrid_pageIndex + 1, TrajectoryDetailUserGrid_pageSize, out recordCount);

            grid1.RecordCount(recordCount);
            grid1.DataSource(data, TrajectoryDetailUserGrid_fields);

            return(UIHelper.Result());
        }