Пример #1
0
        public async Task <PartialViewResult> EditModal(long id)
        {
            var viewModel = await _SchedulerAppService.GetSchedulerById(id);

            var jobGroups = await _JobGroupAppService.GetJobGroupsToItem(viewModel.JobGroup_Id);

            ViewBag.JobGroups = jobGroups;

            var triggers = await _TriggerAppService.GetTriggersToItem(viewModel.Trigger_Id);

            ViewBag.Triggers = triggers;

            var jobGroupEntity = await _JobGroupAppService.GetJobGroupById(viewModel.JobGroup_Id);

            if (jobGroupEntity.TypeTable == "BGJM_JOB_RPTEMAIL")
            {
                ViewBag.Jobs = await _Job_RPTEmailAppService.GetJobRPTEmailsToItem(viewModel.Job_Id);
            }
            if (jobGroupEntity.TypeTable == "BGJM_JOB_SQL")
            {
                ViewBag.Jobs = await _Job_SqlAppService.GetJobSqlToItem(viewModel.Job_Id);
            }

            return(PartialView("_CreateOrEditModal", viewModel));
        }
Пример #2
0
        public async Task <PartialViewResult> EditModal(long id)
        {
            var viewModel = await _SchedulerAppService.GetSchedulerById(id);

            return(PartialView("_CreateOrEditModal", viewModel));
        }