protected void btnAddNewCourse_Click(object sender, EventArgs e)
    {
        string courseInfo = getCourseInfo();

        log.SectionsId    = 0;
        log.SubmittedBy   = Session["deltaid"].ToString();
        log.DepartmentsId = SectionDetails1.DepartmentsID;
        log.Change        = getCourseInfo();
        log.AddRecord();

        section.DeleteRecord();
        this.mvSubmissionForm.ActiveViewIndex = 1;
        List <ClsChangeLog> logs = new List <ClsChangeLog>();

        logs.Add(log);
        gvPendingChanges.DataSource = logs;
        gvPendingChanges.DataBind();

        /* Send email upon submission */
        sendNotification();
    }
Beispiel #2
0
    protected void btnAddNewCourse_Click()
    {
        string courseInfo = getCourseInfo();

        log.SectionsId    = 0;
        log.SubmittedBy   = Session["deltaid"].ToString();
        log.DepartmentsId = SectionDetails1.DepartmentsID;
        log.Change        = getCourseInfo();
        log.AddRecord();

        section.DeleteRecord();
        MultiView1.ActiveViewIndex = 1;
        List <ClsChangeLog> logs = new List <ClsChangeLog>();

        logs.Add(log);
        gvPendingChanges.DataSource = logs;
        gvPendingChanges.DataBind();

        DivChairEmail = Helpers.GetDivisionEmailByDepartmentsId(log.DepartmentsId);
        /* Send email upon submission */
        sendNotification();
    }
Beispiel #3
0
    protected void btnAddNewCourse_Click(object sender, EventArgs e)
    {
        string courseInfo = getCourseInfo();

        log.SectionsId    = 0;
        log.SubmittedBy   = Session["deltaid"].ToString();
        log.DepartmentsId = SectionDetails1.DepartmentsID;
        log.Change        = getCourseInfo();
        log.AddRecord();

        section.DeleteRecord();
        this.mvSubmissionForm.ActiveViewIndex = 1;
        List <ClsChangeLog> logs = new List <ClsChangeLog>();

        logs.Add(log);
        gvPendingChanges.DataSource = logs;
        gvPendingChanges.DataBind();

        using (MasterScheduleDataContext db = new MasterScheduleDataContext())
        {
            foreach (string sLocation in hidRooms.Value.TrimEnd(",".ToCharArray()).Split(",".ToCharArray()).ToList().Distinct())
            {
                SendMessageOnLogApproval thisItem = new SendMessageOnLogApproval();

                thisItem.LogID       = log.LogId;
                thisItem.CampusID    = sLocation;
                thisItem.DateCreated = DateTime.Now;
                db.SendMessageOnLogApprovals.InsertOnSubmit(thisItem);
            }

            db.SubmitChanges();
        }

        /* Send email upon submission */
        DivChairEmail = Helpers.GetDivisionEmailByDepartmentsId(log.DepartmentsId);
        sendNotification(); // Make sure to re-enable this
    }
Beispiel #4
0
 protected void btnCancel_Click(object sender, EventArgs e)
 {
     section.DeleteRecord();
     Response.Redirect("~/");
 }