for example:
status of Purchase order below:
1.Draft
2.Wait to approve
3.release
4.Complete
how to set the object read only in 2 or 3. 4.
If readonlybase and bussinessobject can be tranfered to each other freely with a simple method or property will be perfect!
Ideally,
you do want to sets of objects. A workaround would be to override
CanWriteProperty, test the order status and return false when status indicates
read-only state.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: simon
[mailto:cslanet@lhotka.net]
Sent: Wednesday, April 01, 2009 8:08 AM
To: Sergey Barskiy
Subject: [CSLA .NET] How to set Bussinessobject read only or can not
write according to backing field
for example:
status of Purchase order below:
1.Draft
2.Wait to approve
3.release
4.Complete
how to set the object read only in 2 or 3. 4.
If readonlybase and bussinessobject can be tranfered to each other
freely with a simple method or property will be perfect!
Copyright (c) Marimer LLC