示例#1
0
        private bool TinhDiem2(ChiSo4Nam chiSo4Nam)
        {
            ChiSo chiSo1 = chiSo4Nam.chiSoDic[0];
            ChiSo chiSo2 = chiSo4Nam.chiSoDic[1];
            ChiSo chiSo3 = chiSo4Nam.chiSoDic[2];
            ChiSo chiSo4 = chiSo4Nam.chiSoDic[3];
            // Tinh EPS
            double eps1 = (chiSo2.EPS - chiSo1.EPS) * (HeSo.HeSo_EPS - 2);
            double eps2 = (chiSo3.EPS - chiSo2.EPS) * (HeSo.HeSo_EPS - 1);
            double eps3 = (chiSo4.EPS - chiSo3.EPS) * (HeSo.HeSo_EPS);
            // Tinh Doanh thu thuan
            double diem_doanhThuThuan1 = (chiSo2.tangTruongDoanhThuThuan - chiSo1.tangTruongDoanhThuThuan) * (HeSo.HeSo_tangTruongDoanhThuThuan - 2);
            double diem_doanhThuThuan2 = (chiSo3.tangTruongDoanhThuThuan - chiSo2.tangTruongDoanhThuThuan) * (HeSo.HeSo_tangTruongDoanhThuThuan - 1);
            double diem_doanhThuThuan3 = (chiSo4.tangTruongDoanhThuThuan - chiSo3.tangTruongDoanhThuThuan) * (HeSo.HeSo_tangTruongDoanhThuThuan);

            if (eps1 < 0 || eps2 < 0 || eps3 < 0 ||
                diem_doanhThuThuan1 < 0 || diem_doanhThuThuan2 < 0 || diem_doanhThuThuan3 < 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
示例#2
0
        private int TinhDiem(ChiSo4Nam chiSo4Nam)
        {
            double total  = 0;
            ChiSo  chiSo1 = chiSo4Nam.chiSoDic[0];
            ChiSo  chiSo2 = chiSo4Nam.chiSoDic[1];
            ChiSo  chiSo3 = chiSo4Nam.chiSoDic[2];
            ChiSo  chiSo4 = chiSo4Nam.chiSoDic[3];
            // Tinh EPS
            double eps1 = (chiSo2.EPS - chiSo1.EPS) * (HeSo.HeSo_EPS - 2);
            double eps2 = (chiSo3.EPS - chiSo2.EPS) * (HeSo.HeSo_EPS - 1);
            double eps3 = (chiSo4.EPS - chiSo3.EPS) * (HeSo.HeSo_EPS);
            // Tinh Doanh thu thuan
            double diem_doanhThuThuan1 = (chiSo2.tangTruongDoanhThuThuan - chiSo1.tangTruongDoanhThuThuan) * (HeSo.HeSo_tangTruongDoanhThuThuan - 2);
            double diem_doanhThuThuan2 = (chiSo3.tangTruongDoanhThuThuan - chiSo2.tangTruongDoanhThuThuan) * (HeSo.HeSo_tangTruongDoanhThuThuan - 1);
            double diem_doanhThuThuan3 = (chiSo4.tangTruongDoanhThuThuan - chiSo3.tangTruongDoanhThuThuan) * (HeSo.HeSo_tangTruongDoanhThuThuan);

            total = eps1 + eps2 + eps3 + diem_doanhThuThuan1 + diem_doanhThuThuan2 + diem_doanhThuThuan3;
            return((int)total);
        }