コード例 #1
0
        static GridViewModel GetListModel()
        {
            var viewModel = GridViewExtension.GetViewModel("gvUserList");

            if (viewModel == null)
            {
                viewModel = User__List_Model.CreateGridViewModel();
            }

            return(viewModel);
        }
コード例 #2
0
        public ActionResult ExportTo()
        {
            var hidden_CpGvFind_FilterExpression = Request["hidden_CpGvFind_FilterExpression"];
            var hidden_CpGvFind_SortExpression   = Request["hidden_CpGvFind_SortExpression"];
            var hidden_CpGvFind_PageIndex        = Request["hidden_CpGvFind_PageIndex"];
            var hidden_CpGvFind_PageSize         = Request["hidden_CpGvFind_PageSize"];


            List <Tm_User_View__> items = User__List_Model.GetDataList(hidden_CpGvFind_FilterExpression, hidden_CpGvFind_SortExpression, Convert.ToInt32(hidden_CpGvFind_PageIndex), Convert.ToInt32(hidden_CpGvFind_PageSize));

            return(GridViewExportHelper.ExportTypes["XLS"].Method(GridViewExportHelper.ExportGridViewSettings, items));
        }
コード例 #3
0
 static void ProcessCustomBinding(GridViewModel viewModel)
 {
     User__List_Model.SetBindingData(viewModel);
 }