灯开关库存应用程序
我正在 LightSwitch 中构建一个库存记录系统,并且要求指定每行应像检查寄存器一样显示更改后的期末余额。
我有 3 个从 SQL Server 导入的表。 Products : 用于指定产品信息
(ID、名称、描述等)
InventoryLogs :用于记录库存的每次更改
(ID、日期时间戳、人员、产品 ID、添加数量、删除数量、结束余额)
InventoryCurrent :用于保留当前库存数量以减少计算开销
(ID、产品ID、数量)
我将 InventoryLogs 表设置为用户可以输入对库存的更改的屏幕。我希望通过从 InventoryCurrent 表获取值并添加/减去更改来自动计算 EndingBalance 字段,但我似乎不知道如何执行此操作。
任何帮助将不胜感激!
I am building an inventory logging system in LightSwitch and the requirements specify that each line should show the ending balance after the change like a check register.
I have 3 tables imported from a SQL Server.
Products : used to specify product info
( ID, Name, Description, etc..)
InventoryLogs : used to log each change to inventory
( ID, DateTimeStamp, Person, ProductID, QuantityAdded, QuantityRemoved, EndingBalance)
InventoryCurrent : used to keep current inventory quantities to reduce calculation overhead
( ID, ProductID, Quantity )
I setup the InventoryLogs table as a screen that users can enter their changes to the inventory. I want the EndingBalance field to be automatically calculated from by getting the value from the InventoryCurrent table and adding/subtracting the change, but I can not seem to figure out how to do so.
Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了我需要的东西。我能够操纵保存事件来纠正并设置值。
I found what I needed. I was able to manipulate the save event to correct, and set the values.