我有一个要实现的功能:
在我的 PurchTable 表单中,我被告知在表单顶部创建一个组合框,该组合框使用 purchTable.purchstatus 字段中的枚举,即:invoiced、openorder、reveived。
现在单击组合框中的上述任何一个元素,我应该只在下面的网格中获取该数据,即;如果我单击已开票,将显示购买状态为“已开票”的记录。
为此,我创建了一个组合框并使用了 selectionchange() 的覆盖方法“selectionchange”代码:
public int selectionChange()
{
int ret;
ret = super();
if(combobox.selection()==status::invoiced)
{
... what will i have to write here to add range"invoiced" in the datasource
}
if(combobox.selection()==status::All)
{
. .. what will i have to write here to add range"invoiced" in the datasource
}
}