Beispiel #1
0
        public ActionResult ExtendedSearchResult()
        {
            FilterParams filter = SearchPanelHelper.SearchPanelParseValues(Request.QueryString);

            filter.Add("idfPerson", "=", false);
            Session["Filter"] = filter;
            return(RedirectToAction("ListForm", new { isExtendedSearch = true }));
        }
Beispiel #2
0
        public ActionResult ExtendedSearch()
        {
            var     accessor = SmallVetCaseListItem.Accessor.Instance(null);
            IObject initObject;

            using (DbManagerProxy manager = DbManagerFactory.Factory.Create(EidssUserContext.Instance))
            {
                initObject = accessor.CreateNew(manager, null);
            }
            ViewBag.InitObject = initObject;
            ViewBag.Filter     = SearchPanelHelper.GetDefaultFilter(accessor.SearchPanelMeta, initObject);
            return(View(accessor));
        }
Beispiel #3
0
        private IEnumerable <SelectListItem> GetCurrentLookupSource(string valueFieldName, IObject initSource, string sessionKey = null, string parameterName = null, long?parameterValue = null)
        {
            var item = GetCurrentItem(valueFieldName, sessionKey);

            if (item != null)
            {
                if (item.EditorType == EditorType.Lookup)
                {
                    return(SearchPanelHelper.GetLookup((IObjectCreator)Session[sessionKey ?? MODEL_STORAGE], item, initSource, parameterName, parameterValue));
                }
            }

            return(null);
        }