需要购物车建议

发布于 2024-08-25 13:40:41 字数 251 浏览 1 评论 0原文

我正在为药房构建一个小型网络应用程序来跟踪销售和库存,所以简而言之,在一个页面中,药剂师将输入条形码并显示商品,药剂师输入数量(价格将自动计算)然后是下一个项目,下一个等等,我以前没有处理过这样的问题,所以我很感激任何关于如何做、使用什么的建议/提示,它已经以某种整洁的方式完成了,我可以导入进入我的页面。

我正在使用 ASP.net 和 VB.net、SQL 2008 以及 Visual Web Developer 中的所有 Express(也称为 ExpressS)

I am building a small web app for a pharmacy to keep track of sales and stocks, so in short, in one page, the pharmacist will enter a bar-code and the item is displayed, pharmacist enters quantity (price will be automatically calculated) then next item and next and so on, I haven't worked with such a problem before so I would appreciate any advices/tips on how to do it, what to use and wither its already done in some tidy neat way I can just import into my page.

Am using ASP.net and VB.net, SQL 2008 and all express withing Visual Web Developer (also ExpresS)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

失去的东西太少 2024-09-01 13:40:41

我肯定会推着购物车去。他们现在的需求很小,但很快您可能会发现自己正在构建/支持一个成熟的购物车。

nopCommerce 是一个很好的开源 ASP.Net 购物车。

Vevo Cart 是商业产品,但价格低廉,并且拥有不错的安装基础。

I'd definitely go with a shopping cart. Their needs are small now, but pretty soon you may find yourself building/supporting a full-blown shopping cart.

nopCommerce is a nice open-source ASP.Net shopping cart.

Vevo Cart is commercial but inexpensive and has a decent install base.

甜警司 2024-09-01 13:40:41

我认为您正在寻找如何维护状态。请参阅以下链接

http://msdn.microsoft.com/en-us/library /75x4ha6s.aspx

I think you are looking for how to maintain state. see following link

http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx

旧伤还要旧人安 2024-09-01 13:40:41
  1. 将文本框添加到页面并为 OnTextChanged 事件创建事件处理程序。重要提示:将属性 AutoPostBack 设置为 true。当用户在文本框中输入值并且文本框失去焦点时,将触发回发。

  2. 使用数据网格,或在表类型视图中显示数据的任何方式,并将其绑定到集合。

    使用

  3. 当从文本框触发事件时,在数据库中查找产品并将其添加到网格中。

    当从文本框触发事件时

  4. 网格至少需要有一个文本框。使用此文本框,您可以执行与上述相同的操作来计算价格。

该解决方案的唯一问题是用户需要“模糊”文本框。换句话说,文本框需要在事件触发之前失去焦点。为了使一切更加顺利,您需要实现一些 javascript。然后,您可以使用 keyup/keydown 事件并自行触发自定义回发。

我希望这能给你一些工作上的帮助?

  1. Add a textbox to your page and create an event handler for the OnTextChanged event. Important: set the property AutoPostBack true. When the user enters a value in the textbox and the textbox loses the focus a postback will be fired.

  2. Work with a datagrid, or any way of displaying your data in a table kind of view, and bind it to a collection.

  3. When the event is fired from your textbox, lookup the product in your database and add it to the grid.

  4. The grid needs to have at least a textbox. With this textbox you can do the same as mentioned above to calculate the price.

The only problem in this solution is that the user needs to "blur" the textbox. In other words, the textbox needs to lose the focus before the event is fired. To make it all more smooth you need to implement some javascript. Then you can work with the keyup/keydown event and fire a custom postback yourself.

I hope this gives you something to work with?

甜警司 2024-09-01 13:40:41

Nop 很好,但它是 C# 的。原始海报指出 vb。

Kartris 是 vb.net 和 SQL 2008。它是免费且开源的

Nop is good but is C#. Original poster states vb.

Kartris is vb.net and SQL 2008. It's free and open source

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文