Exemple #1
0
        void defaultValues()
        {
            var bindingSource = aContactH.GetList();

            comboBox_ContactID.DataSource    = bindingSource;
            comboBox_ContactID.DisplayMember = "Value";
            comboBox_ContactID.ValueMember   = "Key";
            comboBox_ContactID.SelectedValue = -1;

            label_ContactID.Text = "0";
        }
Exemple #2
0
        void loadLists()
        {
            var bindingSource = ContactH.GetList();

            comboBox_ContactID.DataSource    = bindingSource;
            comboBox_ContactID.DisplayMember = "Value";
            comboBox_ContactID.ValueMember   = "Key";
            comboBox_ContactID.SelectedValue = -1;


            comboBox_ContributionRatioType.DataSource = UtilityExtension.EnumArray <RatioType>();
            comboBox_CommissionRatioType.DataSource   = UtilityExtension.EnumArray <RatioType>();
            comboBox_SalaryRatioType.DataSource       = UtilityExtension.EnumArray <RatioType>();
            comboBox_AgentType.DataSource             = UtilityExtension.EnumArray <AgentType>();
        }
Exemple #3
0
        public void LoadLists()
        {
            var bindingSource = ContactH.GetList();

            comboBox_ContactID.DataSource    = bindingSource;
            comboBox_ContactID.DisplayMember = "Value";
            comboBox_ContactID.ValueMember   = "Key";
            comboBox_ContactID.SelectedValue = -1;

            var bindingSource2 = InvestmentH.GetList();

            comboBox_WalletReference.DataSource    = bindingSource2;
            comboBox_WalletReference.DisplayMember = "Value";
            comboBox_WalletReference.ValueMember   = "Key";
            comboBox_WalletReference.SelectedValue = -1;
        }
Exemple #4
0
        void loadLists()
        {
            comboBox_TransactionType.DataSource    = UtilityExtension.EnumArray <ProductTransactionType>();
            comboBox_TransactionType.SelectedIndex = 0;

            comboBox_AmountType.DataSource    = UtilityExtension.EnumArray <AmountType>();
            comboBox_AmountType.SelectedIndex = 0;

            comboBox_NextAmountType.DataSource    = UtilityExtension.EnumArray <AmountType>();
            comboBox_NextAmountType.SelectedIndex = 1;

            var bindingSource2 = aProductH.GetList();

            comboBox_ProductID.DataSource    = bindingSource2;
            comboBox_ProductID.DisplayMember = "Value";
            comboBox_ProductID.ValueMember   = "Key";
            comboBox_ProductID.SelectedValue = -1;

            var bindingSource = aInvestmentGroupH.GetList();

            comboBox_InvestmentGroupID.DataSource    = bindingSource;
            comboBox_InvestmentGroupID.DisplayMember = "Value";
            comboBox_InvestmentGroupID.ValueMember   = "Key";
            comboBox_InvestmentGroupID.SelectedValue = -1;

            var bindingSource3 = aAgentGroupH.GetList();

            comboBox_AgentGroupID.DataSource    = bindingSource3;
            comboBox_AgentGroupID.DisplayMember = "Value";
            comboBox_AgentGroupID.ValueMember   = "Key";
            comboBox_AgentGroupID.SelectedValue = -1;

            var bindingSource5 = aDealH.GetList();

            comboBox_DealID.DataSource    = bindingSource5;
            comboBox_DealID.DisplayMember = "Value";
            comboBox_DealID.ValueMember   = "Key";
            comboBox_DealID.SelectedValue = -1;

            var bindingSource4 = aContactH.GetList();

            comboBox_PartyBID.DataSource    = bindingSource4;
            comboBox_PartyBID.DisplayMember = "Value";
            comboBox_PartyBID.ValueMember   = "Key";
            comboBox_PartyBID.SelectedValue = -1;
        }