Ejemplo n.º 1
0
        public Opportunity(Opportunity pOpportunity)
            : this()
        {
            CopyBy(pOpportunity);

            pOpportunity.OpportunityRows.ForEach(
                l => OpportunityRows.Add(new OpportunityRows(l)));

            pOpportunity.OpportunityCompetitors.ForEach(
                l => OpportunityCompetitors.Add(new OpportunityCompetitors(l)));
        }
Ejemplo n.º 2
0
        private List <OpportunityCompetitors> GetCompetitors()
        {
            var competitors = new OpportunityCompetitors(DBName);

            var lines = competitors.GetByOpportId(DocEntry);

            foreach (var line1 in lines)
            {
                line1.TableName = competitors.TableName;
                line1.DBName    = competitors.DBName;
            }

            return(lines);
        }
 public OpportunityCompetitors(OpportunityCompetitors pOpportunityCompetitors)
     : this()
 {
     CopyBy(pOpportunityCompetitors);
 }