示例#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);
        }
示例#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);
        }
示例#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;
        }
示例#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);
 }