public ScheduleSearchOnTextBoxList(CommonExchange.SysAccess userInfo, TeacherLoadingLogic teacherLoadingManager,
                                           String queryString, String dateStart, String dateEnd)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _teacherLoadingManager = teacherLoadingManager;

            _queryString = queryString;
            _dateStart   = dateStart;
            _dateEnd     = dateEnd;

            this.pbxRefresh.Click += new EventHandler(pbxRefreshClick);
        }
Exemplo n.º 2
0
        //############################################CLASS TeacherLoading EVENTS#######################################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            _teacherLoadingManager = new TeacherLoadingLogic(_userInfo);

            try
            {
                if (RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) ||
                    RemoteServerLib.ProcStatic.IsSystemAccessPayrollMaster(_userInfo) ||
                    RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo))
                {
                    _canUserDeload = true;
                }
                else if (!(RemoteServerLib.ProcStatic.IsSystemAccessOfficeUser(_userInfo) ||
                           RemoteServerLib.ProcStatic.IsSystemAccessVpOfAcademicAffairs(_userInfo) ||
                           RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo) ||
                           RemoteServerLib.ProcStatic.IsSystemAccessSecretaryOftheVpOfAcademicAffairs(_userInfo)))
                {
                    throw new Exception("You are not authorized to access this module.");
                }

                if (RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo))
                {
                    this.btnRecord.Visible = this.btnLoadScheduleDetails.Visible = this.toolStripSeparator.Visible = false;
                }

                if (RemoteServerLib.ProcStatic.IsSystemAccessPayrollMaster(_userInfo))
                {
                    this.btnLoadScheduleDetails.Enabled = this.lnkPrintStudentEnrolled.Visible = this.txtScheduleSearch.Enabled = false;
                }

                this.btnRecord.Enabled = false;

                _teacherLoadingManager.InitializeSchoolYearCombo(this.cboYear);

                if (!(CommonExchange.EnrolmentComponent.IncludeCollege || CommonExchange.EnrolmentComponent.IncludeGradeSchoolKinder))
                {
                    this.cboSemester.Enabled = false;
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");

                this.Close();
            }
        }//------------------------------
Exemplo n.º 3
0
        public SubjectServiceSearchOnTextBoxListTeacherLoad(CommonExchange.SysAccess userInfo, TeacherLoadingLogic teacherLoadingManager,
                                                            Int32 primaryIndex, String yearId, String semesterId, String employeeId)
        {
            this.InitializeComponent();

            _userInfo = userInfo;

            _teacherLoadingManager = teacherLoadingManager;

            _yearId        = yearId;
            _semesterSysid = semesterId;
            _employeeId    = employeeId;

            this.PrimaryIndex = primaryIndex;

            this.FormClosing += new FormClosingEventHandler(ClassClosing);
            this.chkIsIrregular.CheckedChanged += new EventHandler(chkIsIrregularCheckedChanged);
            this.dgvList.CellEnter             += new DataGridViewCellEventHandler(dgvListCellEnter);
            this.dgvList.CellContentClick      += new DataGridViewCellEventHandler(dgvListCellContentClick);
            this.pbxRefresh.Click        += new EventHandler(pbxRefreshClick);
            this.pbxChecked.Click        += new EventHandler(pbxCheckedClick);
            this.pbxInsertSubjects.Click += new EventHandler(pbxInsertSubjectsClick);
        }//--------------------------