BaseQueryForm 提供数据查询的窗体
查询字段的配置可在Config下建立 窗体类名.pcs 文件:
配置文件(Config/*.pcs)
<PropertyColumnConfig>
<Columns> //这节是查询结果列字段配置列表
<Column>
<Type> TreeList的Column的类别
<Text> 列头上显示的文本
<Width> 宽度
<Align> 对齐
<ImageIndex> 图标索引
<Visible> 是否可见
<Key> 对应的表字段
<Formater> 格式,当Type为NumberColumn或DateTimeColumn时设置
<CustomFormat> 自定义格式
</Column>
</Columns>
<Properties> //此节为查询界面上字段的列表
<Property>
<PropertyName> 对应的表字段
<DisplayName> 显示的标签名称
<ImeMode> 输入法状态
<Type> 查询的类别
<EnumType> 如果Type为Enum则指定Enum类别名
</Property>
</Properties>
</PropertyColumnConfig>
如以上窗体对应的配置文件内容如下:
下节该讲报表 BaseReportForm 了。
http://www.cnblogs.com/faib/archive/2009/05/04/1449130.html
属性
DisplayResultList:是否查询后在后面显示查询结果列表
MultiResult:是否返回多条数据
QueryBuilder:查询后返回的查询构造器
ResultList:返回的结果List
ConfigFileName:配置文件
保护的方法
GetInfoFields:得到结果列表的列字段数组
重载方法
CreateListInstance:创建IList
BuildLists:根据查询器查询出数据
FormatValue:格式化数据
GetSelectedInfo:返回选定行的信息
GetItemValue:参见BaseTreeListForm中的相关介绍
QuerySetTypeListData:参见BaseTreeListForm中的相关介绍
QuerySetTypeTreeData:参见BaseTreeListForm中的相关介绍
事件
SetTypeListData:相同于QuerySetTypeListData
SetTypeTreeData:相同于QuerySetTypeTreeData
现在来看一个例子:
Code
查询字段的配置可在Config下建立 窗体类名.pcs 文件:
配置文件(Config/*.pcs)
<PropertyColumnConfig>
<Columns> //这节是查询结果列字段配置列表
<Column>
<Type> TreeList的Column的类别
<Text> 列头上显示的文本
<Width> 宽度
<Align> 对齐
<ImageIndex> 图标索引
<Visible> 是否可见
<Key> 对应的表字段
<Formater> 格式,当Type为NumberColumn或DateTimeColumn时设置
<CustomFormat> 自定义格式
</Column>
</Columns>
<Properties> //此节为查询界面上字段的列表
<Property>
<PropertyName> 对应的表字段
<DisplayName> 显示的标签名称
<ImeMode> 输入法状态
<Type> 查询的类别
<EnumType> 如果Type为Enum则指定Enum类别名
</Property>
</Properties>
</PropertyColumnConfig>
如以上窗体对应的配置文件内容如下:
Code
下节该讲报表 BaseReportForm 了。
http://www.cnblogs.com/faib/archive/2009/05/04/1449130.html