internal void SaleInCo(int idInCo, string nameOwer, int durationInCo, double aOM) { InsuranceContract inCo = new InsuranceContract(idInCo, nameOwer, durationInCo, aOM); InCoIsSaled.Add(inCo); CalCommission(inCo); }
public void SaleInCo() { InsuranceContract inCo = new InsuranceContract(); inCo.Init(); InCoIsSaled.Add(inCo); CalCommission(inCo); }
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; } }