[英]Tapestry - What is best approach for ordering items from different suppliers
In my application i will have to deal with ordering medicines from different suppliers. 在我的申请中,我将不得不处理从不同供应商处订购的药品。 I have Supplier class that contains medicines.
我有包含药品的供应商类。 Those medicines can be ordered by pharmacist user.
那些药物可以由药剂师用户订购。 If i have many suppliers, what is the best way to order medicines from those suppliers?
如果我有很多供应商,从这些供应商订购药品的最佳方法是什么?
I was thinking to have one select component that have model property like this: model="literal:supplierID=supplierName, 2=Borko, 3=Richard" , then to add zone component to change list of medicines in grid using ajax - when user change selected item from select component. 我当时在考虑一种具有模型属性的选择组件:model =“ literal:supplierID = supplierName,2 = Borko,3 = Richard”,然后添加区域组件以使用ajax更改网格中的药品列表-当用户使用时从选择组件中更改选择的项目。
The second version of ordering is to have listed all suppliers and to have check boxes next to each supplier for selecting multiple suppliers. 订单的第二种形式是列出所有供应商,并在每个供应商旁边都有复选框以选择多个供应商。 When user check one check box then in t:zone component to display all medicines from that supplier including medicines from already checked suppliers.
当用户选中一个复选框时,则在t:zone组件中显示该供应商的所有药品,包括已检查供应商的药品。
Tell me if you have any suggestion of how to solve this problem. 告诉我您是否有解决此问题的建议。
Thanks, Borko Djurovic. 谢谢,Borko Djurovic。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.