我一开始用的是
if rb_unover.Checked = TRUE then
flag="0"
elseif rb_over.Checked = TRUE then
flag="1"
else
falg="%"
end if
//////////////////////在数据窗口中设参数时我用的是“like”
dw_list.settransobject(sqlca)
dw_list.retrieve(ordno,ordno1,refno,refno1,date(kaishi),date(jieshu),flag)
但是我发现
if rb_unover.Checked = TRUE then
falg=0或者是flag=5时 才对
我无法实现
后来我改成:
if rb_unover.Checked = TRUE then
dw_list.settransobject(sqlca)
dw_list.retrieve(ordno,ordno1,refno,refno1,date(kaishi),date(jieshu))
dw_list.setfilter("purchaseorder_rec_flag <>'1'")
// dw_list.filter()
dw_list.retrieve(ordno,ordno1,refno,refno1,date(kaishi),date(jieshu))
else
if rb_over.Checked = TRUE then
dw_list.settransobject(sqlca)
dw_list.retrieve(ordno,ordno1,refno,refno1,date(kaishi),date(jieshu))
dw_list.setfilter("purchaseorder_rec_flag ='1'")
// dw_list.filter()
dw_list.retrieve(ordno,ordno1,refno,refno1,date(kaishi),date(jieshu))
else
dw_list.settransobject(sqlca)
dw_list.retrieve(ordno,ordno1,refno,refno1,date(kaishi),date(jieshu))
end if
end if