Esempio n. 1
0
        internal FixedList <Activity> GetContainedModelDependencies(Activity activityModel)
        {
            if (activityModel.IsEmptyInstance)
            {
                return(new FixedList <Activity>());
            }

            var templateProject = activityModel.Project;

            try {
                List <Activity> dependencies = templateProject.GetItems()
                                               .Select(x => (Activity)x)
                                               .ToList();

                return(dependencies.FindAll(x => x.Template.DueOnControllerId == activityModel.Id &&
                                            this.StateChanges.Exists(y => y.Template.Id == x.Id))
                       .ToFixedList());
            } catch (Exception e) {
                var ex = new Exception($"GetContainedModelDependencies issue for {activityModel.Id}.", e);

                EmpiriaLog.Error(ex);

                throw ex;
            }
        }
        public PagedCollectionModel GetMyLastESignEvents([FromUri] string keywords = "")
        {
            try {
                FixedList <SignEventDTO> events = ESignUseCases.GetMyLastESignEvents(keywords);

                return(new PagedCollectionModel(this.Request, events, typeof(SignEventDTO).FullName));
            } catch (Exception e) {
                EmpiriaLog.Error(e);

                throw base.CreateHttpException(e);
            }
        }
Esempio n. 3
0
 static public void Preload()
 {
     try {
         EmpiriaLog.Info($"Application preloading starts at {DateTime.Now}.");
         StandardAccount.Preload();
         AccountsChart.Preload();
         SubsidiaryLedger.Preload();
         SubsidiaryAccount.Preload();
         EmpiriaLog.Info($"Application preloading ends at {DateTime.Now}.");
     } catch (Exception e) {
         EmpiriaLog.Error(e);
     }
 }