在另一台笔记本电脑上为另一个winform生成datagridview [英] Generating a datagridview to another winform on another laptop

查看:54
本文介绍了在另一台笔记本电脑上为另一个winform生成datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个POS和厨房排队,厨房排队显示在另一台笔记本电脑中。我有3个listview,它从数据库[dbo.Kitchen] - 列(tblnmber,Product,Quantity)收集数据,特别是订购商品的客户的表号。当您点击表格编号时,产品和数量将显示在另一个列表视图中,也可以是接受 - 使用btnAccept和完成 - 使用btnDone。当它完成时,订单将清除,并且队列中的表号也很好,并且运行顺畅。



但问题是我们的小组成员,想要制作就像Mcdo的排队一样,它产生了一个datagridview(我猜),并且订单在里面,并且在它的顶部有一个计时器。我希望我的队列可以这样做,因为我们的小组成员想要这样做,但我不知道生成datagridview的内部订单和顶部的计时器。当然,在厨房工作人员点击数据网格内的完成按钮后清除这些订单。



任何回复或建议将不胜感激!谢谢!



我尝试过的事情:



我是从来没有尝试过,因为我不知道我会怎么做,但我有自己的排队,只是小组成员想让它更像麦多的排队。哪个我有问题怎么办

Hi Guys, i have a POS and Kitchen Queuing where the Kitchen Queuing display is in another laptop. I have 3 listview's which collects the data from the database[dbo.Kitchen] - columns (tblnmber, Product, Quantity), specifically the table number of the customer who ordered an item. and when you click the table number, the products and quantity will show on another listview which is also can be 'Accept' -using the btnAccept and Done -using the btnDone. when it's done the orders will clear and also the table number from the queue , it's good and also running smoothly.

But the problem is that our panelists, wants to make it like the queuing of Mcdo, which generates a datagridview (i guess) , and the orders are inside on it, and a timer on the top of that. I want my queue to make it like that because our panelists wanted to do so, but i don't have any idea generating that datagridview with the orders inside on it and a timer on the top. And ofcourse, clearing those order after the staff on the kitchen tap the button 'Done' inside the datagridview.

Any response or suggestions will be greatly appreciated ! Thank You!

What I have tried:

I've never tried, because i don't know how will i do it, but i have my own queuing , it's just that the panelists want to make it more like Mcdo's queuing. Which i am having a problem how to do it

推荐答案

我建​​议使用 SqlDependency Class(System.Data.SqlClient)| Microsoft Docs [ ^ ]



详情请见:

使用SqlDependency检测更改Microsoft Docs [ ^ ]

使用SqlDependency进行数据更改事件 [ ^ ]

使用SqlDependency和SqlCacheDependency查询通知 [ ^ ]
I'd suggest to use SqlDependency Class (System.Data.SqlClient) | Microsoft Docs[^]

For further details, please see:
Detecting Changes with SqlDependency | Microsoft Docs[^]
Using SqlDependency for data change events[^]
Query Notification using SqlDependency and SqlCacheDependency[^]


这篇关于在另一台笔记本电脑上为另一个winform生成datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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