private void IntializeComboboxProduct() { cmbProduct.Items.Clear(); cmbProduct.ValueMember = "Id"; cmbProduct.DisplayMember = "Name"; cmbProduct.Items.Add( new { Id = 0, Name = MultiLanguageStrings.GetString(Ressource.AccountingRule, "All.Text") }); cmbProduct.SelectedIndex = 0; OProductTypes productType = (OProductTypes)Enum.Parse(typeof(OProductTypes), cmbProductType.SelectedValue.ToString()); cmbProduct.Enabled = true; switch (productType) { case OProductTypes.Loan: foreach (LoanProduct product in ServicesProvider.GetInstance().GetProductServices().FindAllPackages(false, OClientTypes.All)) { cmbProduct.Items.Add(product); } break; case OProductTypes.Saving: foreach (ISavingProduct product in ServicesProvider.GetInstance().GetSavingProductServices().FindAllSavingsProducts(false, OClientTypes.All)) { cmbProduct.Items.Add(product); } break; default: cmbProduct.Enabled = false; break; } }
public LoanProduct() { _productType = OProductTypes.Loan; roundingType = ORoundingType.Approximate; GracePeriodOfLateFees = 0; _hasValue = true; EntryFeeCycles = new List<int>(); }
public LoanProduct() { _productType = OProductTypes.Loan; roundingType = ORoundingType.Approximate; GracePeriodOfLateFees = 0; EntryFeesPercentage = true; _hasValue = true; }
public LoanProduct() { _productType = OProductTypes.Loan; roundingType = ORoundingType.Approximate; GracePeriodOfLateFees = 0; _hasValue = true; EntryFeeCycles = new List <int>(); }