Ejemplo n.º 1
0
        private void GeneraterAverageWageReport()
        {
            List <PhysicalPerson> list = null;

            if (this.cmbAVG.SelectedIndex == 0)
            {
                list = Crud.GetPhysicalPerson_SalaryAboveAVG();
            }

            if (this.cmbAVG.SelectedIndex == 1)
            {
                list = Crud.GetPhysicalPerson_SalaryEqualAVG();
            }

            if (this.cmbAVG.SelectedIndex == 2)
            {
                list = Crud.GetPhysicalPerson_SalaryUnderAVG();
            }


            if (list != null)
            {
                FrmAverageWaze fsr = new FrmAverageWaze(list);
                fsr.Show();
            }
            else
            {
                MessageBox.Show("No record with this criterion.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Ejemplo n.º 2
0
        private void GenerateSalaryRangeReport()
        {
            List <PhysicalPerson> list = Crud.GetPhysicalPerson_BySalaryRange(Decimal.Parse(txtInitialSal.Text.Trim()), Decimal.Parse(txtFinalInitial.Text.Trim()));

            if (list.Count > 0)
            {
                FrmAverageWaze fsr = new FrmAverageWaze(list);
                fsr.Show();
            }
            else
            {
                MessageBox.Show("No record with this criterion.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }