Ejemplo n.º 1
0
        private void PageInit()
        {
            UserInfo uinfo = Session["cudoUser"] as UserInfo;

            WebPager.RecordCount = bll.GetCount(uinfo.Id);
            rpt_list.DataSource  = bll.GetList(WebPager.CurrentPageIndex, WebPager.PageSize, uinfo.Id);
            rpt_list.DataBind();
        }
Ejemplo n.º 2
0
        private void LoadData()
        {
            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        = MessageBLL.GetList("", "", stTime, endTime, 1, 20, out recordCount);

            ViewBag.Grid1RecordCount = recordCount;
            ViewBag.Grid1DataSource  = data;
        }
Ejemplo n.º 3
0
        public ActionResult btnSearch_Click(JArray MessageGrid_fields, string username, string title, DateTime startTime, DateTime endTime, int MessageGrid_pageIndex, int MessageGrid_pageSize)
        {
            var grid1       = UIHelper.Grid("MessageGrid");
            var recordCount = 0;
            var stTime      = DateTime.Parse(startTime.ToString("yyyy-MM-dd") + " 00:00:00");
            var edTime      = DateTime.Parse(endTime.ToString("yyyy-MM-dd") + " 23:59:59");
            var data        = MessageBLL.GetList(username, title, stTime, edTime, MessageGrid_pageIndex + 1, MessageGrid_pageSize, out recordCount);

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

            return(UIHelper.Result());
        }
Ejemplo n.º 4
0
 private void PageInit()
 {
     WebPager.RecordCount = bll.GetCount();
     myGrid.DataSource    = bll.GetList(WebPager.CurrentPageIndex, WebPager.PageSize);
     myGrid.DataBind();
 }