fyi: you might want to read, or post to, the Design and Architecture Forum here; did you notice that Kevin Marois has posted a question there inspired by one of your previous posts ? [
^]
The Problem of mapping Rules to Code
Assuming you have created a UI your boss can understand, and you then have a series of rules generated/edited by direct action in that UI (a large assumption !), consider how you might now take action based on those rules to filter the Data.
a. you write your own parser for a unique DSL (domain specific language). that will probably extend your employment by several months. said parser will generate executable code/objects by creating Expression Trees, using Compiler.Emit, and whatever.
b. you map the "rules" by a custom parser to SQL (non-trivial)
c. you find a way to hook into the C# compiler and execute arbitrary code in strings.
c.1 with Visual Studio 2015 and the Roslyn compiler, there is a new scripting facility in the NameSpace: Microsoft.CodeAnalysis.Scripting.CSharp.
c.2 there are numerous examples of scripting for C#; you need to research them. You could even use the 'Eval code in Visual Basic (although, I wouldn't). Check out ReoScript: [
^].
User Interface ideas:
a. a few years ago I did a project that looked like this:
a.1 UserControl 'LogicFactory scrollable
a.1.a contains a Panel docked 'Top, with some controls, like a Button to add a new LogicSelector, a Button to evaluate the "results"
a.2 contains a Collection of LogicSelector UserControls, docked 'Top
b. UserControl 'LogicSelector not scrollable
b.1 contains some ComboBoxes whose contents vary with the selections made in the other ComboBoxes. The user can select from various "targets" and select from various operations.
c. how it kind-of worked:
c.1 the user kept adding LogicSelector controls until they had all their choices entered, at some point invoking the "evaluate" facility.
c.2 the evaluate facility iterated over the collection of LogicSelectors and "did the right thing" to act on the "target."
With hindsight: it was a lot of work to write; it was difficult to add new functionality to. The task of keeping all the ComboBoxes in synch with the right Items involved some fancy dancing.
I hope you are aware that the kind of project you describe is of the type (data-mining, decision-tree construction, data analysis) where existing business-logic/rule modeling software costing many thousands of dollars is often used. I would rate the chances of your completing this project to your boss' satisfaction in less than a year as low, based on the inference, from what you say, that the boss really doesn't quite know what he wants.
But, what a great learning opportunity for you :)
Suggested areas for you to research:
1. Decision Tables/Trees
start here: [
^]
on CP: [
^]
open source: [
^] ... lots of others out there
commercial and works with C#: [
^] ... others out there
Finally, are you aware there are several powerful (from cheap to pricey) add-ons for Excel where you can do the decision modeling and analysis in Excel ? Suggest you not mention these to boss.