i want to write a client/server win program.every client has a amount in it's fund that admin gives to them .now my question is how can every client send it's amount of fund to admin?and the amount of funds must be pend until admin accept them and then save changes for every client? how can i do it?? thanks alot.
Your situation sounds like the business rules can get complicated really fast. This is a psuedo code overview of how the system might look:
This makes a few assumptions:
- Your not utilizing a database from the clients directly.
- Your client is storing the fund locally.
- The client controls the pending state.
- All logic is controlled from the method
Admin.Handle()
.
Your problem doesn't seem that well defined at this point. What happens if multiple clients access the same fund? How do clients know that another client has marked the fund as pending? Can you make the server store the funds and have the clients perform transaction requests against the server?
精彩评论