Beispiel #1
0
        private void FillFromList()
        {
            cboFrom.DataSource = null;

            cboFrom.Items.Clear();

            if (rbtnPosted.Checked)
            {
                InvtSubLedgerCAP_HeaderEx.LoadCombo(ref cboFrom, "TxNumber", false, false, string.Empty, "TxType = 'CAP'");
            }
            else
            {
                InvtBatchCAP_HeaderEx.LoadCombo(ref cboFrom, "TxNumber", false, false, string.Empty, "TxType = 'CAP'");
            }
        }
Beispiel #2
0
        private void FillToList()
        {
            cboTo.DataSource = null;

            cboTo.Items.Clear();

            if (rbtnPosted.Checked)
            {
                InvtSubLedgerCAP_HeaderEx.LoadCombo(ref cboTo, "TxNumber", false, false, string.Empty, "TxType = 'CAP'");
            }
            else
            {
                InvtBatchCAP_HeaderEx.LoadCombo(ref cboTo, "TxNumber", false, false, string.Empty, "TxType = 'CAP'");
            }

            if (cboTo.Items.Count > 0)
            {
                cboTo.SelectedIndex = cboTo.Items.Count - 1;
            }
        }