Пример #1
0
        public void SelectEvents()
        {
            String[] size   = CommonTools.Tools.HelperTools.GetConfigEntry("PopUpSizeSelectedEvents", "850,1500").Split(',');
            var      events = new StandardPopupView(0, StandardPopupViewModel.EnumPopupType.SelectEvents, "Events", double.Parse(size[0]), double.Parse(size[1]));

            events.ShowDialog();
        }
        public void KommuniKation_DoubleClick(C1.WPF.DataGrid.C1DataGrid grid)
        {
            try
            {
                var t = (Models.KommunikationModel)grid.SelectedItem;
                if (t.Type == "Termin")
                {
                    String[] size   = CommonTools.Tools.HelperTools.GetConfigEntry("PopUpSizeTermin", "650,950").Split(',');
                    var      Termin = new StandardPopupView(t.ItemID, StandardPopupViewModel.EnumPopupType.Termin, "Termin Nr. : " + t.ItemID, double.Parse(size[0]), double.Parse(size[1]));
                    Termin.ShowDialog();
                }
                else if (t.Type == "Mail")
                {
                    String[] size = CommonTools.Tools.HelperTools.GetConfigEntry("PopUpSizeMail", "800,1100").Split(',');
                    var      Mail = new StandardPopupView(t.ItemID, StandardPopupViewModel.EnumPopupType.Email, "Email Nr. : " + t.ItemID, double.Parse(size[0]), double.Parse(size[1]));

                    Mail.ShowDialog();
                }
            }

            catch (System.IO.IOException ex)
            {
                CommonTools.Tools.ErrorMethods.HandleStandardError(ex, "Fehler beim Öffnen von Mailviewer");
            }
            catch (Exception ex)
            {
                CommonTools.Tools.ErrorMethods.HandleStandardError(ex, "Fehler beim Öffnen von Mailviewer");
            }
        }
Пример #3
0
        public void showBesuchsberichte()
        {
            // MailViewerViewModel mv = new MailViewerViewModel(6);
            String[] size   = CommonTools.Tools.HelperTools.GetConfigEntry("PopUpSizeKundenbesuch", "800,2000").Split(',');
            var      besuch = new StandardPopupView(0, StandardPopupViewModel.EnumPopupType.Kundenbesuch, "Kundenbesuch", double.Parse(size[0]), double.Parse(size[1]));

            besuch.ShowDialog();
        }
 public void BesuchNeu()
 {
     try
     {
         String[]            size   = CommonTools.Tools.HelperTools.GetConfigEntry("PopUpSizeKundenbesuch", "800,2000").Split(',');
         Firmen_Kundenbesuch besuch = CommonTools.ObjectFactories.KundenbesuchsBerichteFactory.GetNewBesuch(CurrentID);
         var besuchView             = new StandardPopupView(StandardPopupViewModel.EnumPopupType.Kundenbesuch, "Kundenbesuch", double.Parse(size[0]), double.Parse(size[1]), besuch);
         besuchView.ShowDialog();
     }
     catch (Exception ex)
     {
         CommonTools.Tools.ErrorMethods.HandleStandardError(ex, "Fehler bei Neuerstellung eines Besuchsberichtes");
     }
 }
 public void Kundenbesuche_DoubleClick(C1.WPF.DataGrid.C1DataGrid grid)
 {
     try
     {
         var t = (Models.KundenbesucheListe)grid.SelectedItem;
         if (t != null)
         {
             int      buf    = t.id;
             String[] size   = CommonTools.Tools.HelperTools.GetConfigEntry("PopUpSizeKundenbesuch", "800,2000").Split(',');
             var      kbView = new StandardPopupView(t.id, StandardPopupViewModel.EnumPopupType.Kundenbesuch, "Kundenbesuch", double.Parse(size[0]), double.Parse(size[1]));
             kbView.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         CommonTools.Tools.ErrorMethods.HandleStandardError(ex, "Fehler beim Anzeigen von Besuchsberichten");
     }
 }
Пример #6
0
        public void ShowDirektTermine()
        {
            var schedule = new StandardPopupView(2, StandardPopupViewModel.EnumPopupType.Scheduler, "Übersicht :", 850, 1200);

            schedule.ShowDialog();
        }
Пример #7
0
        public void ShowSchedule()
        {
            var schedule = new StandardPopupView(2, StandardPopupViewModel.EnumPopupType.Scheduler, "Übersicht :", 850, 1200, DatumVon, DatumBis);

            schedule.ShowDialog();
        }