Information générale
Catégorie:
Programmation Orientée Object
>1) There are values related to the calendar e.g. Days of week or names of months in spanish. You may consider these to be "permanent" values.
#Define these as constants.
>2) Values established by law for all clients. I keep many of these in a table, but I find it better to load them up to memory and work from there since table isn't always in right record. Perhaps an object which represents that table?
This would be the middle tier, Business Rules, create an object wiht methods that will verify most of the data you want to submit.
>3) Values that have to do with this customer, such as what options they paid for. Perhaps oLicensee (?)
>4) Values that have to do with the company (user may have several). oCompany (?).
I normally leave these as table records. Or, instead of saving the fields as properties, create an object with a method that will return a value from the correct record and field.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement