单个“查找”整个申请表格。 [英] Single "Lookup" form for whole application.

查看:77
本文介绍了单个“查找”整个申请表格。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了一个vb应用程序,其中文本框用于数据输入表单。在每个文本框中(特别是按键),查找表单打开以供选择(实际上用于搜索+选择)。

这是一个好主意(查找表单)??

我应该尝试在我的C#数据输入项目中实现它吗?

是否有任何关于正确方法的示例或参考资料。

I saw a vb application where text boxes were used for data entry forms. In every text box (on particular key press) a lookup form was opening for selection(in fact for search + selection).
Is it a good idea( lookup form)??.
Should i try to implement it in my C# data entry project?
is there any example or reference material about the right method to do it.

推荐答案

这是个好主意吗?只有你的客户可以告诉你!



我过去实现了类似的东西 - 通常是用户通常知道代码或数字的合理大型集合,所以会只需输入,但偶尔需要查看价值。



对于小型收藏品,我们使用连击,因为它们不会分散注意力。



它相对容易 - 但需要一点思考;您的所有查找都能够使用通用表单吗?查找的返回值是(ADO?)对象还是只是一个键 - 或者放在文本框中的字符串。



我实现的方式WinForms中的最后一个是基于普通的vanilla文本框创建我们自己的LookUpTextBox,它具有用于向lookUp窗口描述正在查找的信息的其他属性。



这个LookUpTextBox检测到一个功能键按下,然后用适当的参数实例化一个LookUpForm,以模态方式显示表单,检索结果(我们的结果是一个整数ID和一个String),将字符串放在Text中并存储可以在内部用于识别所选记录的ID。



我们发现的一件事是用户不断想要在弹出窗口中添加其他功能 - 额外过滤对于该实体,该实体的更多信息 - 我们最终为许多查找创建了特定的表单。
Is it a good idea? Only your customers can tell you that!

I have implemented similar things in the past - generally for reasonably large collections where users usually knew a code or number, and so would just type it in, but occasionally needed to look up the value.

For small collections, we used combos as they are far less distracting.

It's relatively easy - but needs a little thought up front; Are all of your look ups able to use a generic form? Will the returned value from the look up be an (ADO?) object or just a key - or a string to put in the text box.

The way I implemented the last one in WinForms was to create our own LookUpTextBox based on a plain vanilla text box, which had additional properties used to describe to the lookUp window what information was being looked up.

This LookUpTextBox detected a function key press, and then instantiated a LookUpForm with the appropriate parameters, showed the form modally, retrieved the result (our result was an integer ID and a String), place the string in the Text and store the ID which could them be used internally to identify the record selected.

One thing we did find was that the users constantly wanted additional functionality in the pop up windows - extra filtering for this entity, more information for that entity - and we ended up creating specific forms for many of the look ups.


这篇关于单个“查找”整个申请表格。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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