using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace BP.En
{
///
/// 查询属性
///
public class SearchFKEnum
{
///
/// 查询属性
///
public Attr HisAttr = null;
///
/// 是否显示全部
///
public bool IsShowAll = true;
///
/// 及联子菜单
///
public string RelationalDtlKey = null;
///
/// 查询的字段
///
public string Key = null;
///
/// 下拉框显示的宽度
///
public int Width = 120;
public SearchFKEnum()
{
}
}
///
/// 查询属性s
///
public class SearchFKEnums : CollectionBase
{
public SearchFKEnums()
{
}
public void Add(Attr attr, bool isShowSelectedAll, string relationalDtlKey, int width=120)
{
SearchFKEnum en = new SearchFKEnum();
en.HisAttr = attr;
en.IsShowAll = isShowSelectedAll;
en.RelationalDtlKey = relationalDtlKey;
en.Key = attr.Key;
en.Width = width; //宽度.
this.InnerList.Add(en);
}
public void Add(SearchFKEnum attr)
{
this.InnerList.Add(attr);
}
}
}