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;
            }
        }
Exemplo n.º 2
0
 public LoanProduct()
 {
     _productType = OProductTypes.Loan;
        roundingType = ORoundingType.Approximate;
        GracePeriodOfLateFees = 0;
        _hasValue = true;
        EntryFeeCycles = new List<int>();
 }
Exemplo n.º 3
0
 public LoanProduct()
 {
     _productType = OProductTypes.Loan;
        roundingType = ORoundingType.Approximate;
        GracePeriodOfLateFees = 0;
     EntryFeesPercentage = true;
        _hasValue = true;
 }
Exemplo n.º 4
0
 public LoanProduct()
 {
     _productType          = OProductTypes.Loan;
     roundingType          = ORoundingType.Approximate;
     GracePeriodOfLateFees = 0;
     _hasValue             = true;
     EntryFeeCycles        = new List <int>();
 }