Beispiel #1
0
        protected override void OnInitialized()
        {
            try
            {
                newJob.MSTeamsChannel = "#alerts";
                newJob.SlackUser      = Slack.SlackUserString;
                newJob.SendMSTeams    = "N";
                newJob.SendMail       = "N";
                newJob.Status         = "N";
                newJob.MailFrom       = MailAddresses.FromMail;
                newJob.DbSchema       = "MerchDev";

                InitializeFormData.GetMonthChecklist();
                InitializeFormData.GetDayChecklist();
                InitializeFormData.GetHourChecklist();
                InitializeFormData.GetMinuteChecklist();
                InitializeFormData.GetDbSchemaDropdown();
                InitializeFormData.GetSendMailDropdown();
                InitializeFormData.GetSendMSTeamsDropdown();
                InitializeFormData.GetMSTeamsChannelDropdown();
                InitializeFormData.GetStatusDropdown();
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error loading form data.", ex.Message);
            }
        }
Beispiel #2
0
        protected override async Task OnInitializedAsync()
        {
            try
            {
                InitializeFormData.GetSendMSTeamsDropdown();
                InitializeFormData.GetMSTeamsChannelDropdown();
                InitializeFormData.GetSendMailDropdown();
                InitializeFormData.GetDbSchemaDropdown();
                InitializeFormData.GetStatusDropdown();

                await GetJobs();
                await GetFormData();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }