1个回答
2013-10-30
展开全部
dw_1.setfilter("")
if rb_1.checked=true then
//精确查询模式程序
choose case ddlb_1.text
case "图书编号"
dw_1.setfilter("tushu_id='"+sle_1.text+"'")
case "图书名称"
dw_1.setfilter("tushu_name='"+sle_1.text+"'")
case "作者"
dw_1.setfilter("zuozhe='"+sle_1.text+"'")
case "出版社"
dw_1.setfilter("chubanshe='"+sle_1.text+"'")
case "隶属"
dw_1.setfilter("chubanshe='"+sle_1.text+"'")
end choose
else
//模糊查询模式程序
choose case ddlb_1.text
case "图书编号"
dw_1.setfilter("tushu_id like"+"'%"+sle_1.text+"%'")
case "图书名称"
dw_1.setfilter("tushu_name like"+"'%"+sle_1.text+"%'")
case "作者"
dw_1.setfilter("zuozhe like"+"'%"+sle_1.text+"%'")
case "出版社"
dw_1.setfilter("chubanshe like"+"'%"+sle_1.text+"%'")
case "隶属"
dw_1.setfilter("lishu like"+"'%"+sle_1.text+"%'")
end choose
end if
dw_1.retrieve()
if rb_1.checked=true then
//精确查询模式程序
choose case ddlb_1.text
case "图书编号"
dw_1.setfilter("tushu_id='"+sle_1.text+"'")
case "图书名称"
dw_1.setfilter("tushu_name='"+sle_1.text+"'")
case "作者"
dw_1.setfilter("zuozhe='"+sle_1.text+"'")
case "出版社"
dw_1.setfilter("chubanshe='"+sle_1.text+"'")
case "隶属"
dw_1.setfilter("chubanshe='"+sle_1.text+"'")
end choose
else
//模糊查询模式程序
choose case ddlb_1.text
case "图书编号"
dw_1.setfilter("tushu_id like"+"'%"+sle_1.text+"%'")
case "图书名称"
dw_1.setfilter("tushu_name like"+"'%"+sle_1.text+"%'")
case "作者"
dw_1.setfilter("zuozhe like"+"'%"+sle_1.text+"%'")
case "出版社"
dw_1.setfilter("chubanshe like"+"'%"+sle_1.text+"%'")
case "隶属"
dw_1.setfilter("lishu like"+"'%"+sle_1.text+"%'")
end choose
end if
dw_1.retrieve()
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询