Exemplo n.º 1
0
        //private enum StatisticsControlWorks : int
        //{
        //    GetTaskStatistics
        //}

        private static TaskStatisticsResult GetTaskStatistics(TaskStatisticsArgs args)
        {
            TaskStatisticsResult result = new TaskStatisticsResult();

            result.AppsSummaryList = ApplicationSummaries.GetApplicationsSummary(
                args.ParentId,
                args.FromDate, args.ToDate);

            return(result);
        }
Exemplo n.º 2
0
        private void searchButton_Click(object sender, EventArgs e)
        {
            SetWaitState();
            TaskStatisticsArgs args = new TaskStatisticsArgs();

            args.FromDate = fromDateTimePicker.Value.Date;
            if (this.toRadioButton.Checked)
            {
                args.ToDate = toDateTimePicker.Value.Date.AddDays(1).AddSeconds(-1);
            }
            else
            {
                args.ToDate = fromDateTimePicker.Value.Date.AddDays(1).AddSeconds(-1);
            }
            args.ParentId = Tasks.FindById((int)this.parentTaskComboBox.SelectedValue).Id;
            worker.RunWorkerAsync(args);
        }
Exemplo n.º 3
0
        //private enum StatisticsControlWorks : int
        //{
        //    GetTaskStatistics
        //}
        private static TaskStatisticsResult GetTaskStatistics(TaskStatisticsArgs args)
        {
            TaskStatisticsResult result = new TaskStatisticsResult();
            result.AppsSummaryList = ApplicationSummaries.GetApplicationsSummary(
                args.ParentId,
                args.FromDate, args.ToDate);

            return result;
        }
Exemplo n.º 4
0
 private void searchButton_Click(object sender, EventArgs e)
 {
     SetWaitState();
     TaskStatisticsArgs args = new TaskStatisticsArgs();
     args.FromDate = fromDateTimePicker.Value.Date;
     if (this.toRadioButton.Checked)
     {
         args.ToDate = toDateTimePicker.Value.Date.AddDays(1).AddSeconds(-1);
     }
     else
     {
         args.ToDate = fromDateTimePicker.Value.Date.AddDays(1).AddSeconds(-1);
     }
     args.ParentId = Tasks.FindById((int)this.parentTaskComboBox.SelectedValue).Id;
     worker.RunWorkerAsync(args);
 }