validate an organization hierarchy

validate an organization hierarchy

Old forum URL: forums.lhotka.net/forums/t/8108.aspx


steffo posted on Monday, December 07, 2009

What would be the best way to validate a management hierarchy imported from an xl file? Suppose that the user has entered levels 1a, 2a and 3b + other information (cost, country etc). What I need is a validation rule that informs the user that 3b is not a part of 2a.  I know it isn't an ideal solution to use xl as user input but can I do this in CSLA?

ajj3085 replied on Tuesday, December 08, 2009

Probably what i would do is have some BO classes which represent the heirarchy.  The root instance would be created using the xls file as input (which ends up going through the normal DP_C).  The the validation rules could check everything is ok or not.  What you do with the graph at that point depends on your use case.

Copyright (c) Marimer LLC