Exemplo n.º 1
0
        protected void btnScheduleUpdate_Click(Object Sender, EventArgs e)
        {
            int intResiliency = 0;

            if (ddlScheduleResiliency.SelectedItem != null)
            {
                Int32.TryParse(ddlScheduleResiliency.SelectedItem.Value, out intResiliency);
            }
            oTSM.UpdateSchedule(intSchedule, intDomain, txtScheduleName.Text, (chkScheduleEngineering.Checked ? 1 : 0), (chkScheduleTest.Checked ? 1 : 0), (chkScheduleQA.Checked ? 1 : 0), (chkScheduleProduction.Checked ? 1 : 0), (chkScheduleWindows.Checked ? 1 : 0), (chkScheduleUnix.Checked ? 1 : 0), (chkScheduleDaily.Checked ? 1 : 0), (chkScheduleWeekly.Checked ? 1 : 0), intResiliency, (chkScheduleWeeklySunday.Checked ? 1 : 0), (chkScheduleWeeklyMonday.Checked ? 1 : 0), (chkScheduleWeeklyTuesday.Checked ? 1 : 0), (chkScheduleWeeklyWednesday.Checked ? 1 : 0), (chkScheduleWeeklyThursday.Checked ? 1 : 0), (chkScheduleWeeklyFriday.Checked ? 1 : 0), (chkScheduleWeeklySaturday.Checked ? 1 : 0), (chkScheduleMonthly.Checked ? 1 : 0), (chk1200AM.Checked ? 1 : 0), (chk1230AM.Checked ? 1 : 0), (chk100AM.Checked ? 1 : 0), (chk130AM.Checked ? 1 : 0), (chk200AM.Checked ? 1 : 0), (chk230AM.Checked ? 1 : 0), (chk300AM.Checked ? 1 : 0), (chk330AM.Checked ? 1 : 0), (chk400AM.Checked ? 1 : 0), (chk430AM.Checked ? 1 : 0), (chk500AM.Checked ? 1 : 0), (chk530AM.Checked ? 1 : 0), (chk600AM.Checked ? 1 : 0), (chk630AM.Checked ? 1 : 0), (chk700AM.Checked ? 1 : 0), (chk730AM.Checked ? 1 : 0), (chk800AM.Checked ? 1 : 0), (chk830AM.Checked ? 1 : 0), (chk900AM.Checked ? 1 : 0), (chk930AM.Checked ? 1 : 0), (chk1000AM.Checked ? 1 : 0), (chk1030AM.Checked ? 1 : 0), (chk1100AM.Checked ? 1 : 0), (chk1130AM.Checked ? 1 : 0), (chk1200PM.Checked ? 1 : 0), (chk1230PM.Checked ? 1 : 0), (chk100PM.Checked ? 1 : 0), (chk130PM.Checked ? 1 : 0), (chk200PM.Checked ? 1 : 0), (chk230PM.Checked ? 1 : 0), (chk300PM.Checked ? 1 : 0), (chk330PM.Checked ? 1 : 0), (chk400PM.Checked ? 1 : 0), (chk430PM.Checked ? 1 : 0), (chk500PM.Checked ? 1 : 0), (chk530PM.Checked ? 1 : 0), (chk600PM.Checked ? 1 : 0), (chk630PM.Checked ? 1 : 0), (chk700PM.Checked ? 1 : 0), (chk730PM.Checked ? 1 : 0), (chk800PM.Checked ? 1 : 0), (chk830PM.Checked ? 1 : 0), (chk900PM.Checked ? 1 : 0), (chk930PM.Checked ? 1 : 0), (chk1000PM.Checked ? 1 : 0), (chk1030PM.Checked ? 1 : 0), (chk1100PM.Checked ? 1 : 0), (chk1130PM.Checked ? 1 : 0), (chkScheduleEnabled.Checked ? 1 : 0));
            Redirect("server=" + intServer.ToString() + "&domain=" + intDomain.ToString() + "&schedule=" + intSchedule.ToString() + "&saved=true");
        }