用于条码 Intranet 应用程序的 XBAP、Click-Once 或 ASP.NET
我正在为一个简单的库存系统开发用户界面。用户将使用 USB 条形码扫描仪检索 ID,然后从数据库中检索有关扫描对象的信息或输入新信息。这只会在我们的公司环境中使用。我无法决定哪种方法是最好的。我想利用这个机会尝试一下WPF。
我喜欢让用户与网页交互的想法,但我不喜欢使用 USB 扫描仪作为键盘楔子的想法。我宁愿使用服务对象,以便我可以捕获事件。我考虑将其编写为从我们的服务器运行的 XBAP,但不确定它是否能够与扫描仪交互。
我希望能够灵活地在商店中的任何计算机上运行它,而不必在本地安装软件,也不必担心不同版本的问题。我非常感谢对此的一些建议。
I'm working on a UI for a simple inventory system. The users will use a USB barcode scanner to retrieve an ID and then either retrieve information from the database about the scanned object or enter the new information. This will only be used within our corporate environment. I can't decide which is the best way to go with this. I would like to use this opportunity to take a crack at WPF.
I like the idea of having the users interact with a webpage but I don't like the idea of using the USB scanner as a keyboard wedge. I would rather use the service object so that I can capture the event. I thought about writing it as an XBAP running from our server but wasn't sure if it'd be able to interact with the scanner.
I want the flexibility to run this on any computer in the shop without having to install software locally and worry about different versions floating around. I would greatly appreciate some advice on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将使用 ClickOnce 部署。
我知道您说过您不想在本地安装任何内容,但它确实会从中央位置(例如 Web 服务器或文件共享)自动更新客户端。您可以直接从 Visual Studio 轻松发布新版本。每次用户在本地启动程序时,它都会相当透明地检查更新并安装它们。
这只是 UI 和条形码界面,您可以在服务器上创建一个 WCF 服务来进行实际工作,即数据库查询、业务逻辑等。
我们店里的情况几乎相同,只是时间不同-跟踪应用程序。我们提出了一个使用服务器上的 WCF 服务通过 ClickOnce 部署的 Windows 窗体应用程序。它运行良好,我们不需要去每个工作站执行更新。
I would use ClickOnce Deployment.
I know you said you don't want to install anything locally, but it does take care of automatically updating the clients from a central location such as web server or file share. You can easily publish new builds right from Visual Studio. Each time the user starts the program locally it checks for updates and installs them, fairly transparently.
This would just be the UI and barcode interface, you could create a WCF service on the server for the actual work, i.e. database querying, business logic, etc.
We were in an almost identical situation in our shop, except it was a time-tracking application. We came up with a Windows Form application deployed via ClickOnce using a WCF service on the server. Its been working well and we don't need to go to each workstation to perform updates.