private void BuildParameterList(GridView gridView) { ParmSet list = Model.parmSet as ParmSet; parmBind = new List <ParmBind>(); List <ParmBind> saved = new List <ParmBind>(); foreach (var l1 in list.Parameters.Metadata) { foreach (var l2 in l1.Parameter) { var br = new ParmBind(); br.Kind = DisplayKind(l2.Parameter.Kind); br.ParameterName = l2.Parameter.Name; br.Description = l2.Description; br.Operation = "EQ"; br.From = ""; br.To = ""; parmBind.Add(br); var br1 = new ParmBind(); br1.Kind = DisplayKind(l2.Parameter.Kind); br1.ParameterName = l2.Parameter.Name; br1.Description = l2.Description; br1.Operation = "EQ"; br1.From = ""; br1.To = ""; saved.Add(br1); } } Session[OriginalParms] = saved; BindData <List <ParmBind> >(gridView, parmBind, SesParmList); }
public Dictionary<string, object> Search(string term, string categories) { try { if (term == null) return null; term = term.Trim().ToLower(); var a = new ParmSet { Categories = categories, Term = term }; var ret = Helper.FetchCacheableSingleResultByKey(doSearch, a.ToJson(), "GlobalSearch"); return ret; } catch (Exception e) { Current.Log.Add(e); throw; } }