protected void mMain_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e)
        {
            switch (e.Item.Name)
            {
            case "mitNew":
                loadPrograms();
                clearfields();
                divLessons.Visible = true;
                break;

            case "mitCancel":
                clearfields();
                divLessons.Visible = false;
                break;

            case "mitExportxls":
                dataExporter.WriteCsvToResponse(new CsvExportOptionsEx()
                {
                    ExportType = ExportType.WYSIWYG
                });
                break;

            case "mitReport":
                Session["fromwhere"] = "~/lessonsScheduler.aspx";
                Session["report"]    = new mySmis.reports.rptCourseSubjectSchedule();
                Response.Redirect("~/documentviewer.aspx");
                break;
            }

            uPanel.Update();
        }
示例#2
0
        protected void mMain_ItemClick(object source, MenuItemEventArgs e)
        {
            switch (e.Item.Name)
            {
            case "mitExportxls":
                dataExporter.WriteCsvToResponse(new CsvExportOptionsEx()
                {
                    ExportType = ExportType.WYSIWYG
                });
                break;

            case "mitReport":
                Session["fromwhere"] = "~/lessontimetable.aspx";
                Session["report"]    = new mySmis.reports.rptCourseSubjectSchedule();
                Response.Redirect("~/documentviewer.aspx");
                break;
            }

            uPanel.Update();
        }