//#########################################CLASS Student EVENTS###########################################################
        //event is raised when the class is loaded
        protected override void ClassLoad(object sender, EventArgs e)
        {
            this.lnkPersonArchive.Visible = this.lnkVerify.Enabled = false;

            _baseServiceManager = new BaseServices.BaseServicesLogic(_userInfo);

            _personInfo = _studentInfo.PersonInfo;

            this.AssingControlsValue();
            this.SetPersonInformationControls(true);

            if (!_hasEnter && _studentInfo.Equals(_studentInfoTemp))
            {
                _baseServiceManager.InitializePersonRelationshipDataGridView(this.dgvRelationship, _personInfo.PersonRelationshipList, this.lblEmerStatus);

                RemoteClient.ProcStatic.SetDataGridViewColumns(this.dgvRelationship, false);

                _hasEnter = true;
            }

            this.lblStdStudentId.Text            = _studentInfo.StudentId;
            this.lblStdLastName.Text             = _studentInfo.PersonInfo.LastName;
            this.lblStdFirstName.Text            = _studentInfo.PersonInfo.FirstName;
            this.lblMiddleName.Text              = _studentInfo.PersonInfo.MiddleName;
            this.lblStdCourse.Text               = _studentInfo.CourseInfo.CourseTitle;
            this.lblStdScholarship.Text          = _studentInfo.Scholarship;
            this.chkIsInternational.Checked      = _studentInfo.IsInternational;
            this.txtStudentOtherInformation.Text = _studentInfo.OtherStudentInformation;

            this.chkForm138.Checked             = _studentInfo.HasHsCard;
            this.chkTranscriptOfRecords.Checked = _studentInfo.HasTor;
            this.chkHonorableDismissal.Checked  = _studentInfo.HasHonDismissal;
            this.chkGoodMoral.Checked           = _studentInfo.HasGoodMoral;
            this.chkBirthCertificate.Checked    = _studentInfo.HasBirthCert;
            this.chkMarriageContract.Checked    = _studentInfo.HasMarriageContract;
            this.chkPhoto.Checked = _studentInfo.HasLatestPhoto;
            this.chkNCAE.Checked  = _studentInfo.HasNcaeResult;
        }//--------------------------
예제 #2
0
        //#######################################CLASS EmployeeUpdate EVENTS#####################################################
        //event is raised when the class is loaded
        protected override void ClassLoad(object sender, EventArgs e)
        {
            this.lnkPersonArchive.Visible = this.lnkVerify.Enabled = false;

            _baseServiceManager = new BaseServices.BaseServicesLogic(_userInfo);

            _personInfo = _empInfo.PersonInfo;

            this.AssingControlsValue();
            this.SetPersonInformationControls(true);

            if (!_hasEnter)
            {
                this.InitializeControlsForUpdate();

                _baseServiceManager.InitializePersonRelationshipDataGridView(this.dgvRelationship, _personInfo.PersonRelationshipList, lblEmerStatus);

                RemoteClient.ProcStatic.SetDataGridViewColumns(this.dgvRelationship, false);

                _hasEnter = true;
            }

            _empTemp = (CommonExchange.Employee)_empInfo.Clone();
        }//--------------------------------