Esempio n. 1
0
        //####################################################CLASS SubjectSchedulingManager EVENTS###############################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            try
            {
                if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessVpOfAcademicAffairs(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessSecretaryOftheVpOfAcademicAffairs(_userInfo)))
                {
                    throw new Exception("You are not authorized to access this module.");
                }

                _auxiliaryManager = new AuxiliaryServiceLogic(_userInfo);

                _frmServiceScheduleSearch = new AuxiliaryScheduleDetailsSearchList();
                _frmServiceScheduleSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmServiceScheduleSearchOnDoubleClickEnter);
                _frmServiceScheduleSearch.OnCreate           += new AuxiliaryScheduleDetailsListLinkCreateClick(_frmServiceScheduleSearchOnCreate);
                _frmServiceScheduleSearch.LocationPoint       = new Point(10, 300);
                _frmServiceScheduleSearch.AdoptGridSize       = true;
                _frmServiceScheduleSearch.MdiParent           = this;

                _auxiliaryManager.InitializeSchoolYearCombo(this.ctlManagerAux.SchoolYearComboBox);

                if (this.ctlManagerAux.SchoolYearIndex != -1)
                {
                    _auxiliaryManager.InitializeSemesterCombo(this.ctlManagerAux.SemesterComboBox, this.ctlManagerAux.SchoolYearIndex);
                }

                lblRecordDate.Text = "Record Date: " + DateTime.Parse(_auxiliaryManager.ServerDateTime).ToString();
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");
                this.Close();
            }
        }//---------------------------------
Esempio n. 2
0
        }//---------------------------

        //event is raised when school year selected index change
        private void ctlManagerOnSchoolYearSelectedIndexChanged()
        {
            if (this.ctlManagerAux.SchoolYearIndex != -1)
            {
                _auxiliaryManager.InitializeSemesterCombo(this.ctlManagerAux.SemesterComboBox, this.ctlManagerAux.SchoolYearIndex);

                _dateStart = _auxiliaryManager.GetSchoolYearDateStart(_auxiliaryManager.GetSchoolYearYearId(ctlManagerAux.SchoolYearIndex)).ToShortDateString() +
                             " 12:00:00 AM";
                _dateEnd = _auxiliaryManager.GetSchoolYearDateEnd(_auxiliaryManager.GetSchoolYearYearId(ctlManagerAux.SchoolYearIndex)).ToShortDateString() +
                           " 11:59:59 PM";

                this.ShowSearchResultDialog();
            }
        }//------------------------