Esempio n. 1
0
        public CalculationDay GetDay(DateTime date)
        {
            BaseManager    baseManager = new BaseManager();
            CalculationDay calculation = baseManager.GetLastCalculationDay(date);

            return(calculation);
        }
Esempio n. 2
0
        public CalculationDay GetLastCalculationDay(DateTime date)
        {
            var mapper = mapperConfiguration.CreateMapper();
            CalculationDayDB resultDB = FillTodaysCalculationDetails(date);
            CalculationDay   result   = mapper.Map <CalculationDayDB, CalculationDay>(resultDB);

            return(result);
        }
Esempio n. 3
0
 private CalculationDay GetCalculationDayDetails()
 {
     if (ServiceIsWorking)
     {
         StatsClient onlineClient = new StatsClient();
         CalculationDay calculationDay = onlineClient.GetCalculationDay();
         return calculationDay;
     }
     else
     {
         return new CalculationDay();
     }
 }
Esempio n. 4
0
        private void UpdateLabelControls(CalculationDay calculationDay)
        {
            Globals.Ribbons.CalculateEmails.lblInCounter.Label = calculationDay.MailCountAdd.ToString(); ;
            Globals.Ribbons.CalculateEmails.lblOutCouter.Label = calculationDay.MailCountSent.ToString(); ;
            Globals.Ribbons.CalculateEmails.lblProcessedCounter.Label = calculationDay.MailCountProcessed.ToString(); ;

            Globals.Ribbons.CalculateEmails.lblTaskAdd.Label = calculationDay.TaskCountAdded.ToString(); ;
            Globals.Ribbons.CalculateEmails.lblTaskRemoved.Label = calculationDay.TaskCountRemoved.ToString(); ;
            Globals.Ribbons.CalculateEmails.lblTaskFinished.Label = calculationDay.TaskCountFinished.ToString(); ;

            Globals.Ribbons.CalculateEmails.lblInCounter2.Label = calculationDay.MailCountAdd.ToString(); ;
            Globals.Ribbons.CalculateEmails.lblOutCouter2.Label = calculationDay.MailCountSent.ToString(); ;
            Globals.Ribbons.CalculateEmails.lblProcessedCounter2.Label = calculationDay.MailCountProcessed.ToString(); ;

            Globals.Ribbons.CalculateEmails.lblTaskAdd2.Label = calculationDay.TaskCountAdded.ToString(); ;
            Globals.Ribbons.CalculateEmails.lblTaskRemoved2.Label = calculationDay.TaskCountRemoved.ToString(); ;
            Globals.Ribbons.CalculateEmails.lblTaskFinished2.Label = calculationDay.TaskCountFinished.ToString(); ;
        }