Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I write the program that should output the amount of computer technique which is allowed to the manager or supervisor e.t.c. But I can't thought of algorithm. I have a program with two comboboxes and two buttons in WPF. The first combobox correspond for subdivision and second correspond for employe position. I need to do it so that when an user pick subdivision and few of employes positions then the app displays is something like that:
"After-sales service center have 1 supervisor and 2 managers. 1 printer and 1 scaner for the superviser. 1 printer and 1 scaner for the 1 manager. Total amount of technique is 6."
So I can't come up with how do I to make that app calculating on it's own without user. The user should only point out subdivision and what positions this subdivision has. The app should calculate amount of technique for each employe. A sibdivision can have multiple employe positions. Also a manager in one sibdivision can have 1 printer and same manager but in other subdivision may have 1 printer plus 1 ultraviolet detector. That is amount and kind of technique may vary depending on subdivision and number of positions that have been chosen.

What approach I could apply in this issue? Sorry English is not my native language. I hope you understood me.

What I have tried:

Currently my app runs by simple. I chose a subdivision and then choose a position and the program adds to List of strings the employe positions and then it displays how much positions I choosen to status bar as an integer.
Posted
Comments
[no name] 7-Aug-21 11:12am    
Use a TreeView. Nodes are service centers and employees; leaves are equipment.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900