POS C#连接到库存 [英] POS C# connected to stocks

查看:103
本文介绍了POS C#连接到库存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有关如何建立销售点的帮助或指南(如何添加项目,价格总和,一旦处理后将被减去到库存表单中的数量等)

我尝试过的事情:

我已经有一个库存表格和一个pos设计.我只需要代码或有关如何开始编码的任何指南.

I need a help or guide on how to make a point of sale (how to add items, sum of price, qty that will be subtracted to the stocks form once processed, etc.)

What I have tried:

I have a stocks form already, and a pos design. I only need the code or any guide on how to start the coding. Thabk you so much!

推荐答案

我们无法告诉您:组织
的方法太多了 软件已经!而且-当然-我们不为您做作业! :laugh:

首先从两个(或更可能是三个)不同的角度看待整个问题:
1)数据层.您存储什么,如何存储?这是与在应用程序和永久存储"之间实际传输数据有关的所有工作,并且应该隐藏"其余代码中的实际永久存储机制.在这里,您可以编写在实际存储之间接口的代码-无论是文本文件,电子表格,云中基于服务器的数据库,还是两者之间的任何内容.
2)表示层.这是您与用户进行交互的地方-有关表单,控件和用户界面.
3)业务层. (对于简单的应用程序,您可以跳过此步骤).在这里进行决策,并根据公司规则处理用户所做的更改,然后再传递给数据层进行存储.例如,在此情况下,在将实际的库存取款处理到永久存储之前,根据重新订购级别检查五个单位的销售情况,并将一个项目添加到重新订购这些商品"列表中.

从您的-非常模糊-的描述中,我很强烈地感觉到,您只是跳入了将表单放在一起的过程中,而不用考虑如何存储它或需要什么中间结构(项目类,库存项目的集合,任何它真的).这就是真正的编码复杂性所在!
We can''t tell you: there are far too many different ways you can have organised your
software already! And - of course - we don;t do your homework for you! :laugh:

Start by looking at the whole problem from two (or more likely three) different points-of-view:
1) Data layer. What are you storing, how are you storing it? This is all the stuff to do with actually transferring data between your application and "permanent storage" and it should "hide" the actual permanent storage mechanisms from the rest of your code. Here you write code that interfaces between the actual storage - whether it''s a text file, a spreadsheet, a server-based database in the cloud, or anything in between.
2) Presentation layer. This is where you interface with the user - it''s about forms, and controls, and User Interfaces.
3) Business layer. (You may be able to skip this for your simple app). This is where the decisions are made and changes that the user has made are processed according to the company rules before being passed through to the Data layer for storage. For example, this is where a sale of five units is checked against a reorder level and an item added to the "Reorder these" list, before the actual withdrawal from stock is processed into the permanent storage.

I get a strong feeling from your - very vague - description that you''ve just leapt into throwing a form together without any thought about how you store it or what intermediate structures you will need (Item classes, collections of stock items, any of it really). And that''s where the real coding complexity lies!


这篇关于POS C#连接到库存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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