Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on Business Objects
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01418326
Message ID:
01418330
Views:
68
>Hi,
>
>I kind of sort of understand the purpose and use of BIZ object. But I am a little confused on what is the better practice for BIZ object in the following case (simplified).
>
>Say you have a parts stock room system. I have a class that is used as BIZ object for validating entries in the parts stock room table. Another typical thing that has to be done in this system is posting receipt of some quantities for the parts. In the UI tier this is done in a batch mode: User has a grid-like form where he/she enters a bunch of parts and the QTY received for each part. This UI tier will then pass the information to the BIZ object that will update (via DA tier) the in-stock quantities. My question is, do I simply add a method of batch posting of receipt items to the Stock Room Parts BIZ class or is it better to have a separate class for using with batch processing?
>
>Thank you in advance for your suggestions.

I'm not sure if this is the best or correct practice, but I was having two types of objects.

One is session based object which was based on my BusinessProcess class. I handled all complex logic in that class.

The other biz object was more of one record in a time processing and it was based on MereMortals biz object.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform