| |

VerySource

 Forgot password?
 Register
Search
View: 1009|Reply: 7

Problems with "Production Task Order" delivery?

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-6 12:50:01
| Show all posts |Read mode
Process: The company's business receives the production task, reports it to the "plan", then leads the "approval", and then reports to the production department and quality inspection department to start production.

Requirement: While recording the data of the entire production task order, ensure that the report is reported to the leader at the first time; the production task order that is also approved can be notified to the production department and the quality inspection department at the first time.

Please talk about experienced brothers.
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-7 09:42:01
| Show all posts
Just say two scenarios for reference:

First, some event processing mechanisms can be used. When an event (such as "reporting a plan") occurs, another event (leader approval) is triggered. If it is in the local area network, remote method call can be used here.

Second, use MSMQ. Establish two MQs. When there is a plan to report, send a message to Q1, and the leader can receive this message in time by using asynchronous monitoring (peek or recive) in MQ; after the leader agrees, send a message to Q2, and the production department can Receive the message in the same way.
Reply

Use magic Report

0

Threads

8

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-7 12:33:01
| Show all posts
Seeing what you do n’t know is how to get the status change message. There are many ways to solve this, depending on the structure of your system. If it is an entire OA system, then it is simple. The internal messages can be various All kinds. If it is external data, you can consider using Socket, MSMQ, DB and so on.
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-7 14:45:01
| Show all posts
Yeah, what I think about is mainly the problem of message passing, because its timeliness requirements are very high, it is necessary to minimize the delay in time,
The MSMQ said byryan01is indeed a good way, but I have no experience in this area, and I will consider this kind of scheme.

By the way, this is an entire OA. I don't know ifblankaxwhcan help list several good solutions.
Of course, if there are source code examples, that would be even more appreciated.
Reply

Use magic Report

0

Threads

8

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-7 17:09:01
| Show all posts
Source code. . . This is a bit overdue, huh, huh.
Check again whether it is WebForm or WinForm.
If it is Web, consider AJAX. If it is WinForm, MSMQ is really worry-free and easy to use. You can pay attention to the namespace System.Messaging. There are a lot of examples of MSMQ on the Internet.
If you are unfamiliar, you can make a Socket method, but the Socket class in .NET is really not very convenient. The real-time nature of these two methods can be guaranteed. But passing data will be a bit more troublesome, you can consider the way of combining with DB :) (recommended)
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-9 21:00:01
| Show all posts
Thank you very muchblankaxwhfor giving me such a good suggestion and I will try it (I want to keep this post for a while so that I can ask you in time if there is any problem, please understand)
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-9 22:45:01
| Show all posts
mark
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-8-6 13:15:02
| Show all posts
Well, all the problems are solved!
Thank you all!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list