如何让普通用户以图形方式设计布尔表达式 [英] How to let an average user design a boolean expression graphically

查看:32
本文介绍了如何让普通用户以图形方式设计布尔表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的应用程序中有一个客户列表和一个关键字列表(以及其他内容).每个客户可以有多个关键字,但这不是强制性的.因此,例如,一个客户可以有关键字零售"和连锁",一个客户可以只有承包商",而第三个客户可以根本没有.

In our application there's a list of customers, and a list of keywords (among other things). Each customer can have a number of keywords, but it's not mandatory. So for instance, one customer can have the keywords "retail" and "chain", one can have only "contractor" and a third can have none at all.

我想让用户根据这些关键字选择客户,但不必写(retail AND chain)或contractor and not批发

I want to let the user make a selection of customers based on these keywords, but not having to write (retail AND chain) or contractor and not wholesale

我想让它尽可能地用户友好,理想情况下只有简单"的控件,如复选框、组合框等.

I would like to make it as user-friendly as possible, and ideally with only "simple" controls, like checkboxes, comboboxes etc.

有人对如何设计这个有任何建议吗?或者也许是一些具有类似功能的应用程序示例?

Does anyone have any suggestions on how to design this? Or maybe some examples of applications where there is a similar functionality?

推荐答案

也许最简单的 UI 应该是这样的:

Maybe the simplest UI would be something like:

Find customers with

All of these            Any of these          None of these
[] retail               [] retail             [] retail
[] chain                [] chain              [] chain
[] contractor           [] contractor         [] contractor
[] wholesale            [] wholesale          [] wholesale

这篇关于如何让普通用户以图形方式设计布尔表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆