ShowAllRows() and if(text([%日期1%])="" or text([%日期2%])="",msgbox("开始日期和结束日期必须都选择,可以是同一天!",1,1),if(text([%日期1%])<>"" and text([%日期2%])<>"" and [%日期1%]>[%日期2%],msgbox("开始日期不可大于结束日期,请重新选择!",1,1) and SetVariable("%日期1%","") and SetVariable("%日期2%",""),true)) and if([%课别%]>"",FilterFor("课别","=",[%课别%]),True) And if([%门店%]>"",FilterFor("门店","=",[%门店%]),True) And EvalFor("课别销售","店_销售数量","[%销售数量2%]")