Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UI or BO code?
Message
De
26/08/2010 13:30:22
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
01478134
Message ID:
01478659
Vues:
28
>Well, usually Tim is the one helping me out but I'm going to take a stab at this. I hope this helps.
>
>
> public PolicyEntity GetPolicyByPolicyPK(Guid policyPK)
>       {
>           
>            // get the requested entity - leave on the business object for return in the event we need it.
>            this.GetEntity("PoliciesSelectByPK",
>                            this.CreateParameter("@PolicyPK", policyPK));
>
>            // check its status
>            if (oPolicyEntity.StatusFK != (int)StatusCode.Pending)
>            {
>                // if it is not Pending then get this entity into a local reference. 
>                PolicyEntity oOldPolicyEntity = this.GetEntity("PoliciesSelectByPK",
>                            this.CreateParameter("@PolicyPK", policyPK));
>                //Get an empty dataset and add a new row
>                this.GetEmptyDataSet();
>                this.NewRow(this.GetCurrentDataSet());
>                //CopyPolicyEntity(oOldPolicyEntity, this.Entity);
>            }
>            // This will return either the original or the newly created one that is added.
>           return this.Entity;
>}
>
Hi Linda,

could you explain a couple things in your code, please?

What's the reason for oOldPolicyEntity?

I guess after adding the newrow I then need to populate it with the values from the old entity or dataset?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform