Пример #1
0
        /// <summary>
        /// Erzeugt eine neue Instanz der InteressentView Klasse.
        /// </summary>
        public InteressentView(Interessent interessent)
        {
            InitializeComponent();
            myInteressent = interessent;

            InitializeData();
        }
Пример #2
0
 void dgvInteressenten_RowEnter(object sender, DataGridViewCellEventArgs e)
 {
     this.mySelectedProspect = dgvInteressenten.Rows[e.RowIndex].DataBoundItem as Model.Entities.Interessent;
     this.activeGrid         = this.dgvInteressenten;
     this.LoadNotes();
     this.Text = string.Format(@"Tour {0} - {1} (Interessent)", this.myTour.Tourname, this.mySelectedProspect.Firmenname.Replace("&", "&&"));
     this.Invalidate();
 }
Пример #3
0
        void AddProspect()
        {
            var prospect = ModelManager.ProspectService.AddInteressent();

            myTour.AddInteressent(prospect);
            mySelectedProspect = prospect;
            OpenProspect();
        }
Пример #4
0
 /// <summary>
 /// Fügt dem System einen neuen Interessenten hinzu.
 /// </summary>
 /// <returns></returns>
 public Interessent AddInteressent()
 {
     dsProspects.InteressentRow iRow = DataManager.ProspectDataService.AddInteressentRow(ModelManager.UserService.CurrentUser.UID);
     if (iRow != null)
     {
         Interessent newInteressent = new Interessent(iRow);
         this.GetInteressentenList().Add(newInteressent);
         return(newInteressent);
     }
     return(null);
 }
Пример #5
0
        /// <summary>
        /// Fügt der angegebenen Tour den angegebenen Interessenten hinzu.
        /// </summary>
        /// <param name="tour">Die Tour, der der angegebene Interessent hinzugefügt werden soll.</param>
        /// <param name="interessent">Der Interessent, der der angegebenen Tour hinzugefügt werden soll.</param>
        /// <returns></returns>
        public int AddTourInteressent(Tour tour, Interessent interessent)
        {
            int result = 0;

            dsSalesForce.TourInteressentXrefRow xiRow = DataManager.SalesForceDataService.AddTourInteressentXrefRow(tour.UID, interessent.UID, ModelManager.UserService.CurrentUser.UID);
            if (xiRow != null)
            {
                result = 1;
            }

            return(result);
        }