protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}'", adapterAppointment));
            var myAdapterAppointment = adapterAppointment.Get(context);

            devlog.Debug(string.Format("would call for '{0}'", myAdapterAppointment));
            AdapterAppointmentRepository.InsertOrUpdate(myAdapterAppointment);
        }
Esempio n. 2
0
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}' and '{1}'", adapterAppointment, internalId));
            var myAdapterAppointment = adapterAppointment.Get(context);
            var myInternalId         = internalId.Get(context);

            devlog.Debug(string.Format("Got '{0}' and '{1}'", myAdapterAppointment, myInternalId));
            AdapterAppointmentRepository.Update(myInternalId, myAdapterAppointment);
        }
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}'", appointment));
            var myAppointment = appointment.Get <Models.AppointmentDTO>(context);

            devlog.Debug(string.Format("would call for '{0}'", myAppointment));
            AdapterAppointmentRepository.CopyAndSaveAllFrom(myAppointment);
            AppointmentRepository.InsertOrUpdate(myAppointment);
        }
Esempio n. 4
0
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}'", adapterAppointment));
            var myAdapterAppointment = adapterAppointment.Get(context);
            var myConsumer           = consumer.Get(context);

            devlog.Debug(string.Format("would call for '{0}' and '{1}'", myAdapterAppointment, myConsumer));
            AdapterAppointmentRepository.insertAppointmentAndAdapterAppointments(myAdapterAppointment, myConsumer.Id);
        }
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}' and '{1}' and '{2}'", Appointment, AdapterAppointment, Consumer));
            var myAppointment        = Appointment.Get(context);
            var myAdapterAppointment = AdapterAppointment.Get(context);
            var myConsumer           = Consumer.Get(context);

            devlog.Debug(string.Format("would call for '{0}' and '{1}' and '{2}'", myAppointment, myAdapterAppointment, myConsumer));

            Appointment.Set(context, AdapterAppointmentRepository.copyAdapterAppointmentToAppointment(myAdapterAppointment, myAppointment));
        }
Esempio n. 6
0
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}' and '{1}'", AdapterAppointment, Consumer));
            var myAdapterAppointment = AdapterAppointment.Get(context);

            devlog.Debug(string.Format("Got for '{0}'", myAdapterAppointment));
            var consumer = AdapterAppointmentRepository.GetConsumerByAdapterAppointment(myAdapterAppointment);

            devlog.Debug(string.Format("Consumer is '{0}'", consumer));
            Consumer.Set(context, consumer.Value);
        }
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}' and '{1}'", adapterAppointment1, adapterAppointment2));
            var myAdapterAppointment1 = adapterAppointment1.Get(context);
            var myAdapterAppointment2 = adapterAppointment2.Get(context);

            devlog.Debug(string.Format("would call for '{0}' and '{1}'", myAdapterAppointment1, myAdapterAppointment2));
            var myResult = AdapterAppointmentRepository.AreStandardAttrsVisiblyDifferent(myAdapterAppointment1, myAdapterAppointment2);

            result.Set(context, myResult);
        }
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}'", appointment));
            var myAppointment = appointment.Get <Models.AppointmentDTO>(context);

            devlog.Debug(string.Format("would call for '{0}'", myAppointment));
            var journalItems = AdapterAppointmentRepository.AdapterAppointments(myAppointment.Id);
            List <Models.AdapterAppointmentDTO> resultItems = new List <Models.AdapterAppointmentDTO>(journalItems);

            adapterAppointments.Set(context, resultItems.ToArray());
        }
Esempio n. 9
0
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}'", Adapter));
            var myAdapter = Adapter.Get(context);

            devlog.Debug(string.Format("would call for '{0}'", myAdapter));
            var app  = AdapterAppointmentRepository.FindAdapterAppointmentsToUpload(myAdapter.Id);
            var apps = new List <Models.AdapterAppointmentDTO>(app);

            devlog.Debug(string.Format("found '{0}'", apps.Count));
            AppointmentsToBeUploaded.Set(context, apps.ToArray());
        }
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}'", adapterAppointments));
            var myAdapterAppointments = adapterAppointments.Get(context);

            foreach (var myAdapterAppointment in myAdapterAppointments)
            {
                devlog.Debug(string.Format("Got '{0}'", myAdapterAppointment));
            }
            var result = AdapterAppointmentRepository.getLatestModified(myAdapterAppointments);

            devlog.Debug(string.Format("result '{0}'", result));
            winner.Set(context, result);
        }
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}' and '{1}'", SourceAdapterAppointment, DuplicatedAdapterAppointment));
            var sourceAdapterAppointment = SourceAdapterAppointment.Get(context);

            devlog.Debug(string.Format("would call for '{0}'", sourceAdapterAppointment));
            try
            {
                var duplicatedAdapterAppointment = AdapterAppointmentRepository.FindDuplicatedAdapterAppointment(sourceAdapterAppointment).Value;
                DuplicatedAdapterAppointment.Set(context, duplicatedAdapterAppointment);
            }
            catch (NullReferenceException)
            {
                DuplicatedAdapterAppointment.Set(context, null);
            }
        }
Esempio n. 12
0
        protected override void DoExecute(CodeActivityContext context)
        {
            var myInternalId = InternalId.Get(context);
            var myAdapter    = Adapter.Get(context);

            devlog.Debug(string.Format("would call for '{0}' and '{1}'", myInternalId, myAdapter));
            var app = AdapterAppointmentRepository.Get(myInternalId, myAdapter.Id);

            devlog.Debug(string.Format("found '{0}'", app));
            try
            {
                appointment.Set(context, app.Value);
            }
            catch (NullReferenceException)
            {
                appointment.Set(context, null);
            }
        }