if(text([%开始日期%])>"" Or text([%结束日期%])>"" Or [%机型%]>"" and [%区域%]>"" Or [%维修部位%]>"" Or [%维修部位子类%]>"",if([%班次%]>"",setlabel("",countfor("设备维修数据", "日期",">=",[%开始日期%] , "日期","<=",[%结束日期%],"班次","=",[%班次%],"机号","=",[%机号%],"机型","=",[%机型%],"区域","=",[%区域%],"维修部位","=",[%维修部位%],"维修部位子类","=",[%维修部位子类%])),setlabel("",countfor("设备维修数据", "日期",">=",[%开始日期%] , "日期","<=",[%结束日期%],"机号","=",[%机号%],"机型","=",[%机型%],"区域","=",[%区域%],"维修部位","=",[%维修部位%],"维修部位子类","=",[%维修部位子类%]))),msgbox("无法完成统计!请填写必要的数据!",0))
|