java - How to create UI and Model based on some business logic -
I was following business logic. This represents some operations in Op1 and Op2. And param1, param2, ... represents the parameter required to execute these functions
op1 = param1, param2 op2 = param1, param2, param3
Now in the UI I had a drop list that contains "op1" and "op2" on the basis of my business logic, the following should be 1) If I select the operation as "OP1" then correspond to parameter 1 and paragraph 2 2 text fields must be enabled on the UI Similarly, there should be 3 text fields for "OP2"
Now when the user enters the data, then I need to continue the data in my DB 1) Consistent with "OP1" The value of the Ultimate 1 and Paragraph 2 should be 2) Consistent with "OP2" I should store the values of param1, param2 and param3
Please guide me how can I get it?
Well I'm not a DB expert, but maybe you have a table for ops with proper information
OpId OpName permissions .... 0001 doStuff 001001001 ...
and you have a table for paragraph
Paramide Paramam Disky ... 0001 Ultimate 1 Whatever ... 0002 para 2
and finally many-many
relationship table
OpId ParamId ParamValue 0001 0001 Value 1 0001 0002 Price 2
If you have a common operation NY sets and parameters, then it will work. However, it may probably overkill, if you are never consultant, then Paramit 1 for OP1 does not mean the param1 for the app2, you will not keep them in a separate table.
Comments
Post a Comment