Esempio n. 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'");
            }
        }
Esempio n. 2
0
        private void FillFromList()
        {
            InvtBatchCAP_HeaderEx.LoadCombo(ref cboFrom, "TxNumber", false);

            /**
             * cboFrom.Items.Clear();
             *
             * string[] orderBy = { "TxNumber" };
             * string sql = "TxType = '" + EnumHelper.TxType.CAP.ToString() + "'";
             *
             * InvtBatchCAP_HeaderCollection headerList = InvtBatchCAP_Header.LoadCollection(sql, orderBy, true);
             * cboFrom.DataSource = headerList;
             * cboFrom.DisplayMember = "TxNumber";
             * cboFrom.ValueMember = "HeaderId";
             */
        }
Esempio n. 3
0
        private void FillToList()
        {
            InvtBatchCAP_HeaderEx.LoadCombo(ref cboTo, "TxNumber", false);

            /**
             * cboTo.Items.Clear();
             *
             * string[] orderBy = { "TxNumber" };
             * string sql = "TxType = '" + EnumHelper.TxType.REJ.ToString() + "'";
             *
             * InvtBatchCAP_HeaderCollection headerList = InvtBatchCAP_Header.LoadCollection(sql, orderBy, true);
             * cboTo.DataSource = headerList;
             * cboTo.DisplayMember = "TxNumber";
             * cboTo.ValueMember = "HeaderId";
             */
            cboTo.SelectedIndex = cboTo.Items.Count - 1;
        }
Esempio n. 4
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;
            }
        }