コード例 #1
0
        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;
            }
        }
コード例 #2
0
ファイル: LoanProduct.cs プロジェクト: BillTheBest/opencbs
 public LoanProduct()
 {
     _productType = OProductTypes.Loan;
        roundingType = ORoundingType.Approximate;
        GracePeriodOfLateFees = 0;
        _hasValue = true;
        EntryFeeCycles = new List<int>();
 }
コード例 #3
0
ファイル: LoanProduct.cs プロジェクト: Ramazanov/FomsNet
 public LoanProduct()
 {
     _productType = OProductTypes.Loan;
        roundingType = ORoundingType.Approximate;
        GracePeriodOfLateFees = 0;
     EntryFeesPercentage = true;
        _hasValue = true;
 }
コード例 #4
0
ファイル: LoanProduct.cs プロジェクト: logiciells/opencbs
 public LoanProduct()
 {
     _productType          = OProductTypes.Loan;
     roundingType          = ORoundingType.Approximate;
     GracePeriodOfLateFees = 0;
     _hasValue             = true;
     EntryFeeCycles        = new List <int>();
 }