按时间类型查询.rar
------------参考文件--------------------


var ac=this.getValue();
if(ac=="按日"){
this.options.form.getWidgetByName("m_1").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("m_2").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("y_1").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("y_2").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("sj1").setVisible(true);//
this.options.form.getWidgetByName("sj2").setVisible(true);//
}
else if (ac=="按月"){
this.options.form.getWidgetByName("sj1").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("sj2").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("y_1").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("y_2").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("m_1").setVisible(true);//
this.options.form.getWidgetByName("m_2").setVisible(true);//
}
else {
this.options.form.getWidgetByName("sj1").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("sj2").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("m_1").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("m_2").setVisible(false);//不可见,隐藏它
this.options.form.getWidgetByName("y_1").setVisible(true);//
this.options.form.getWidgetByName("y_2").setVisible(true);//
}