I have a web application developed with angularJS. There is a form where workplace accidents are saved to the database. When a new record is saved I need to send information to all the computers on the network. Most of them are thin clients related to a terminal server. My web application won't be running ot the clients. Only an alert/message should be shown there, like "New accident was recorded.".
我有一个使用angularJS开发的Web应用程序。有一种表格可以将工作场所事故保存到数据库中。保存新记录时,我需要将信息发送到网络上的所有计算机。其中大多数是与终端服务器相关的瘦客户端。我的Web应用程序将不会运行客户端。此处只应显示警报/信息,例如“记录了新事故”。
I couldn't find which technology should I use. Any suggestions please?
我找不到应该使用哪种技术。有什么建议吗?
Thank you in advance!
先感谢您!
Regards
2 个解决方案
#1
1
There has to be server part of the application that takes care of saving data to database. In that function which saves data, at the end you could create a mailing list of target users (or predefined group of receivers) and create a mail that will be sent with message you want em to receive. Popping message boxes on network computers is far from any practical solution. So you don't need any special technology, you already have all you need.
必须有应用程序的服务器部分负责将数据保存到数据库。在保存数据的功能中,最后您可以创建目标用户(或预定义的接收者组)的邮件列表,并创建一个邮件,该邮件将与您希望他们接收的邮件一起发送。在网络计算机上弹出消息框远非任何实际的解决方案。因此,您不需要任何特殊技术,您已经拥有了所需的一切。
#2
0
Thanks for the answer Mladen!
谢谢Mladen的答案!
I already have a function sending mail to some predefined users. But there are a lot of client machines in which can't send/receive mails... So I have to warn them in some other way.
我已经有一个函数向一些预定义的用户发送邮件。但是有很多客户端机器无法发送/接收邮件......所以我必须以其他方式警告它们。
I'm researching now node.js child_process spawn in order to run command prompt. But couldn't figure out yet how to use node.js.
我正在研究node.js child_process spawn以运行命令提示符。但还是弄清楚如何使用node.js.
Thank you again!
再次感谢你!
Edit: For those who search a similar solution:
编辑:对于那些搜索类似解决方案的人:
With the following line I managed to pop up a message on my computer from javaScript:
通过以下行,我设法从javaScript在我的计算机上弹出一条消息:
java.lang.Runtime.getRuntime().exec("cmd /c msg userID msg_text");
java.lang.Runtime.getRuntime()。exec(“cmd / c msg userID msg_text”);
But that is not exactly what I need. I will write here again when I find the solution.
但这并不是我所需要的。当我找到解决方案时,我会再次写在这里。
#1
1
There has to be server part of the application that takes care of saving data to database. In that function which saves data, at the end you could create a mailing list of target users (or predefined group of receivers) and create a mail that will be sent with message you want em to receive. Popping message boxes on network computers is far from any practical solution. So you don't need any special technology, you already have all you need.
必须有应用程序的服务器部分负责将数据保存到数据库。在保存数据的功能中,最后您可以创建目标用户(或预定义的接收者组)的邮件列表,并创建一个邮件,该邮件将与您希望他们接收的邮件一起发送。在网络计算机上弹出消息框远非任何实际的解决方案。因此,您不需要任何特殊技术,您已经拥有了所需的一切。
#2
0
Thanks for the answer Mladen!
谢谢Mladen的答案!
I already have a function sending mail to some predefined users. But there are a lot of client machines in which can't send/receive mails... So I have to warn them in some other way.
我已经有一个函数向一些预定义的用户发送邮件。但是有很多客户端机器无法发送/接收邮件......所以我必须以其他方式警告它们。
I'm researching now node.js child_process spawn in order to run command prompt. But couldn't figure out yet how to use node.js.
我正在研究node.js child_process spawn以运行命令提示符。但还是弄清楚如何使用node.js.
Thank you again!
再次感谢你!
Edit: For those who search a similar solution:
编辑:对于那些搜索类似解决方案的人:
With the following line I managed to pop up a message on my computer from javaScript:
通过以下行,我设法从javaScript在我的计算机上弹出一条消息:
java.lang.Runtime.getRuntime().exec("cmd /c msg userID msg_text");
java.lang.Runtime.getRuntime()。exec(“cmd / c msg userID msg_text”);
But that is not exactly what I need. I will write here again when I find the solution.
但这并不是我所需要的。当我找到解决方案时,我会再次写在这里。