The use of radiobutton in pb, cross-use filtering data

There is a radiobutton on it. If you want to use the left and right overlapping, it is equivalent to two conditions and together.

==============================

1. Let's talk about the usage of a single radiobutton first
if rb_1.checked=true then
    dw_1.setfilter("dzbz=1")
end if
dw_1.filter()
dw_1.selectrow(0,false),

 

2. Multiple radiobuttons are used alternately

1. Have to circle it with groupbutton

2.
if rb_1.checked=true then
    dw_1.setfilter("dzbz=1")
elseif  rb_1.checked=true and rb_8.checked=true then
    dw_1.setfilter("dzbz=1")  
   dw_1.setfilter("type=2")
elseif   rb_1.checked=true and rb_9.checked=true then
    dw_1.setfilter("dzbz=1")  
   dw_1.setfilter("type=3")
end if
dw_1.filter()


dw_1.selectrow(0,false)
found that this code pattern is not available
=================================== =========

In clinics and wards

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324824482&siteId=291194637