9
First, filter in my current context is a list of objects to be used in Combobox type controls so that the user can choose from among the options.
My scenario is this: Screen 1 - Has filters of companies, stocks, customers, payment methods. Screen 2 - Has filters of companies and stocks. Screen 3 - Has filters of customers, cities, states.
My goal is to implement a design standard that uses the same structure, e.g.: Filtrotela, and add in the filters (companies, customers, stocks) depending on the screen that requested it.
These screens are from a windows Forms project, the request will be made to a WCF Service, which will make the query in a database and return the structure with all filters to the client (windows Forms).
Something around, WCF Service I "Screen 1" want the companies filters, stocks, customers and forms of payment, when receiving the msg back, would make the respective Binding for each control.
Can anyone indicate me a design pattern to address this issue?
Create view, and from Dae create filters
– Luiz Vichiatto
Thanks for the help @Luizvichiatto, but the data access layer already exists and even I already use views, my problem is to fit a Patterns design to handle the coming and going of the list of objects (filters) throughout the project.
– Paulo Balbino
uses as parameter in sql
– Roger Oliveira