Anti-Rich
Well-known member
hello everyone,
at the moment i am trying to grab some information from the database and put it into a custom control called 'TreeListView' (any guesses what it does?
)...
the data in question is pick rate information in a warehouse. so basically the person is given a number of vouchers with the total number of items on the vouchers, and when they finish they also record the hours they spent here...
so the table structure is like this:
LocationID
PickDate
EmployeeID
GridID (location within in the warehouse)
PickHours
PickVouchers
PickItems
There is no primary key as the entry system on the front end needs to allow for multiple entries by the same person at the same grid location on the same day. i was thinking i should just give it a basic primary key of an incrementing integer... is this a good idea or should i just leave it as it is?
anyway, i need the information to drill down in the treelistview like so:
LocationID
--> Pick Date
--> Grid ID
Employee : Total Pick Hours : Total Vouchers : Total Items
So, the problem is how should i store all of this data locally so i can populate the treelistview at will? i know the sql i need to GET the data itself, but as to how to store it properly i am COMPLETELY stumped... i have been working on this all morning and i still havent come up with a solution! for similar things in the past i have used Dictionaries (god bless cjard for introducing me to those! ), but i feel that there is too much data and doing it using a dictionary much more complex than it needs to be (it would be a case of dictionaries within dictionaries within dictionaries!)...
i cant use a selecteditem because the expand event on the treelistview to grab data upon request (which would be MUCH easier if the control implemented it!) as it doesnt recognise that something has been clicked or selected when you expand a node/item
does anyone have any ideas on how i can approach this?
cheers all
adam
at the moment i am trying to grab some information from the database and put it into a custom control called 'TreeListView' (any guesses what it does?
the data in question is pick rate information in a warehouse. so basically the person is given a number of vouchers with the total number of items on the vouchers, and when they finish they also record the hours they spent here...
so the table structure is like this:
LocationID
PickDate
EmployeeID
GridID (location within in the warehouse)
PickHours
PickVouchers
PickItems
There is no primary key as the entry system on the front end needs to allow for multiple entries by the same person at the same grid location on the same day. i was thinking i should just give it a basic primary key of an incrementing integer... is this a good idea or should i just leave it as it is?
anyway, i need the information to drill down in the treelistview like so:
LocationID
--> Pick Date
--> Grid ID
Employee : Total Pick Hours : Total Vouchers : Total Items
So, the problem is how should i store all of this data locally so i can populate the treelistview at will? i know the sql i need to GET the data itself, but as to how to store it properly i am COMPLETELY stumped... i have been working on this all morning and i still havent come up with a solution! for similar things in the past i have used Dictionaries (god bless cjard for introducing me to those! ), but i feel that there is too much data and doing it using a dictionary much more complex than it needs to be (it would be a case of dictionaries within dictionaries within dictionaries!)...
i cant use a selecteditem because the expand event on the treelistview to grab data upon request (which would be MUCH easier if the control implemented it!) as it doesnt recognise that something has been clicked or selected when you expand a node/item
does anyone have any ideas on how i can approach this?
cheers all
adam