private void shGridControl1_DoubleClick(object sender, EventArgs e)
        {
            bc_6_2_DiaChiMoiGioiCuocGoiThap item = gridView1.GetFocusedRow() as bc_6_2_DiaChiMoiGioiCuocGoiThap;

            if (item != null)
            {
                new frmBC_6_10_BaoCaoChiTietCuocGoiDiemTheoMoiGioi(item.Ma_DoiTac, (DateTime)ipFromDate.GetValue(), (DateTime)ipToDate.GetValue()).Show();
            }
        }
Exemple #2
0
        private bc_6_2_DiaChiMoiGioiCuocGoiThap TinhHuongHoaHong(bc_6_2_DiaChiMoiGioiCuocGoiThap bc)
        {
            if (bc.NgayKyKet >= NgayKyKetBatDau)
            {
                if (bc.DonDuocKhach > TrenNguong3 && HuongNguong3 > 0)
                {
                    bc.PhiHoaHong = HuongNguong3 * bc.DonDuocKhach;
                }
                else if (bc.DonDuocKhach > TrenNguong2 && HuongNguong2 > 0)
                {
                    bc.PhiHoaHong = HuongNguong2 * bc.DonDuocKhach;
                }
                else
                {
                    bc.PhiHoaHong = HuongNguong1 * bc.DonDuocKhach;
                }
            }

            return(bc);
        }