Example #1
0
        public ActionResult GetTerminalTypeInfo(TerminalTypeSearchModel model, int searchPage)
        {
            SearchDataWithPagedDatas <TerminalTypeSearchModel, TerminalTypeListModel> result = new SearchDataWithPagedDatas <TerminalTypeSearchModel, TerminalTypeListModel>();

            result.SearchModel = model;
            result.PagedDatas  = TerminalTypeBLL.GetPagedTerminalTypes(model, searchPage, this.PageSize);
            return(PartialView("_TerminalTypePagedGrid", result));
        }
Example #2
0
        public ActionResult TerminalTypeSetting()
        {
            SearchDataWithPagedDatas <TerminalTypeSearchModel, TerminalTypeListModel> model = new SearchDataWithPagedDatas <TerminalTypeSearchModel, TerminalTypeListModel>();

            model.SearchModel = new TerminalTypeSearchModel();
            model.SearchModel.TerminalManufacturerID         = -1;
            model.SearchModel.TerminalManufacturerSelectList = TerminalManufacturerBLL.GetTerminalManufacturers().ToSelectListWithAll(m => GetSelectListItem(m.ID, m.ManufacturerName));
            model.PagedDatas = TerminalTypeBLL.GetPagedTerminalTypes(model.SearchModel, 1, this.PageSize);
            return(PartialView("_TerminalTypeSetting", model));
        }