コード例 #1
0
        protected static void Execute(DireccionEntregaModel dirEntrega)
        {
            Interaccion newInteraccion = new Interaccion();

            InteraccionBusiness.InitializeNewInteraccion(newInteraccion, Enums.eTipoInteraccion.TareaCliente, dirEntrega);
            App.Locator.InteraccionViewModelStatic.InteraccionActual = InteraccionModel <InteraccionBusiness> .Create(newInteraccion);

            MainViewModel.MainViewModelMsg.Send(new MainViewModel.MainViewModelMsg(MainViewModel.eMainViewModelMsg.CollapseLeftPanel));
            NavigationHelper.Navigate <InteraccionView>();
        }
コード例 #2
0
        void InteraccionActual_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            switch (e.PropertyName)
            {
            case InteraccionModel.EstadoInteraccionPropertyName:
                InteraccionBusiness.EstadoInteraccion_OnChanged(InteraccionActual);
                break;

            default:
                break;
            }
        }
コード例 #3
0
        protected static void Execute()
        {
            Interaccion newInteraccion = new Interaccion();

            InteraccionBusiness.InitializeNewInteraccion(newInteraccion, Enums.eTipoInteraccion.TareaRRCC);
            App.Locator.InteraccionViewModelStatic.InteraccionActual = InteraccionModel <InteraccionBusiness> .Create(newInteraccion);

            var list = TipoInteraccion.FindAll();

            MainViewModel.MainViewModelMsg.Send(new MainViewModel.MainViewModelMsg(MainViewModel.eMainViewModelMsg.CollapseLeftPanel));
            NavigationHelper.Navigate <InteraccionView>();
        }
コード例 #4
0
        public void RemoveInteraccionFromCalendar(InteraccionModel interaccionModel)
        {
            string tipoInteraccionText = _tipoInteraccion[(int)InteraccionBusiness.GetTipoInteraccion(interaccionModel.SUPEntity)];

            Appointment appDia = (from a in AppointmentsMes
                                  where a.Subject == tipoInteraccionText &&
                                  a.Date.Year == interaccionModel.FechaInicioPlanificada.Value.Year &&
                                  a.Date.DayOfYear == interaccionModel.FechaInicioPlanificada.Value.DayOfYear
                                  select a).FirstOrDefault();

            // Si no existía ningúna cita en el día
            if (appDia == null)
            {
                return;
            }
            else
            {
                // Se suma 1 a la cita actual
                appDia.Count = appDia.Count - 1;
            }
        }
コード例 #5
0
 private void initializeData()
 {
     EstadosInteraccion = InteraccionBusiness.GetEstadosInteraccion();
     Segmentos          = new SegmentoModelCollection(Segmento.FindAll());
 }