Exemple #1
0
        void loadLists()
        {
            comboBox_RatioType.DataSource = UtilityExtension.EnumArray <RatioType>();

            var bindingSource = agentGroupH.GetList();

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

            var bindingSource2 = agentH.GetList();

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


            var bindingSource3 = agentH.GetList(AgentType.Chief);

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

            var bindingSource4 = agentH.GetList(AgentType.Office);

            comboBox_AgentID_Office.DataSource    = bindingSource4;
            comboBox_AgentID_Office.DisplayMember = "Value";
            comboBox_AgentID_Office.ValueMember   = "Key";
            comboBox_AgentID_Office.SelectedValue = -1;
        }
Exemple #2
0
        void loadLists()
        {
            var bindingSource2 = aDealH.GetList();

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


            var bindingSource3 = aProductTransactionH.GetList();

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

            comboBox_DeductionAmountType.DataSource    = UtilityExtension.EnumArray <DeductionType>();
            comboBox_DeductionAmountType.SelectedIndex = 2;

            comboBox_CommissionRatioType.DataSource    = UtilityExtension.EnumArray <RatioType>();
            comboBox_CommissionRatioType.SelectedIndex = 1;

            comboBox_GroupCheck.DataSource    = UtilityExtension.EnumArray <GroupType>();
            comboBox_GroupCheck.SelectedIndex = 1;
        }
Exemple #3
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 #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;
        }
Exemple #5
0
        void defaultValues()
        {
            textBox_Amount.Text = "0";

            comboBox_TransactionType.DataSource    = UtilityExtension.EnumArray <TransactionType>();
            comboBox_TransactionType.SelectedIndex = 0;

            comboBox_WalletType.DataSource    = UtilityExtension.EnumArray <WalletType>();
            comboBox_WalletType.SelectedIndex = 0;

            comboBox_FlowType.DataSource    = UtilityExtension.EnumArray <FlowType>();
            comboBox_FlowType.SelectedIndex = 0;

            //comboBox5.SelectedIndex = 0;

            checkBox_CascadeChanges.Checked = true;
        }
Exemple #6
0
 void defaultValues()
 {
     label_Add.Text              = "0";
     comboBox_Type.DataSource    = UtilityExtension.EnumArray <EntityType>();
     comboBox_Type.SelectedIndex = 0;
 }