Exemplo n.º 1
0
        /// <summary>
        /// Fügt der Tabelle Interessent eine neue Zeile hinzu.
        /// </summary>
        /// <param name="creatorPK">Primärschlüssel des erstellenden Mitarbeiters.</param>
        /// <returns></returns>
        public dsProspects.InteressentRow AddInteressentRow(string creatorPK)
        {
            dsProspects.InteressentRow iRow = this.myProspectsDS.Interessent.NewInteressentRow();
            iRow.UID           = SequentialGuid.NewSequentialGuid().ToString();
            iRow.Adresszusatz  = "";
            iRow.AkquiseAm     = DateTime.Today;
            iRow.AkquiseDurch  = creatorPK;
            iRow.Anmerkungen   = "";
            iRow.Email         = "";
            iRow.Fax           = "";
            iRow.Firmenname    = "";
            iRow.Firmenzusatz  = "";
            iRow.Herkunft      = "";
            iRow.InaktivFlag   = 0;
            iRow.Kontaktperson = "";
            iRow.Mobil         = "";
            iRow.Ort           = "";
            iRow.Plz           = "";
            iRow.Strasse       = "";
            iRow.Telefon       = "";
            iRow.Website       = "http://www";
            this.myProspectsDS.Interessent.AddInteressentRow(iRow);
            this.UpdateInteressent(iRow);

            return(iRow);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Speichert die Änderungen an der angegebenen InteressentRow oder der gesamten Tabelle, falls keine InteressentRow übergeben wurde.
 /// </summary>
 /// <param name="interessentRow"></param>
 /// <returns></returns>
 public int UpdateInteressent(dsProspects.InteressentRow interessentRow = null)
 {
     if (interessentRow != null)
     {
         return(this.myInteressentAdapter.Update(interessentRow));
     }
     return(this.myInteressentAdapter.Update(this.myProspectsDS.Interessent));
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Erzeugt eine neue Instanz der Interessent Klasse.
 /// </summary>
 /// <param name="baseRow"></param>
 public Interessent(dsProspects.InteressentRow baseRow)
 {
     myBase = baseRow;
 }