Пример #1
0
        public ActionResult GetSimCodeInfo(SimCodeSearchModels model, int searchPage)
        {
            SearchDataWithPagedDatas <SimCodeSearchModels, SimCodeListModels> result =
                new SearchDataWithPagedDatas <SimCodeSearchModels, SimCodeListModels>();

            result.SearchModel = model;
            result.PagedDatas  = SimCodeBLL.GetPagedSimCode(model, searchPage, this.PageSize);
            return(PartialView("_SimCodePagedGrid", result));
        }
Пример #2
0
        public ActionResult SearchSimCode()
        {
            SearchDataWithPagedDatas <SimCodeSearchModels, SimCodeListModels> model =
                new SearchDataWithPagedDatas <SimCodeSearchModels, SimCodeListModels>();

            model.SearchModel = new SimCodeSearchModels();
            model.SearchModel.CommModeSelectList = SimCodeBLL.GetCommMode().ToSelectListWithAll(m => GetSelectListItem(m.ID, m.Name));
            model.SearchModel.CommMode           = -1;

            model.SearchModel.ServiceProviderSelectList = SimCodeBLL.GetServiceProvider().ToSelectListWithAll(m => GetSelectListItem(m.ID, m.Name));
            model.SearchModel.ServiceProviderID         = -1;

            model.SearchModel.UseStrucID   = -1;
            model.SearchModel.OwnerStrucID = -1;
            model.PagedDatas = SimCodeBLL.GetPagedSimCode(model.SearchModel, 1, this.PageSize);
            return(PartialView("_SearchSimCodeList", model));
        }