/// <summary> /// 增加2个属性。 /// </summary> /// <param name="lab">标题</param> /// <param name="refKey">关联的Key</param> /// <param name="defaultvalueOfFrom">默认值从</param> /// <param name="defaultvalueOfTo">默认值从</param> /// <param name="tbWidth">宽度</param> public void AddFromTo(string lab, string refKey, string defaultvalueOfFrom, string defaultvalueOfTo, int tbWidth) { AttrOfSearch aos = new AttrOfSearch("Form_" + refKey, lab + "从", refKey, ">=", defaultvalueOfFrom, tbWidth, false); aos.SymbolEnable = false; this.InnerList.Add(aos); AttrOfSearch aos1 = new AttrOfSearch("To_" + refKey, "到", refKey, "<=", defaultvalueOfTo, tbWidth, false); aos1.SymbolEnable = false; this.InnerList.Add(aos1); }
/// <summary> /// 增加一个查询属性 /// </summary> /// <param name="lab">标签</param> /// <param name="refKey">实体的属性</param> /// <param name="defaultvalue">默认值</param> public void Add(string lab, string key, string refKey, string defaultSymbol, string defaultvalue, int tbWidth) { AttrOfSearch aos = new AttrOfSearch(key, lab, refKey, defaultSymbol, defaultvalue, tbWidth, false); this.InnerList.Add(aos); }
public void Add(AttrOfSearch en) { this.InnerList.Add(en); }
/// <summary> /// 增加一个隐藏的查询属性 /// </summary> /// <param name="refKey">关联key</param> /// <param name="symbol">操作符号</param> /// <param name="val">操作的val.</param> public void AddHidden(string refKey, string symbol, string val) { AttrOfSearch aos = new AttrOfSearch("K" + this.InnerList.Count, refKey, refKey, symbol, val, 0, true); this.InnerList.Add(aos); }