예제 #1
0
        internal void SaleInCo(int idInCo, string nameOwer, int durationInCo, double aOM)
        {
            InsuranceContract inCo = new InsuranceContract(idInCo, nameOwer, durationInCo, aOM);

            InCoIsSaled.Add(inCo);
            CalCommission(inCo);
        }
예제 #2
0
        public void SaleInCo()
        {
            InsuranceContract inCo = new InsuranceContract();

            inCo.Init();
            InCoIsSaled.Add(inCo);
            CalCommission(inCo);
        }
예제 #3
0
 void CalCommission(InsuranceContract InCo)  // Tính hoa hồng cho mỗi hợp đồng bán hàng
 {
     if (InCo.IsLongTimeInCo)
     {
         Commission += InCo.MonthlyPayment * 0.5;
     }
     else
     {
         Commission += InCo.AmountOfMoney * 0.05;
     }
 }