Exemple #1
0
        private void LoadData()
        {
            PersonnelBindingSource.DataSource    = PersonnelManagement.GetA(PersonnelNo);
            EducationObjBindingSource.DataSource = StaticClass.ListEducation(PersonnelNo);
            EligibilityBindingSource.DataSource  = EligibilityManagement.GetAll(PersonnelNo);
            ExperiencyBindingSource.DataSource   = ExperienceManagement.GetAll(PersonnelNo);
            VoluntaryBindingSource.DataSource    = VoluntaryManagement.GetAll(PersonnelNo);
            TrainingBindingSource.DataSource     = TrainingManagement.GetAll(PersonnelNo);
            SpousBindingSource.DataSource        = SpouseManagement.GetA(PersonnelNo);
            SkillBindingSource.DataSource        = SkillManagement.GetAll(PersonnelNo);
            OrganizationBindingSource.DataSource = OrganizationManagement.GetAll(PersonnelNo);
            DistinctionBindingSource.DataSource  = DistinctionManagement.GetAll(PersonnelNo);
            QuestionBindingSource.DataSource     = QuestionManagement.GetAll(PersonnelNo);
            ReferenceBindingSource.DataSource    = ReferencesManagement.GetAll(PersonnelNo);
            DetailBindingSource.DataSource       = Details.GetAll(PersonnelNo);

            if (SpousBindingSource?.Current == null)
            {
                return;
            }
            ChildrenObjBindingSource.DataSource = StaticClass.ListChildren(((Spous)SpousBindingSource.Current).SpouseNo);

            reportViewer1.SetDisplayMode(DisplayMode.PrintLayout);
            reportViewer1.ZoomMode    = ZoomMode.Percent;
            reportViewer1.ZoomPercent = 100;

            this.reportViewer1.RefreshReport();
        }
Exemple #2
0
        private void LoadInitPersonnelRelatedRecord()
        {
            Cursor.Current = Cursors.WaitCursor;
            var pNo = ((Personnel)personnelBindingSource.Current).PersonnelNo;

            if (pNo > 0)
            {
                eligibilityBindingSource.DataSource  = EligibilityManagement.GetAll(pNo);
                experiencyBindingSource.DataSource   = ExperienceManagement.GetAll(pNo);
                voluntaryBindingSource.DataSource    = VoluntaryManagement.GetAll(pNo);
                trainingBindingSource.DataSource     = TrainingManagement.GetAll(pNo);
                educationObjBindingSource.DataSource = StaticClass.ListEducation(pNo);
                spousBindingSource.DataSource        = SpouseManagement.GetAll(pNo);
                skillBindingSource.DataSource        = SkillManagement.GetAll(pNo);
                organizationBindingSource.DataSource = OrganizationManagement.GetAll(pNo);
                distinctionBindingSource.DataSource  = DistinctionManagement.GetAll(pNo);
                questionBindingSource.DataSource     = QuestionManagement.GetAll(pNo);
                referenceBindingSource.DataSource    = ReferencesManagement.GetAll(pNo);
                detailBindingSource.DataSource       = Details.GetAll(pNo);
            }
            Cursor.Current = Cursors.Default;
        }