Exemplo n.º 1
0
        }//-----------------------

        //################################################END BUTTON btnRecord EVENTS####################################################

        //################################################BUTTON btnPrintTeacherLoad EVENTS####################################################
        //event is raised when lblPrintTeacherLoad is Clicked
        private void btnPrintTeacherLoadClick(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                String strSemester = cboSemester.SelectedIndex >= 0 ? cboSemester.Text : "";

                if (this.cboSemester.SelectedIndex >= 0)
                {
                    _teacherLoadingManager.PrintTeacherLoad(_userInfo, this.cboYear.Text + " - " + strSemester,
                                                            _teacherLoadingManager.GetSchoolYearYearId(this.cboYear.SelectedIndex),
                                                            _teacherLoadingManager.GetSemesterSystemId(this.cboYear.SelectedIndex, this.cboSemester.SelectedIndex),
                                                            this.trvEmployee.SelectedNode.Text, false);
                }
                else
                {
                    _teacherLoadingManager.PrintTeacherLoad(_userInfo, this.cboYear.Text + " - " + strSemester,
                                                            _teacherLoadingManager.GetSchoolYearYearId(this.cboYear.SelectedIndex), "",
                                                            this.trvEmployee.SelectedNode.Text, false);
                }

                this.Cursor = Cursors.Arrow;
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("Error loading print teacher load module.\n\n" + ex.Message, "Error Printing");
            }
        }//---------------------