Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Super Duper Problem

Thread Tools

Super Duper Problem

Posts: n/a

I need to see if we can create control that will do the following:

I have a company A with divisions B, C, D and E (these could grow in
future). Each of these divisions has subdivisions B1, B2...Bn, C1..Cn,
D1..Dn etc.

Now I need to create a page that displays the sales revenue, expenses,
profit/loss at each level. So the first time user comes to page, he
sees a box that contains numbers for company A (could be in a grid
format). When user clicks a + sign attached to this table, the table
expands and he sees the numbers for lower level divisions B,C, D, E
(each of these are in a different grid but on the same row). Now if I
click expand on any of these divisions, the lower level subdivisions
B1....Bn, C1..Cn, D1..Dn etc appear. If a user makes changes to the
numbers at any of the subdivisions, that change should be reflected
all the way to the top.

So let's say that company A has sales of $1000, expenses of $800 and
profit of $200. SubDivision B1 has 50, 20 and 5 as its corresponding
data. So if I do not change any data in other subdivisions but change
B1 to be 60, 30 and 10, then my numbers at A should also reflect that
increase. and should be $1010, 810, 205 respectively.

Further, I need to add a feature (what-if scenarios) whereby I could
drag a subdivision B1 (for example) and drop it to division C. Numbers
would now need to change throughout the structure to reflect the
possible changes of that action.

Any ideas/suggestions on how to implement this will be greatly

One idea I thought of is to cache all the numbers in a datatable;
create a user control (implement draggable interface and with a grid)
at each level and add to a placeholder control. Now each time a user
makes a change, I will update the cached datatable with data from
grids on the page(I will keep an ID field for each row in different
grids in different user controls) and then rebind the data.

Now if user drags and drops a user control to another I will update
cached datatable to reflect new parent for each row and then rebind
page to redraw the whole thing. But this seems very expensive.

Thanks a bunch

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why super.super is not allowed? Java 7 04-06-2008 01:11 AM
super.super.super how? Java 24 02-24-2005 10:51 PM
super. could there be a simpler super? Kerim Borchaev Python 4 01-15-2004 03:15 PM
WHICH LENS? - SIGMA 70-300mm DL MACRO Super-II or 28-300mm AF Super Zoom 4 - for Canon 300d Rebel Digital SLR? No Spam Digital Photography 24 11-27-2003 08:21 AM
Getting the super class via the super() function Fernando Rodriguez Python 2 11-22-2003 12:08 AM