Ejemplo n.º 1
0
        /// <summary>
        /// doAuthorSearch: run an author search
        /// </summary>
        protected void doAuthorSearch()
        {
            fSelection    f      = new fSelection();
            String        query  = BookConst.SEL_AUTHORS_QUERY;
            List <String> result = new List <String>();

            if (f.showSelection(query, "Author Search", "All Authors", result) == false)
            {
                return;
            }
            _data.AuthorId = result[0];
            txtAuthor.Text = result[1];
        }
Ejemplo n.º 2
0
        protected void doSupplierSearch()
        {
            fSelection    f      = new fSelection();
            String        query  = BookConst.SEL_SUPPLIERS_QUERY;
            List <String> result = new List <String>();

            if (f.showSelection(query, "Supplier Search", "All Suppliers", result) == false)
            {
                return;
            }
            _data.SupplierId = result[0];
            txtSupplier.Text = result[1];
        }
Ejemplo n.º 3
0
        protected void doTaxSearch()
        {
            fSelection    f      = new fSelection();
            String        query  = BookConst.SEL_TAXCODE_QUERY;
            List <String> result = new List <String>();

            if (f.showSelection(query, "Tax Code Search", "All Tax Codes", result) == false)
            {
                return;
            }
            _data.TaxCode   = result[0];
            txtTaxCode.Text = result[1];
        }
Ejemplo n.º 4
0
        protected void doPublisherSearch()
        {
            fSelection    f      = new fSelection();
            String        query  = BookConst.SEL_PUBLISHERS_QUERY;
            List <String> result = new List <String>();

            if (f.showSelection(query, "Publisher Search", "All Publishers", result) == false)
            {
                return;
            }
            _data.PublisherId = result[0];
            txtPublisher.Text = result[1];
        }
Ejemplo n.º 5
0
        private bool ucScreen1_onFileSelect(object sender, string fieldName, string fileName, string selection, ref string newValue)
        {
            String query = selection;

            if (getprompts(ref query) == false)
            {
                return(false);
            }

            fSelection    f      = new fSelection();
            List <String> result = new List <String>();

            if (f.showSelection(query, "Browse " + fieldName, "", result) == false)
            {
                return(false);
            }
            newValue = result[0];
            return(true);
        }